Commit Graph

22447 Commits

Author SHA1 Message Date
Shuo Qian
e11e621d5a Merge "Add Emergency Number Test Mode" 2019-01-17 21:52:58 +00:00
Aurimas Liutikas
01c7237439 Merge "Add ID_NULL constant to Resources." 2019-01-17 20:47:59 +00:00
Lajos Molnar
c7641debd3 Merge "MediaCodecInfo: add codec attributes and performance points." 2019-01-17 20:21:08 +00:00
TreeHugger Robot
8d566764fd Merge "Add config_defaultRoleHolders for specifying default role holders." 2019-01-17 18:31:40 +00:00
Aurimas Liutikas
8338623a70 Add ID_NULL constant to Resources.
Bug: 122967079
Test: cts in same topic
Change-Id: Ic6e2da137554a967b379b30c0d2d37341941a117
2019-01-17 18:20:27 +00:00
TreeHugger Robot
3515a7bee4 Merge "Add @TestApi to brightness @SystemApis" 2019-01-17 17:42:40 +00:00
Kenny Guy
9524ff9de9 Add @TestApi to brightness @SystemApis
Expose the current @SystemApis as @TestApi
so they can be used from CTS.
Add missing equals to BrightnessCorrection
so that equals on BrightnessConfiguration works.

Test: atest android.display.cts
Bug: 122988010
Bug: 122954284

Change-Id: Ifdb79bd6bb8e3fcd3aa783aad09b08f81c73f433
2019-01-17 15:35:06 +00:00
Lajos Molnar
a462966c8e Merge "media: Add new AVC levels and AV1 media type string" 2019-01-17 14:41:58 +00:00
Toby Sargeant
e27df4dd82 Merge "[wv] Add WebView unresponsive renderer APIs." 2019-01-17 10:31:42 +00:00
Stanislav Zholnin
2452709418 Merge "Added a new set of permissions for DeviceConfig API." 2019-01-17 10:16:25 +00:00
Yueming Wang
21be1cf12d Merge "Add new intents, extras and constants for provisioning optimization." 2019-01-17 08:34:18 +00:00
TreeHugger Robot
7e59dcb44f Merge "Create a new constant for system app to start a voice service." 2019-01-17 05:16:24 +00:00
Hai Zhang
7876adb642 Add config_defaultRoleHolders for specifying default role holders.
This config string array will be an array of roles and package names
of their default holders, with each item in the format of "ROLE_NAME:
PACKAGE_NAME_1, PACKAGE_NAME_2". This config will be read by
PermissionController to initialize the roles. This change also fixed
an issue preventing role controller to set default holders correctly.

Bug: 110557011
Bug: 122730135
Test: build
Change-Id: I90ffd156d26098235c821e7937950c0b420e0e7f
2019-01-16 17:38:47 -08:00
Lajos Molnar
49beba10cf media: Add new AVC levels and AV1 media type string
Also remove OMX references for the current constants.

Bug: 122971163
Bug: 111936705
Change-Id: I604ecdeedd5408016fe7c69b763ffbc040ecffd2
2019-01-16 17:29:35 -08:00
sqian
cb4bd3a30f Add Emergency Number Test Mode
Add EMERGENCY_NUMBER_SOURCE_TEST_MODE

This also does not allow to send the service categories from database when
dialing.

Bug: 122840137
Test: Manual; Treehugger
Change-Id: I4ea3539e3b814b71e03e956d4a857ec20141fa8c
2019-01-16 17:05:40 -08: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
Lajos Molnar
d2a7f47b0d MediaCodecInfo: add codec attributes and performance points.
Bug: 112374531
Bug: 119631295
Bug: 112370870
Change-Id: Icf8db614a616bd5c815bc272093ce77d05eb4406
2019-01-16 16:46:50 -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
yuemingw
c5524f2944 Add new intents, extras and constants for provisioning optimization.
Bug: 122725418
Test: manual
Change-Id: I84ebac25621ea252030741b9f725075eeed1cd7b
2019-01-16 22:29:14 +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
Stanislav Zholnin
596437fd4e Added a new set of permissions for DeviceConfig API.
Permissions READ_DEVICE_CONFIG and WRITE_DEVICE_CONFIG are required to
use DeviceConfig API. Actual checks for new permissions are not added
as we are waiting for gmscore to include them into manifest.

Also added "configurator" protection flag.

Test: atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksCoreTests:SettingsProviderTest
      atest SettingsProviderTest:DeviceConfigServiceTest
Bug:109919982
Bug:113100523
Bug:113101834
Bug:117663715
Change-Id: I66c256b57c5491201c6c7834620a287b6c81c23c
2019-01-16 10:50:51 +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
Tobias Sargeant
740b53f0f2 [wv] Add WebView unresponsive renderer APIs.
WebViewRendererClient is a callback class responsible for informing
applications about renderer state changes.

Specifically, these callbacks added as part of this feature are:

onRendererUnresponsive(renderer) - called when the renderer associated
    with a webview does not ack an input event, or a navigation does
    not commit within 5 seconds. The callback will continue to be
    called at 5 second intervals until the renderer is killed or the
    unresponsiveness resolves. |renderer| may be null if webview is
    operating in single process mode.

onRendererResponsive(renderer) - called once when an unresponsive
    renderer becomes responsive again.

This CL also adds the ability to get a webview renderer handle from a
WebView instance, and then terminate that renderer. This allows recovery
from unresponsive renderer situations when webview is in multiprocess
mode and termination is correctly handled via
WebViewClient.onRendererUnresponsive().

Bug: 111332462
Test: CTS test TBD
Change-Id: I0ec026f539a70f412c5567dd87a86a0d851b39ae
2019-01-16 00:25:30 +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