Commit Graph

22090 Commits

Author SHA1 Message Date
Jeff Sharkey
e8b3d96bc6 Merge "Improve thumbnail generation utilities." 2018-12-18 22:04:40 +00:00
TreeHugger Robot
ac040fddfd Merge "Optimizes the Content Capture workflow by calling the service directly." 2018-12-18 21:40:38 +00:00
Paul Duffin
6fa14abad3 Merge "Add InetAddresses class to API" am: 92871b78fa am: b072c4439e
am: 5ee229c96f

Change-Id: I6149da91b9bc2403f1764cfcc4a4f92758c13b26
2018-12-18 11:50:36 -08:00
Chen Xu
99893d2ed4 Merge "new SystemAPI for preciseCallState and DisconnectCause" 2018-12-18 19:36:39 +00:00
Jordan Liu
17753a52cd Merge "SubscriptionInfo contains int cardId" 2018-12-18 19:34:04 +00:00
chen xu
6a942d488a new SystemAPI for preciseCallState and DisconnectCause
1. decouple disconnectCause and preciseDisconnectCuase from
 preciseCallState.
 2. expose preciseCallState to SystemAPI and expose
onPreciseCallStateChanged to System API
3. remove/hide ImsReasonInfo from PreciseDisconnectCuase
4. expose DiconnectCuase and PreciseDisconnectCause to System API
5. new onDisconnectCauseChanged API on PhoneStateListener for CS call
 and use ImsCallSessionListener for IMS call(imsreasonInfo)
6. add read_precise_phone_state to shell apk to enable GTS test

Bug: 119890559
Test: atest GtsGmscoreHostTestCases:TelephonyHostTest#testPhoneStateListener
Change-Id: If9256feff16b6bcaef1dfe194c2b0df2a48436b0
2018-12-18 11:29:53 -08:00
Paul Duffin
5ee229c96f Merge "Add InetAddresses class to API" am: 92871b78fa
am: b072c4439e

Change-Id: I3e745599be0f81decfe416a71503dc784a895a48
2018-12-18 11:09:15 -08:00
Felipe Leme
b9687849bb Optimizes the Content Capture workflow by calling the service directly.
Initially, the ContentCaptureManager (in the app) was calling the
IContentCaptureManager (on system server) for everything, even to pass the
list of captured events, which caused 2 IPCs for each batch of events (i.e.,
from app to system_server, then from system_service to service).

This CL optimizes the workflow by getting rid of the "middle man" and sending
the events from the app to the service directly, which the system_server only
calling the service to notify when the view starts and finishes (and passing
the UID in the former so the servier can validate the sendEvents() calls).

Bug: 119220549
Test: atest CtsContentCaptureServiceTestCases

Change-Id: I6c08dccf755605320ac37cbc9424132e5455a594
2018-12-18 10:03:37 -08:00
Jeff Sharkey
32f6c7c097 Improve thumbnail generation utilities.
The existing APIs were pretty limited by only accepting a "kind"
value, so improve them to accept an arbitrary size, and offer a way
to cancel requests when no longer needed.

The older APIs were a mix of both public and @UnsupportedAppUsage,
so mark them all both public and deprecated so we can clearly steer
developers towards better options.  (The deprecated methods are
implemented using the new APIs internally for sanity.)

Use modern ImageDecode internally, which is more robust than
BitmapFactory.  Add CTS to confirm that we generate thumbnails of
reasonable sizes.

Bug: 119887587
Test: atest android.media.cts.ThumbnailUtilsTest
Change-Id: I4ca35569ad5c661b327a0cb24a48ebc21f6087b7
2018-12-18 10:03:10 -07:00
Philip P. Moltmann
3e24ffd208 Merge "Add system_notification_accent_color for mainline" 2018-12-18 16:38:23 +00:00
Paul Duffin
92871b78fa Merge "Add InetAddresses class to API" 2018-12-18 14:11:04 +00:00
Jordan Liu
b3039a4129 SubscriptionInfo contains int cardId
We rename the old "String cardId" field to "String cardString". The new
int cardId refers to the publically exposed cardId.

Also deprecate the few-arg constructor. Its okay to use in existing
cases which don't care about the extra arguments (certain tests and
transient SubscriptionInfo objects which aren't really used) but should
not be used in general.

