Commit Graph

22429 Commits

Author SHA1 Message Date
TreeHugger Robot
7e59dcb44f Merge "Create a new constant for system app to start a voice service." 2019-01-17 05:16:24 +00:00
jiayuzhou
2c80b59010 Create a new constant for system app to start a voice service.
Test: build and update the api.
Bug: 122048642

Change-Id: I4d5b94cd94090553ad4b2355b47391ee29a2beb8
2019-01-16 17:01:07 -08:00
Eric Laurent
56f5322566 Merge "add new audio sources for audio capture" 2019-01-16 23:57:58 +00:00
Hui Yu
46c2a56f6d Merge "UsageStats DEVICE_SHUTDOWN event." 2019-01-16 23:22:06 +00:00
Aurimas Liutikas
428ddacfa4 Merge "Add source style for each TypedValue." 2019-01-16 21:48:46 +00:00
Ashley Rose
74c1d773f6 Merge "Refactor inspector API" 2019-01-16 20:59:22 +00:00
TreeHugger Robot
46894e7ac2 Merge "Update BiometricManager constants to be more clear" 2019-01-16 19:55:26 +00:00
Kevin Chyn
922901849c Merge "Expose BiometricPrompt setRequireConfirmation API" 2019-01-16 19:51:12 +00:00
Hui Yu
b1d243a51b UsageStats DEVICE_SHUTDOWN event.
DEVICE_SHUTDOWN event is used to close all open usage events that do
not have matching closing event when device is shut down. For example,
ACTIVITY_RESUMED or FOREGROUND_SERVICE_START are open events, the
DEVICE_SHUTDOWN event will close the usage session of the open events.

At orderly shutdown like selecting Power Off or Restart after pressing
power button, a DEVICE_SHUTDOWN event is sent to UsageStats.
UsageStats persists UsageStatsDatabase to disk immediately.

When power button is pressed for 3.5 seconds (configured by
config_veryLongPressTimeout in config.xml). A DEVICE_SHUTDOWN
event is sent to UsageStats. UsageStats persists UsageStatsDatabase
to disk immediately.

This is the mechanism that we do not lose UsageStats data when the
device is shut down.

When the device boots up, if the last event is not
DEVICE_SHUTDOWN, we add a DEVICE_SHUTDOWN with timestamp set to be the last
time database file is persisted. This is to handle the case device
shutdown abruptly due to power drained or cold temperature.

Bug: 111464278
Test: atest UsageStatsTest.java
Change-Id: I1e88063ba71d09042d02c6deb9f07d8581a15c30
2019-01-16 11:13:58 -08:00
Leon Scroggins
dab4ad8ad9 Merge "Add Paint#setShadowLayer(..., @ColorLong)" 2019-01-16 18:13:40 +00:00
Eric Laurent
0016c5b739 add new audio sources for audio capture
This commit adds the following audio capture sources:
- AudioSource.VOICE_PERFORMANCE: for real time live performances like Karaoke.
- AudioSource.ECHO_REFERENCE: for capturing the reference signal to suppress by an echo
canceller. Protected by privileged permission CAPTURE_AUDIO_OUTPUT.

Also added device AUDIO_DEVICE_IN_ECHO_REFERENCE selected when the requested
capture source is AudioSource.ECHO_REFERENCE.

Bug: 118203066
Test: CTS tests for audio capture

Change-Id: I8258296736848986562f7fc89c9260aad562d3d1
2019-01-16 09:53:51 -08:00
Zimuzo Ezeozue
0adfa70918 Merge "Restrict capture_[secure_]video_output permission to signature only" 2019-01-16 17:11:43 +00:00
Zimuzo Ezeozue
c2bca7b745 Merge "Restrict MANAGE_DEVICE_ADMIN permissions to signature" 2019-01-16 16:36:14 +00:00
TreeHugger Robot
1f2ef22cc2 Merge "Add Paint#setColor(@ColorLong)" 2019-01-16 15:51:35 +00:00
Zimuzo
8236d331be Restrict MANAGE_DEVICE_ADMIN permissions to signature
We want to prevent privileged apps from calling DevicePolicyManager#setActiveAdmin. After this, only apps signed with the platform certificate (e.g Settings / ManagedProvisioning) will be allowed to set Device Admins.

Leave @SystemApi so that it is clear that it 'was' a privileged permission, but add @removed to show that it is no longer a privileged permission.

