Commit Graph

468813 Commits

Author SHA1 Message Date
Patrick Baumann
e79217d9c0 Merge "Actually make PackageManagerInternal things internal" 2020-02-13 18:10:37 +00:00
arangelov
34c6ff8436 Fix broken tests and add tests for empty state screens.
Test: atest com.android.internal.app.ChooserActivityTest
Test: atest com.android.internal.app.ResolverActivityTest
Bug: 142537267
Bug: 142538125
Change-Id: Id0562b38fcd2dbdb5e3d58b45e726bafcaed2b31
2020-02-13 18:10:23 +00:00
Automerger Merge Worker
fb25727f7c [automerger skipped] Merge "DO NOT MERGE Adjust NotificationView bottom margin based on whether Keyboard is shown." into qt-qpr1-dev am: fd15e010ba am: 8c7deb13a8 -s ours
am skip reason: subject contains skip directive

Change-Id: I29b0928aa80d6065f52088f1edf99a2ba98d4753
2020-02-13 18:07:03 +00:00
Automerger Merge Worker
96a42d3fca [automerger skipped] DO NOT MERGE Adjust NotificationView bottom margin based on whether Keyboard is shown. am: 6073f3c58b am: b0afb25e7c -s ours
am skip reason: subject contains skip directive

Change-Id: I33bad8ef96cd239a602c50a340f48b8b6109cfc3
2020-02-13 18:06:51 +00:00
Tyler Gunn
fdfc58fcd9 Merge changes from topic "add_participant"
* changes:
  Mark adhoc conference call APIs as @hide.
  Ims: Add support to add participants to existing call
2020-02-13 18:05:14 +00:00
Santiago Seifert
111048ad8f Add pixelWidthHeightRatio to MediaParser
Bug: 132153067
Test: CTS.
Change-Id: I6603fdba0eff9a37016678e57345cf5763747fa2
2020-02-13 18:04:20 +00:00
Bill Yi
56948591d4 Import translations. DO NOT MERGE
Change-Id: I70b0f2c9db5381bd01cdef8d79d0d6b8dffe1bbd
Auto-generated-cl: translation import
2020-02-13 10:02:08 -08:00
Wenjie Zhou
4866024a34 Merge "Remove "es" from dropbox_system_server_crash since it's an optional field." 2020-02-13 17:57:57 +00:00
Sergey Volnov
63f5f3a40f After data was successfully copied - mark package as able to receive new
sharing requrests.

Bug: 145205247
Test: this was actually surfaced during CTS tests implementation, when
subsequent test executions failed because of needing a timeout.

Change-Id: I529216d0e9139f165f90bdaab80850c4c047f836
2020-02-13 17:56:45 +00:00
Alex Johnston
0f20b0ee24 Invert setFactoryResetProtectionDisabled
* Invert and rename setFactoryResetProtectionDisabled
  to setFactoryResetProtectionEnabled.
* Invert and rename isFactoryResetProtectionDisabled
  to isFactoryResetProtectionEnabled.
* Update javadoc for both APIs.

Bug: 148596230
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.server.devicepolicy.FactoryResetProtectionPolicyTest
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testFactoryResetProtectionPolicy
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testFactoryResetProtectionPolicy

Change-Id: I0e0b7d0bec8d10ffa4ef4a2d9fa4b60d7b3a94c1
2020-02-13 17:56:30 +00:00
Philip P. Moltmann
555a2e1911 Merge "Reduce app-ops settle time" 2020-02-13 17:53:43 +00:00
Youngjun Kwak
8c7deb13a8 Merge "DO NOT MERGE Adjust NotificationView bottom margin based on whether Keyboard is shown." into qt-qpr1-dev
am: fd15e010ba

Change-Id: Iafb2266d9bd6f0628d8fc2ba8b0f646bab615523
2020-02-13 09:53:16 -08:00
kwaky
b0afb25e7c DO NOT MERGE Adjust NotificationView bottom margin based on whether Keyboard is shown.
am: 6073f3c58b