Bug: 80097562
Test: manual
Change-Id: I92264b95da64be77367e869f774bc65f8934fd32
2018-12-17 22:32:36 -08:00
TreeHugger Robot
be21b4a610 Merge "Support wallpaper on secondary displays.(6/N)" 2018-12-18 04:01:11 +00:00
TreeHugger Robot
77a8a387f0 Merge "MediaPlayer2: add DataSourceDesc for source dependent API's" 2018-12-18 02:02:40 +00:00
Kevin Chyn
2ae0e21c34 Merge "Move biometrics into biometric namespace" 2018-12-18 02:01:45 +00:00
David Su
840f86b732 Merge "Scan Optimization: expose API to update device mobility state" 2018-12-18 01:31:56 +00:00
Dongwon Kang
f51deea70e Merge "Remove unusued code; MediaPlayerBase and MP.set|getBufferingParams" 2018-12-18 01:24:35 +00:00
Pengquan Meng
a96b863ace Merge "Add multiple esim support for SubscriptionManager" 2018-12-18 00:17:53 +00:00
John Reck
3a0041cf1d Merge "Add missing getter & improve docs" 2018-12-17 23:52:21 +00:00
TreeHugger Robot
2ffad2ba3a Merge "Change platform Scene.getCurrentScene parameter from View to ViewGroup" 2018-12-17 22:53:33 +00:00
Chen Xu
31cf647396 Merge "expose Carrier Id related APIs" am: 18b925a7af
am: 0031ae8145

Change-Id: I6e9837cffdcac094557ea99cde0736abdfff0ff9
2018-12-17 13:39:23 -08:00
Dongwon Kang
5fbf64934f Remove unusued code; MediaPlayerBase and MP.set|getBufferingParams
Test: build
Bug: 112766913
Change-Id: I999a637a1cb47a28a032478f3c56ab0645837f92
2018-12-17 13:34:33 -08:00
Julia Reynolds
feb504cb66 Merge "Deprecate ConditionProviderService." 2018-12-17 21:08:55 +00:00
Chen Xu
18b925a7af Merge "expose Carrier Id related APIs" 2018-12-17 20:56:54 +00:00
John Reck
470a919135 Add missing getter & improve docs
Also fix SkiaDisplayList::getUsedSize()

Bug: 120865963
Test: atest android.uirendering.cts.testclasses.RenderNodeTests
Change-Id: I3cdbd8d330da9a00367199087c9ae1e0a2cacf46
2018-12-17 11:25:34 -08:00
Andrey Kulikov
45e92aa281 Change platform Scene.getCurrentScene parameter from View to ViewGroup
API Review request to use ViewGroup here as Scene roots can only be ViewGroup

Bug: 120504681
Test: none
Change in AndroidX: aosp/841919
Change-Id: I6fb857bc68d2afca54fe7d366fe8490d03c947a9
2018-12-17 19:23:38 +00:00
Chen Xu
432f643749 Merge "public API for VideoProfile.CameraCapability with zoom" am: 610673690c am: efac7fdbf7
am: fcd87384c4

Change-Id: I18bf350eac7eb8c3e5c9ce80bb04a0793722d1c1
2018-12-17 11:05:46 -08:00
Wei Jia
78a88fcba4 MediaPlayer2: add DataSourceDesc for source dependent API's
Test: cts
Bug: 112549021
Change-Id: Iecdb8cecc21abfdb906f30f93f3a5d02c2d8e16a
2018-12-17 10:57:06 -08:00
Chen Xu
fcd87384c4 Merge "public API for VideoProfile.CameraCapability with zoom" am: 610673690c
am: efac7fdbf7

Change-Id: Ifa619269c6781a3653b6dafc80380f1857dd554e
2018-12-17 10:51:15 -08:00
Eugene Susla
b3469e7390 Merge "On role revocation, don't revoke appops/perms for other held roles" 2018-12-17 18:42:49 +00:00
Chen Xu
33f7f311b3 Merge "add carrierid in subscriptionInfo" 2018-12-17 18:29:19 +00:00
Chen Xu
610673690c Merge "public API for VideoProfile.CameraCapability with zoom" 2018-12-17 18:24:15 +00:00
TreeHugger Robot
56208f49dc Merge "Another round of changes on Content Capture." 2018-12-17 17:59:40 +00:00
Matt Pape
101fe17781 Merge "Add the API surface for DeviceConfig." 2018-12-17 15:15:05 +00:00
Julia Reynolds
68062074c6 Deprecate ConditionProviderService.
And replace it with something more battery friendly!

Test: CTS, runtest systemui-notification
Bug: 111474881
Change-Id: I45af94135fb8d2de050d5f7baaa9724b95bb1907
2018-12-17 09:13:59 -05:00
Paul Duffin
a2b34f8829 Add InetAddresses class to API
Adds methods needed by app developers to avoid them having to call
non-SDK APIs.