Bug: 111153365
Test: atest PermissionsHostTest && atest CtsAdminTestCases
Change-Id: I688e87cf09ad206f4f517a7be960c2aa01af8fc4
2019-01-16 14:35:57 +00:00
Narayan Kamath
69b09b0b7b Merge "Build: Add PREVIEW_SDK_FINGERPRINT." 2019-01-16 09:14:47 +00:00
Ashley Rose
618e0efd66 Refactor inspector API
- Remove unused IntFlagMapping.Builder#clear()
- Rename IntFlagMapping#namesOf(int) to #get(int)
- Change signature of IntFlagMapping#get(int) to return a Set
- Add doc comment explaing desing rationale to PropertyReader
- Remove IntEnumMapping in favor of SparseArray. Note that this removes
  the immutability gaurantees of IntEnumMapping.
- Miscelaneous doc fixes

Test: atest IntFlagMappingTest
Bug: 122518089
Change-Id: I94acf03431b238d84afcd74cdbdd347431381c40
2019-01-16 00:35:29 +00:00
Aurimas Liutikas
ce7c99c661 Add source style for each TypedValue.
This API will be used by Android Studio layout inspector to
query where a given resource attribute originated from to allow
developers to have an easier way to find what needs to be changed
to affect a given resource attribute.

Test: CTS added in the topic
Bug: 111439551
Change-Id: Ifbb52b39912ed0444030a86164290a1cd4155250
2019-01-15 16:11:23 -08:00
Aurimas Liutikas
de784fbf3d Rerun update-api. It was out of sync.
Test: make -j update-api
Bug: 122916999
Change-Id: I924d4da8474b69a88b6ff5350457df4e0aadd05c
2019-01-15 16:02:56 -08:00
Robert Shih
b5fd613d16 Merge "MediaPlayer2: callback based DRM APIs" 2019-01-15 23:12:51 +00:00
Mady Mellor
7c73162d40 Merge "Create BubbleMetadata use it instead of app overlay intent" 2019-01-15 22:24:45 +00:00
Philip P. Moltmann
7391a17324 Merge "Move permission backup into permission controller" 2019-01-15 21:52:38 +00:00
Hai Shalom
e49bb32221 Merge "[DPP] Rename "DPP" public API to "Easy Connect"" 2019-01-15 20:46:44 +00:00
Hai Shalom
6c5d08bfd7 [DPP] Rename "DPP" public API to "Easy Connect"
Rename all DPP public API and constants to use Easy Connect naming,
whic is the WFA public technology name

Bug: 122851551
Test: atest DppManagerTest
Test: act.py -c ../WifiDppConfig.json -tc WifiDppTest
Change-Id: Iaf30b62d8981b55e07cb509a4f12a476baf22768
2019-01-15 20:46:19 +00:00
Leon Scroggins III
8bbcd3477c Add Paint#setShadowLayer(..., @ColorLong)
Bug: 120904891
Test: I38537394bf314668cc38349c34b9492164cb0c92

Change-Id: Id1c294a2a79087cfaaf4a25fa4888f706fdb8124
2019-01-15 15:37:36 -05:00
Leon Scroggins III
aefa03dd9e Add Paint#setColor(@ColorLong)
Bug: 120904891
Test: Iba796744a9cc3652a6bc1881a9b229403ffaed31
Change-Id: Ib03212b27bc330e61b876a4be3d45c34ed551540
2019-01-15 15:37:36 -05:00
TreeHugger Robot
a32c79d362 Merge "Add CodeType to GnssMeasurement API" 2019-01-15 18:55:03 +00:00
TreeHugger Robot
77571c7f31 Merge "Add Bitmap#eraseColor(@ColorLong) + helpers" 2019-01-15 18:50:21 +00:00
Sunil Ravi
25830b58d7 Merge "Rx Link speed Information" 2019-01-15 18:43:59 +00:00
Jordan Liu
1f49aca8ef Merge "EuiccManager handles multiple eUICCs using cardId" 2019-01-15 18:32:57 +00:00
Siyamed Sinir
7df3ef9cbf Merge "Change UrlSpanFactory to a Function" 2019-01-15 18:29:27 +00:00
Mady Mellor
c39b4aedb0 Create BubbleMetadata use it instead of app overlay intent
* BubbleMetadata encapsulates necessary info to display a bubble
* Replaces app overlay intent usages with BubbleMetadata
* Renames existing bubble APIs to use 'bubble' rather than 'app overlay'

Bug: 111236845
Test: existing tests pass
Change-Id: I6a85d3c41dda47139fb8d960cadf1c8e109cf29b
2019-01-15 10:28:31 -08:00
Leon Scroggins III
4c4259b339 Add Bitmap#eraseColor(@ColorLong) + helpers
Bug: 120904891
Test: I162451ebf807f3a8a44679e5c10406468c922500

- Add Bitmap#eraseColor(@ColorLong). This allows erasing in ColorSpaces
  besides SRGB. New API is hidden pending API-council approval. It is
  @TestApi so it can be used by the new tests.
