Commit Graph

22126 Commits

Author SHA1 Message Date
Eric Laurent
06c9021723 Merge "AudioRecordingConfiguration: report more info about active use case" 2018-12-20 17:58:36 +00:00
TreeHugger Robot
7fa78c545b Merge "Add StorageVolume#createOpenDocumentTreeIntent" 2018-12-20 15:49:11 +00:00
TreeHugger Robot
b444a8b822 Merge "Add a state for Staged Sessions." 2018-12-20 13:19:54 +00:00
TreeHugger Robot
811a5191dc Merge "Changed ContentCaptureService to receive one event at time." 2018-12-20 12:32:19 +00:00
Felipe Leme
a2ada8bf63 Merge "Split ContentCaptureSession in 2 classes." 2018-12-20 04:41:11 +00:00
Eric Laurent
c7a0cdfe1b AudioRecordingConfiguration: report more info about active use case
Report more information in onRecordingConfigChanged() callback and
AudioRecordingConfiguration:
    - For client:
      - Port ID (package private)
      - Enabled effects
      - Silenced by policy
    - For stream:
      - Active effects
      - Active audio source

Bug: 111438757
Test: CTS tests for AudioRecordingConfiguration
Change-Id: I84952614ee5d9ede23afd5836c68da7a20e79a2e
2018-12-19 17:57:09 -08:00
Pengquan Meng
aa63821b54 Merge "Add get/set PreferredNetworkTypeBitmap" 2018-12-20 01:46:59 +00:00
Felipe Leme
fc24beab3e Changed ContentCaptureService to receive one event at time.
The initial implementation was using a batch the events to optimize the
performance, but that can be optimize behind the scenes (i.e., we can still
send the batches in the binder, but deliver them one by one).

This change not only makes it easier for the service to use the API, but it
paves the way to implement multiple sessions (so we can buffer children events
while the parent session is not completely started yet).

Bug: 121033016
Bug: 117944706
Bug: 121051220

Test: atest CtsContentCaptureServiceTestCases

Change-Id: I713ceb998bd81733255fd3ef8d0b8d7a3fcac20c
2018-12-19 16:36:19 -08:00
Felipe Leme
b63e0ddc84 Split ContentCaptureSession in 2 classes.
This is just a refactoring for now, but it paves the way to support children
sessions.

Bug: 121042846
Bug: 117944706

Test: atest CtsContentCaptureServiceTestCases

Change-Id: I64bb5562dcfd4a9f0f69bb13009e4cf47a4f3b37
2018-12-19 16:35:59 -08:00
TreeHugger Robot
d378aac612 Merge "Add secondary launcher mechanism (1/3)" 2018-12-20 00:28:58 +00:00
Sooraj Sasindran
a65ba74e84 Merge "Define entry and exit threshold for opportunistic" 2018-12-20 00:11:30 +00:00
Hall Liu
57416ae169 Merge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2" am: db5b77c275 am: 5bf7e2cc5c
am: 372277f219

Change-Id: Ied4e9e0ff774c595eb5d82e184e8aa402e05529e
2018-12-19 15:16:54 -08:00
Hall Liu
25f0ff5d5a Add the PhoneAccountSuggestionService am: c47570d5d0 am: df448f5ea2
am: 08fd16b47c

Change-Id: I74aafb91fd233d28f6840f5bd1247c3663dc35aa
2018-12-19 15:09:58 -08:00
Hall Liu
372277f219 Merge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2" am: db5b77c275
am: 5bf7e2cc5c

Change-Id: Ib9b33541a9679a6001fbeacb23d687cfb1a0740a
2018-12-19 14:23:54 -08:00
Hall Liu
08fd16b47c Add the PhoneAccountSuggestionService am: c47570d5d0
am: df448f5ea2

Change-Id: I7555d7dfbbf25fc35549d1a7cb29bbe3a83bebde
2018-12-19 14:18:47 -08:00
Hall Liu
df448f5ea2 Add the PhoneAccountSuggestionService
am: c47570d5d0

Change-Id: Ia7823ff16f1684db71845cb9d92434c448290c9a
2018-12-19 13:57:48 -08:00
Hall Liu
db5b77c275 Merge changes from topics "dialer-account-suggestion-3", "dialer-account-suggestion-2"
* changes:
  Enable CTS testing for phone account suggestions
  Add the PhoneAccountSuggestionService