Test: tests added to cts
Bug: 78686891
Change-Id: Ic0eadfdab2b111d5ca4becb753f4fe3557806433
2018-12-17 11:53:33 +00:00
wilsonshih
8ccb9ce312 Support wallpaper on secondary displays.(6/N)
Provide an API that let the Engine get the corresponding display context.
As a result, wallpaper developers can easily get the right resources.

Bug: 115486823
Test: atest WallpaperManagerTest
Change-Id: I9ec85028331c2d2e4445b9a47ee05dc311a8e3e7
2018-12-17 13:27:21 +08:00
TreeHugger Robot
44cf3f75ed Merge "Deprecate android.inputmethodservice.{Keyboard,KeyboardView}" 2018-12-15 21:06:14 +00:00
Michael Groover
f1a5b6e0bf Merge changes from topic "SensorPrivacyMode"
* changes:
  Add SensorPrivacy constants to SettingsBackupTest
  Prototype Spaceship mode qstile
2018-12-15 18:07:26 +00:00
Etan Cohen
ef02883bec Merge "[AWARE] Add builder pattern for Wi-Fi Aware NetworkSpecifier" 2018-12-15 05:19:45 +00:00
TreeHugger Robot
e48e378bee Merge "Add APIs to set Location History package name." 2018-12-15 05:10:30 +00:00
Felipe Leme
aa5088ede6 Another round of changes on Content Capture.
- Get rid of activity-level events.
- Renamed InteractionSessionId and InteractionContext to
  ContentCaptureSessionId and ContentCaptureContext (and made them public)
- Create the explicit concept of ContentCaptureSesssion (and moved notification
  APIs to it).
- Added APIs to let apps create new sessions (not implemented yet).
- Added APIs to remove user data based on some context properties (like URI).

The reasoning behind this change is to let app developers explicitly associate
the captured content with some app-level domain (and also let the app ask the
service to clear such data at user's request). For example, a browser app
(and WebView) can use these APIs to associate the content capture events with
the URL being rendered.

Bug: 117944706
Fixes: 121034139

Test: atest CtsContentCaptureServiceTestCases
Test: m update-api && m

Change-Id: I7841da303b6a39c825651b03a07e3081fbd0bdf5
2018-12-14 18:02:24 -08:00
chen xu
0034bb393c add carrierid in subscriptionInfo
add carrierid in subscritionInfo so that apps can get
subId, carrierid and other sim related info from a single call

Bug: 119676543
Test: gts SubscriptionInfoTest
Change-Id: Ia2d01ad6bd59565adbf989b4d95e7f64f3ee6d45
2018-12-15 01:28:46 +00:00
Nick Kralevich
8b5fcc87c4 Merge "api/current.txt: Add SOCK_CLOEXEC and SOCK_NONBLOCK" am: 1d709c965b am: 8eae4981ff
am: adcb8a46ae

Change-Id: I89bd7db8cc5b6723fa2a5cee9b785f7ad8f6c276
2018-12-14 16:58:37 -08:00
Nick Kralevich
adcb8a46ae Merge "api/current.txt: Add SOCK_CLOEXEC and SOCK_NONBLOCK" am: 1d709c965b
am: 8eae4981ff

Change-Id: I083eeb909d24ecd33451bb5cd23c03d6f724f052
2018-12-14 16:49:10 -08:00
Treehugger Robot
1d709c965b Merge "api/current.txt: Add SOCK_CLOEXEC and SOCK_NONBLOCK" 2018-12-15 00:26:55 +00:00
Jack Yu
a92005e6ec Merge "Renamed data/net service provider onDestroy to close" am: 47d385a5b3 am: 8c539c5eee
am: 52fdd0d508

Change-Id: I74c058f2d5f0e42e9513d1d908c32e52f9d9223e
2018-12-14 16:16:39 -08:00
Etan Cohen
c7a2502865 Merge "[AWARE] Add Wi-Fi Aware-specific Network Capabilities" 2018-12-14 23:55:53 +00:00
Jack Yu
52fdd0d508 Merge "Renamed data/net service provider onDestroy to close" am: 47d385a5b3
am: 8c539c5eee

Change-Id: If9596c83f8a5e960f4675b80ddcc1eab8f67c178
2018-12-14 15:53:13 -08:00
chen xu
055b1de272 public API for VideoProfile.CameraCapability with zoom
Bug: 120796998
Test: Build & CTS videoprofiletest
Change-Id: I12b3d1c510065666e2fdf5186d924e657f66d039
2018-12-14 15:27:31 -08:00