Change-Id: I2061e27b7aafd294f5cc5e8e14535bd1e3860c5c
2020-02-13 09:53:06 -08:00
Alex Johnston
c39e9b2e25 Merge "Modify DPM KEYGUARD_DISABLE_SECURE_CAMERA restriction" 2020-02-13 17:50:29 +00:00
Curtis Belmonte
4584d88d41 Add internal API for credential text in BiometricPrompt
Adds a hidden API behind an internal permission check that allows the
Settings app to use specific text to BiometricPrompt for credential
auth. This allows the work authentication prompt to use work-specific
language when verifying work credentials, while retaining more generic
language when authenticating with biometrics.

Test: Work lock prompt shows "Enter your work ___" for credential
Test: Work lock prompt now shows "Verify it's you" for face

Bug: 149003660
Change-Id: Idf06f7e008f4bdb448b0d539522efd2e9290a3bb
2020-02-13 09:47:48 -08:00
Muhammad Qureshi
f2440980d5 Merge "Add visibility property to framework-statsd stubs" 2020-02-13 17:46:26 +00:00
Anna Malova
4454e20081 Switch to WebViewFactoryProviderForR.
Test: n/a
Change-Id: I855463395044045b0ad1c7904a9aeb6fd32eaf54
2020-02-13 17:45:09 +00:00
Victor Hsieh
116b91c2c1 Exclude all directories instead of only known ones
The previous known directories seem to be removed in some case and
breaks the test.  Since the intention is to exclude directories and
compare existing files, exclude all directories instead.

Test: atest ApkVerityTest
Bug: 149469433
Change-Id: Ib096062b5647920b90f7d9d5638226392a2df174
2020-02-13 09:43:15 -08:00
Jack Yu
59e09ca52a Merge "Added telephony display info support" 2020-02-13 17:42:54 +00:00
Youngjun Kwak
fd15e010ba Merge "DO NOT MERGE Adjust NotificationView bottom margin based on whether Keyboard is shown." into qt-qpr1-dev 2020-02-13 17:38:20 +00:00
Andrei Onea
3ef678b58f Cache binder calls in CompatChanges
Cached call values are kept in ChangeIdStateCache (per-process cache).
Use "cache_key.is_compat_change_enabled" system property to
invalidate the cache (i.e. any value different from the last observed
will trigger an invalidation).
Any process can read that property, but only system server can change it.

Bug: 140441727
Test: atest PlatformCompatTest
Test: atest CompatConfigTest
Test: atest CompatChanges
Test: atest PlatformCompatGating

Change-Id: Ibed398ae965b7da2432aaf8d5ffc259f7d228c7e
2020-02-13 17:36:37 +00:00
Adrian Roos
fc2f5882c9 Merge "API Lint: Ignore existing CallbackMethodName violations" 2020-02-13 17:33:18 +00:00
Soonil Nagarkar
a598462fb2 Reduce allocations in hot paths
Prevent lambda allocations in common paths in location.

Test: presubmits
Change-Id: Ia4fc7680e8e4304fcd6164a9aded56ed32492cbc
2020-02-13 09:25:27 -08:00
Song Pan
90991d41fc Add unit test for parsing apks with two certificates.
Bug:148373316
Test: atest AppIntegrityManagerServiceImpl
Change-Id: Ia6c8e28a09ded8e5695b02c9d93d13e321dfcbe7
2020-02-13 17:22:46 +00:00
Bill Yi
f2d96eee52 Import translations. DO NOT MERGE
Change-Id: I7cda6b85c5e31facf78a92a880e65f9b92efd566
Auto-generated-cl: translation import
2020-02-13 09:17:27 -08:00
Kweku Adams
64fccfb33d Merge "Improve API signature." 2020-02-13 17:13:42 +00:00
Ricky Wai
3b726119ac Merge "Mount private volume hook after prepareUserData" 2020-02-13 16:55:58 +00:00
Tyler Gunn
c9503d6ea6 API Review cleanups.
- New @SystemApis on Conference and PhoneAccount were missing the required
permissions annotations.
- Rename PROPERTY_ASSISTED_DIALING_USED to PROPERTY_ASSISTED_DIALING
- Standardize get/setConnectionStartElapsedRealtimeMillis method naming
across Connection and Conference classes.
- Clarify Conference#sendConferenceEvent API documentation to match the
docs present for similar method in Connection; include some examples of
valid event/extras combinations.
- Update TelecomManager#getDefaultdialerPackage to use UserHandle instead
of userId.
- Move Conference#getConnectionStartElapsedRealtimeMillis to public API
since the setter is already part of the public API.