- Rewrite Bitmap#erase(@ColorInt)'s internals. The ColorInt should be
  treated as an SRGB color. The old code (deep in SkPixmap::erase)
  treated the color as being in the SkColorSpace of the SkBitmap.
- Update getNativeColorSpace to return immediately when it throws.
  Existing callers should never throw anyway, since they do their own
  checks (and throws) in Java before reaching this method. But relying
  on this method to properly return simplifies the new callers.

Change-Id: I1b736934ce1b8294c827bb61c2a363207569da4f
2019-01-15 12:16:19 -05:00
TreeHugger Robot
d08f18b455 Merge "Make some Process constants @TestApi." 2019-01-15 16:08:07 +00:00
Michal Karpinski
a9002d56be Merge "Make PermissionInfo.PROTECTION_FLAG_OEM @TestApi" 2019-01-15 14:36:41 +00:00
Narayan Kamath
b081e07980 Build: Add PREVIEW_SDK_FINGERPRINT.
Based on ro.build.version.preview_sdk_fingerprint, which is
generated by the build system based on the contents of the
public / system API fingerprint. This value helps implement
finer grained targeting of packages to preview releases.

Test: atest BuildTest; manual
Bug: 120439642

Change-Id: Ib2c28d96ea0fa2ed9a6be4c05580c164e39cdd9f
2019-01-15 13:41:18 +00:00
TreeHugger Robot
2499cc2f97 Merge "HIDL stuff to TestApi." 2019-01-15 11:53:37 +00:00
Michal Karpinski
517959e484 Make PermissionInfo.PROTECTION_FLAG_OEM @TestApi
So it can be used in CTS.

Bug: 110956953
Test: atest PermissionPolicyTest#testPlatformPermissionPolicyUnaltered
Change-Id: I1682376845dfa390f01b0e869444c307e6c3d3be
2019-01-15 11:26:36 +00:00
TreeHugger Robot
66f91878a0 Merge "Cleanup TextClassifier APIs" 2019-01-15 10:49:13 +00:00
Seigo Nonaka
74cababfd5 Merge "Add Canvas.drawTextRun(MeasuredText)" 2019-01-15 08:55:13 +00:00
TreeHugger Robot
ba05834931 Merge "Unhide MediaSession2 and MediaController2" 2019-01-15 08:48:33 +00:00
Sungsoo Lim
7553b35ea1 Unhide MediaSession2 and MediaController2
Also unhide the relevant class: Session2Token.

Bug: 122055262
Test: pass MediaSession2Test and MediaController2Test
Change-Id: I7fb94b24082d683ff6367961e300f9ce5f6f8821
2019-01-15 10:24:08 +09:00
Jeff Tinker
955f3424a2 Merge "Add additional error conditions to MediaDrm" 2019-01-15 01:22:16 +00:00
TreeHugger Robot
1efe5f627a Merge "Add intent action and extra for managing a single default app." 2019-01-15 00:47:40 +00:00
Philip P. Moltmann
97142e25d7 Move permission backup into permission controller
As runtime permissions are complex, all runtime permission code is
consolidated into the permission controller app.

Hence the package manager service's permission backup code is now
calling into the PermissionControllerManager which is a interface to the
permission controller app.

Bug: 120907838
Test: Triggered a backup and checked the result via the debugger.
Change-Id: I633162189b728921d902050eee125b4b40b618fd
2019-01-14 16:44:06 -08:00
Robert Shih
cf96703641 MediaPlayer2: callback based DRM APIs
Bug: 112549021
Test: MediaPlayer2DrmTest
Change-Id: If837087ef38fe0b71ad67e01aefdc04bb0339c8e
2019-01-14 16:33:20 -08:00
TreeHugger Robot
09203ca2be Merge "Adding an api to mark a package as distracting" 2019-01-14 23:53:02 +00:00
Jordan Liu
c1c89e470a EuiccManager handles multiple eUICCs using cardId
Bug: 80097562
Test: manual
Change-Id: I61ab60dfe4b97080148c9ee4b180e0a582b10f59
2019-01-14 15:13:41 -08:00
Hall Liu
37c22c1018 Merge "IMS: Propagate media profile changed message" am: 7ae295368d am: 4dee3b2193
am: c5c6046579

Change-Id: Icfa541a094255b3b60600e479cac31fc5220612c
2019-01-14 15:13:10 -08:00
Steven Moreland
cbba4c7a49 HIDL stuff to TestApi.
Since the CTS test for android.os is build with test_current.

Bug: 78650449
Test: android.os.cts
Change-Id: If784f4949af931c6c4efc284f1d16414705fe2d4
2019-01-14 14:37:12 -08:00