2018-12-19 21:36:54 +00:00
TreeHugger Robot
802c621509 Merge "Move app overlay permission to app level" 2018-12-19 21:27:29 +00:00
Dario Freni
71eee5ef91 Add a state for Staged Sessions.
The state is only kept up-to-date for staged sessions. Clients are in
charge of checking whether the session has the isStaged bit set, before
considering reading the StagedSessionState associated to that session.

Test: retrieved mock staged session from a small app and verified state
is correctly set.
Bug: 118865310
Bug: 112669193
Bug: 120487127
Change-Id: I03590476dc353fee6d6edffb7ae579a9f9664664
2018-12-19 20:36:51 +00:00
Pengquan Meng
6d8e76f08a Add get/set PreferredNetworkTypeBitmap
Bug: 111453000
Test: build
Change-Id: Icbd3b2108ce8eb75e863dcf38fb8249c1e37ea91
2018-12-19 11:42:41 -08:00
Matthew Fritze
16729c7cd8 Merge "Add SettingsPanel Intent Actions" 2018-12-19 19:21:46 +00:00
Philip P. Moltmann
bee3e3347c Merge "Expose UsbPort and UsbPortStatus as system API" 2018-12-19 19:10:06 +00:00
Chen Xu
eb04d15cd8 Merge "add carrierid in subscriptionInfo" am: dcab1747cf
am: 0ee1e893ac

Change-Id: Ic0cbe9fd707d48d62b40ea6a03bcc55cd507ee71
2018-12-19 10:34:28 -08:00
TreeHugger Robot
7b2b4c838b Merge "Added app context to smart screen brightness." 2018-12-19 17:14:53 +00:00
Julia Reynolds
33ab8a0cda Move app overlay permission to app level
Test: cts, atest
Bug: 111236845
Change-Id: I21c52cc7ce6d8e48354a7f258ee8b07d96dcef47
2018-12-19 10:29:36 -05:00
TreeHugger Robot
9b25fa81b6 Merge "Add an API to Tile for subtitles" 2018-12-19 15:03:37 +00:00
chen xu
64e81db02f 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
(cherry picked from commit 0034bb393c)
Merged-in: Ia2d01ad6bd59565adbf989b4d95e7f64f3ee6d45
2018-12-18 23:21:57 -08:00
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
0ee6ee0a92 Expose UsbPort and UsbPortStatus as system API
This is needed by making the setup wizard use only system-api.

Test: Built, switched USB port state
Change-Id: I8e56859a5b36e7de91691522a34f7d6f62dcbb20
Fixes: 115301401
2018-12-18 08:50:46 -08:00
Amin Shaikh
305e87e6d9 Add StorageVolume#createOpenDocumentTreeIntent
Change-Id: I6894bad24fa7757dee1028a31ba0b07701baa7b3
Fixes: 119519300
Test: manually using ApiDemos Content > Storage > Documents
2018-12-18 11:44:13 -05:00
Philip P. Moltmann
3e24ffd208 Merge "Add system_notification_accent_color for mainline" 2018-12-18 16:38:23 +00:00
Dan Gittik
54478d9cab Added app context to smart screen brightness.
Smart screen brightness learns the user brightness preferences from
user interactions with the brightness slider, but doesn't take into
account the foreground app's package name or category.
This CL adds:
- A BrightnessCorrection class,
- A mapping of package names and categories to brightness corrections
  in the BrightnessConfiguration,
- Tracking of the foreground app's package name and category in the
  AutomaticBrightnessController,
- Brightness correction depending on the foreground app's package
  name and category in the BrightnessMappingStrategy.

Test: manual - force turbo app to learn brightness preferences for
      specific packages/categories and see that they are applied.

      To make sure package/category switches are handled correctly,
      you can actually hardcode corrections and simulate edge cases
      such as rapid switches, multiple windows, etc.

Fixes: 111425369

Change-Id: Ic9516c75dbf63ea21f0ae780f9c35e8c85dbbe5b
2018-12-18 16:21:43 +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
Chilun
2ef71f753c Add secondary launcher mechanism (1/3)
Add a new config value for recording the component name of secondary
launcher.
This secondary launcher with corresponding launch mode set in
AndroidManifest could be used on secondary displays that support system
decorations.
OEMs can easily replace their own secondary launcher by overlay it.

Bug: 118206886
Bug: 111363427
Test: atest RootActivityContainerTests
Test: atest ActivityManagerMultiDisplayTests
Change-Id: Iceab096fd369127231f2085313ee617c7cdea226
2018-12-18 11:20:26 +08: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