Test: Run Telecom and Telephony CTS tests.
Test: Run Telephony unit tests.
Test: Perform manual single-party-conference regression test to confirm
that conference behavior does not regress.

Bug: 147301297
Bug: 148286830
Bug: 148284863
Bug: 148284843
Bug: 148287068
Bug: 148285484
Bug: 148285560
Change-Id: I1f446d81859fa109d74af3661a42a0bd224de5aa
Merged-In: I1f446d81859fa109d74af3661a42a0bd224de5aa
2020-02-13 16:53:42 +00:00
Santiago Seifert
4ea6fce129 Extract method in MediaParser
Also set selection flags unconditionally.

Bug: 132153067
Test: CTS.
Change-Id: Id325040db7946f60c59eeaeaf8508424b390b813
2020-02-13 16:51:01 +00:00
Ryan Mitchell
6e106c549b Merge "API council changes for ResourcesLoaders" 2020-02-13 16:31:55 +00:00
Automerger Merge Worker
8c03bb8325 Merge "Change default print media size from JIS_B5 to ISO_A4 for Japanese" am: 237cf7a3bc am: cc1cf07352 am: 62dd5d67a5
Change-Id: Iab3c5ba90b1eaf6574519db4f853dbe22cf6c303
2020-02-13 16:31:09 +00:00
Automerger Merge Worker
b88de9273f [automerger skipped] Merge "Do not disable tracing in zygote." am: 88be2985c4 am: aee51d9eab am: 2ddf24b6a8 -s ours
am skip reason: Change-Id I50e32a19c538dd255097c035836504b4746b172b with SHA-1 e38797be84 is in history

Change-Id: I646384dd98fb910e8533d373107b24afc763aa05
2020-02-13 16:30:38 +00:00
Song Pan
307f10a4fc Merge "Implement the InstallerAllowedByManifest rule." 2020-02-13 16:22:10 +00:00
Automerger Merge Worker
62dd5d67a5 Merge "Change default print media size from JIS_B5 to ISO_A4 for Japanese" am: 237cf7a3bc am: cc1cf07352
Change-Id: I45de7817ba4448c59f7f40b5a2b6b3c019db1386
2020-02-13 16:20:42 +00:00
Automerger Merge Worker
2ddf24b6a8 Merge "Do not disable tracing in zygote." am: 88be2985c4 am: aee51d9eab
Change-Id: I8b6280d305ea53c5361442e4b7bb45aa164fb5d2
2020-02-13 16:20:06 +00:00
Automerger Merge Worker
cc1cf07352 Merge "Change default print media size from JIS_B5 to ISO_A4 for Japanese" am: 237cf7a3bc
Change-Id: Iab4b02b0511c3aedbe67402af16c3c2ebcd70bb4
2020-02-13 16:14:28 +00:00
Philip P. Moltmann
237cf7a3bc Merge "Change default print media size from JIS_B5 to ISO_A4 for Japanese" 2020-02-13 16:12:30 +00:00
Arthur Ishiguro
49e96a8ab7 Fixes Context Hub feature naming and documentation
- Adds "_" in variable name for consistency with feature string
- Adds documentation on what the feature is used for

Bug: 149475852
Test: None
Change-Id: I6eca279df8409de1155cd7014647a705d0d31d6f
2020-02-13 08:08:55 -08:00
Alex Johnston
af0aa258a1 Modify DPM KEYGUARD_DISABLE_SECURE_CAMERA restriction
* Introduced new logic that allows the profile owner of an
  organization-owned device (COPE PO) to set the restriction
  KEYGUARD_DISABLE_SECURE_CAMERA on the parent profile.
* Modified the API setKeyguardDisabledFeatures to be callable
  on the parent profile for restriction KEYGUARD_DISABLE_SECURE_CAMERA.

Bug: 148656201
Test: Manual testing with TestDPC
      atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testSetKeyguardDisabledFeatures
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyguardDisabledFeatures
      atest com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testSetKeyguardDisabledFeatures
      atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSetKeyguardDisabledFeaturesLogged

Change-Id: I13984193e24b8745686e48c9c58ebee40a204fc7
2020-02-13 16:08:06 +00:00
Miranda Kephart
4890f3e4ba Implement motion spec for screenshot corner animation
Updates the flash and animation into the corner, to the new motion
specs.

Test: manual
Bug: 149100933
Bug: 148626831

Change-Id: I5e0558120f16b54e12fb1ecd43a4fc3f609e6f94
2020-02-13 11:08:03 -05:00
Patrick Baumann
37f3662e5c Actually make PackageManagerInternal things internal
There are a few methods that were still relying on the bound caller id
instead of acting as an internal call. This change extracts the ones
necessary to get webview resolution working correctly.

Bug: 142386643
Test: atest WebViewHostSideStartupTest
Change-Id: I1aa80d5c9f8308fef42ffa4901c1114a2e5cd9e9
2020-02-13 08:07:25 -08:00
Beverly
9e6a7643c7 Don't remove bubbless onClearAll or onNotifClick
Test: atest NotificationManagerServiceTest
Fixes: 149396544
Change-Id: I8e124ea325d7b2fad171a013100bbbed5602edae
2020-02-13 11:07:17 -05:00
Automerger Merge Worker
aee51d9eab Merge "Do not disable tracing in zygote." am: 88be2985c4
Change-Id: If850e4ff9da2b0c1259a366caac1fd95a8eb1c3c
2020-02-13 16:07:04 +00:00
Matt Pietal
9092e6fae5 Controls API - Remove unnecessary templates
DiscreteToggleTemplate and CoordinatedRangeTemplate are no longer
necessary. DiscreteToggletemplate is being replaced by
StatelessTemplate, and there is no need for the latter.

Bug: 149476062
Test: atest ControlTemplateTest
Change-Id: I2cdd3d26c0b306876a47783ead257754966a339c
2020-02-13 11:06:57 -05:00
Tyler Gunn
8d95abab29 Merge "API Review cleanups." 2020-02-13 16:05:53 +00:00
Muhammad Qureshi
974f4e83d4 Add visibility property to framework-statsd stubs
Test: m
Change-Id: I8ee0d6887d4c921d419be79b876fed4d30bec80f
2020-02-13 08:02:32 -08:00
Derek Sollenberger
6103f4363e Remove unnecessary UnsupportedAppUsage annotation
These annotations were part of the initial bulk assignment of
annotations, but do not have any active usage. Further, the
start() method is not annotated so there is no clear way for
applications to trigger any meaningful behavior.

Bug: 149293249
Test: built and surveyed for potential API usage
Change-Id: I4118d6d54562079c3c4e4a83fd0e40b50cb08434
2020-02-13 10:57:54 -05:00
Florian Mayer
88be2985c4 Merge "Do not disable tracing in zygote." 2020-02-13 15:53:06 +00:00
TreeHugger Robot
6d075f0dab Merge "Fix HistoricalAppOps collection." 2020-02-13 15:37:21 +00:00
Edwin Wong
b06912c223 Add fields to log secure/unsecure buffer playback errors
Add meteric to show the difference between drm
playback of protected vs unprotected content.
We log onQueueInputBuffer errors.

Bug: 138862395

Test: adb shell dumpsys media.metrics | grep -i InputBuffer
Change-Id: I4ebcc6050c5fa0fe16e5d854beb6d40703918fd2
2020-02-13 07:25:16 -08:00