OSDN Git Service

android-x86/frameworks-base.git
6 years agoUse system property to get the package name for media update
Dongwon Kang [Sat, 10 Mar 2018 01:24:08 +0000 (17:24 -0800)]
Use system property to get the package name for media update

Also, disabled updatable apk usage on Media2 APIs since
they are hidden and they shouldn't be used in P.

Test: build and boot on aosp and non-aosp build
Bug: 67908547
Change-Id: Ic93cc0f07604020ec47be25725b05af8a9794572

6 years agoMerge "Fixes non-web AIA internal launch" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 17:07:14 +0000 (17:07 +0000)]
Merge "Fixes non-web AIA internal launch" into pi-dev

6 years agoMerge "Makes TCS methods non-abstract" into pi-dev
Jan Althaus [Thu, 5 Apr 2018 16:53:17 +0000 (16:53 +0000)]
Merge "Makes TCS methods non-abstract" into pi-dev

6 years agoMerge "Add OnMediaTimeDiscontinuity notification" into pi-dev
Dongwon Kang [Thu, 5 Apr 2018 16:33:39 +0000 (16:33 +0000)]
Merge "Add OnMediaTimeDiscontinuity notification" into pi-dev

6 years agoMerge "Copy ApplicationInfo#versionCode field" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 16:20:25 +0000 (16:20 +0000)]
Merge "Copy ApplicationInfo#versionCode field" into pi-dev

6 years agoMerge "Show work notifications in the shade unless on keyguard." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 15:30:54 +0000 (15:30 +0000)]
Merge "Show work notifications in the shade unless on keyguard." into pi-dev

6 years agoMerge "[QS] Update landscape UI" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 15:29:27 +0000 (15:29 +0000)]
Merge "[QS] Update landscape UI" into pi-dev

6 years agoMakes TCS methods non-abstract
Jan Althaus [Wed, 4 Apr 2018 11:56:40 +0000 (13:56 +0200)]
Makes TCS methods non-abstract

This only affects System API

Bug: 77563695
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextSelectionTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextLinksTestBug:
Change-Id: Ie927ffe3a4678b7a622c139a5431b89e8f22c6e4

6 years agoMerge "Added adb commands to set and reset brightness." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 14:43:32 +0000 (14:43 +0000)]
Merge "Added adb commands to set and reset brightness." into pi-dev

6 years agoMerge "Require screen to be unlocked for smart replies" into pi-dev
Milo Sredkov [Thu, 5 Apr 2018 14:07:52 +0000 (14:07 +0000)]
Merge "Require screen to be unlocked for smart replies" into pi-dev

6 years agoMerge "StrictMode: Add support for warning on non SDK API usage." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 13:41:17 +0000 (13:41 +0000)]
Merge "StrictMode: Add support for warning on non SDK API usage." into pi-dev

6 years agoMerge "Add docs for setTargetSize and setTargetSampleSize" into pi-dev
Leon Scroggins [Thu, 5 Apr 2018 13:29:38 +0000 (13:29 +0000)]
Merge "Add docs for setTargetSize and setTargetSampleSize" into pi-dev

6 years agoRequire screen to be unlocked for smart replies
Milo Sredkov [Wed, 4 Apr 2018 15:13:28 +0000 (16:13 +0100)]
Require screen to be unlocked for smart replies

Currently tapping on a smart reply works even when the screen is
locked. To make it consistent with inline replies, require the screen
to be unlocked before sending the reply.

Bug: 76217177
Test: atest SmartReplyViewTest
Change-Id: I3af8a0411537503650fb9f83cd99f65900e700e0

6 years agoAdded adb commands to set and reset brightness.
Dan Gittik [Wed, 28 Mar 2018 11:19:38 +0000 (12:19 +0100)]
Added adb commands to set and reset brightness.

adb shell cmd display set-brightness BRIGHTNESS command sets the
screen brightness programatically.
adb shell cmd display reset-brightness resets the brightness
configuration to the default configuration.

Test: run "adb shell cmd display set-brightness <number>" and watch
      the magic happen.

Test: run "adb shell cmd jobscheduler run -f
      com.google.android.apps.turbo 104" to push a new configuration,
      then run "adb shell cmd display reset-brightness-configuration"
      to reset it. If it's not noticable enough, you can manually
      edit /data/system/display-manager-state.xml: for example, set
      nits="0.0" for all the <brightness-point />s in the
      <brightness-curve /> to make it as dark as posible.

Fixes: 77574628

Change-Id: I37e19c1e662370e60c9f616a3710780f16418620

6 years agoMerge "Catch IAE from unbind onServiceDisconnected()" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 11:26:25 +0000 (11:26 +0000)]
Merge "Catch IAE from unbind onServiceDisconnected()" into pi-dev

6 years agoMerge "Exempt platform-cert signed apps from hidden API checks." into pi-dev
Mathew Inwood [Thu, 5 Apr 2018 10:43:12 +0000 (10:43 +0000)]
Merge "Exempt platform-cert signed apps from hidden API checks." into pi-dev

6 years agoCatch IAE from unbind onServiceDisconnected()
Bernardo Rufino [Thu, 5 Apr 2018 10:03:39 +0000 (11:03 +0100)]
Catch IAE from unbind onServiceDisconnected()

We still don't know the underlying cause of this, but we shouldn't crash
the system_server. Catching for now.

Bug: 74940472
Bug: 77574274
Test: m -j RunFrameworksServicesRoboTests
Change-Id: I36fc2e65f8766f6b8fd68104d8830b72668d84eb

6 years agoMerge "MediaController: Fix annotation of Callback#onPlaybackStateChanged()" into...
TreeHugger Robot [Thu, 5 Apr 2018 10:03:22 +0000 (10:03 +0000)]
Merge "MediaController: Fix annotation of Callback#onPlaybackStateChanged()" into pi-dev

6 years agoMerge "Device ID attestation: Add feature flag." into pi-dev
Rubin Xu [Thu, 5 Apr 2018 09:38:28 +0000 (09:38 +0000)]
Merge "Device ID attestation: Add feature flag." into pi-dev

6 years agoMerge "Don't call into phone process with lock held." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 07:27:33 +0000 (07:27 +0000)]
Merge "Don't call into phone process with lock held." into pi-dev

6 years agoMerge "Use Collection instead of List for entity list" into pi-dev
Richard Ledley [Thu, 5 Apr 2018 05:46:53 +0000 (05:46 +0000)]
Merge "Use Collection instead of List for entity list" into pi-dev

6 years agoMerge "MediaSessionManager: Apply API council review" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 05:25:15 +0000 (05:25 +0000)]
Merge "MediaSessionManager: Apply API council review" into pi-dev

6 years agoPersist volume level on reconnections for Hearing Aid
Jakub Pawlowski [Wed, 4 Apr 2018 17:15:12 +0000 (10:15 -0700)]
Persist volume level on reconnections for Hearing Aid

Devices in mFullVolumeDevices have volume level reset to maximum value
in checkFixedVolumeDevices.

Bug: 69623109
Test: change Hearing Aid volume, restart phone, verify volume persisted
Change-Id: Iba134c0b3dc959c19c59f89c3d4ac02eed1e216f

6 years agoMerge "Fade scrims slower when entering AOD" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 04:26:50 +0000 (04:26 +0000)]
Merge "Fade scrims slower when entering AOD" into pi-dev

6 years agoMerge "Fix image fetching." into pi-dev
Tomasz Wasilczyk [Thu, 5 Apr 2018 03:14:14 +0000 (03:14 +0000)]
Merge "Fix image fetching." into pi-dev

6 years agoMerge "Ensure we mark windows as not seamlessly rotating when removing them." into...
TreeHugger Robot [Thu, 5 Apr 2018 02:29:14 +0000 (02:29 +0000)]
Merge "Ensure we mark windows as not seamlessly rotating when removing them." into pi-dev

6 years agoMediaController: Fix annotation of Callback#onPlaybackStateChanged()
Jaewan Kim [Thu, 5 Apr 2018 02:13:38 +0000 (11:13 +0900)]
MediaController: Fix annotation of Callback#onPlaybackStateChanged()

PlaybackState can be null and it's annotated as @Nullable in other
places. So we'd better to fix the annotation.

Bug: 77532207
Test: Run CtsMediaTestCases
Change-Id: I8974c6c99d9d188934f74775977631fb7b37e5d2

6 years agoMerge "Load static RROs in OverlayManagerService" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 01:41:39 +0000 (01:41 +0000)]
Merge "Load static RROs in OverlayManagerService" into pi-dev

6 years agoMerge "keystore: Change superclass of UserPresenceUnavailableException." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 00:58:18 +0000 (00:58 +0000)]
Merge "keystore: Change superclass of UserPresenceUnavailableException." into pi-dev

6 years agoMerge "Add NtpTimeHelper" into pi-dev
Yu-Han Yang [Thu, 5 Apr 2018 00:51:32 +0000 (00:51 +0000)]
Merge "Add NtpTimeHelper" into pi-dev

6 years agoFade scrims slower when entering AOD
Lucas Dupin [Wed, 4 Apr 2018 22:09:06 +0000 (15:09 -0700)]
Fade scrims slower when entering AOD

Test: visual
Change-Id: I32117a6351c3d652f845b1b46bffaade52f1fbc4
Fixes: 77539750

6 years agoMerge "Shelf horizontal alignment was a few dps off" into pi-dev
Lucas Dupin [Thu, 5 Apr 2018 00:33:45 +0000 (00:33 +0000)]
Merge "Shelf horizontal alignment was a few dps off" into pi-dev

6 years agoMerge "Fix app switch regression" into pi-dev
Winson Chung [Thu, 5 Apr 2018 00:33:07 +0000 (00:33 +0000)]
Merge "Fix app switch regression" into pi-dev

6 years agoMerge "WM Tests: Use a separate WindowManager instance per test" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 00:25:34 +0000 (00:25 +0000)]
Merge "WM Tests: Use a separate WindowManager instance per test" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 00:16:29 +0000 (00:16 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Changed AAPT2 to abide by AAPT resource whitespace triming." into pi-dev
Ryan Mitchell [Thu, 5 Apr 2018 00:14:38 +0000 (00:14 +0000)]
Merge "Changed AAPT2 to abide by AAPT resource whitespace triming." into pi-dev

6 years agoMerge "Puts back res id to correct view for the pinning tutorial" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 00:11:21 +0000 (00:11 +0000)]
Merge "Puts back res id to correct view for the pinning tutorial" into pi-dev

6 years agoMerge "MediaCodecInfo: define AACObjectXHE profile level" into pi-dev
Jean-Michel Trivi [Wed, 4 Apr 2018 23:40:35 +0000 (23:40 +0000)]
Merge "MediaCodecInfo: define AACObjectXHE profile level" into pi-dev

6 years agoMerge "Completely fill in permission info" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 23:39:39 +0000 (23:39 +0000)]
Merge "Completely fill in permission info" into pi-dev

6 years agoMerge "Adding a utility method to show Assist session" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 23:05:41 +0000 (23:05 +0000)]
Merge "Adding a utility method to show Assist session" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 4 Apr 2018 23:00:04 +0000 (16:00 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I32c2b02c473f73f279bea8631709bab73090d1c2

6 years agoLoad static RROs in OverlayManagerService
Jaekyun Seok [Wed, 4 Apr 2018 02:28:21 +0000 (11:28 +0900)]
Load static RROs in OverlayManagerService

Only RROs targeting "android" are loaded from AssetManager, and so
others should be loaded from OverlayManagerService.

The RROs targeting "android" would be ingored as they are to avoid
redundant loading.

Bug: 76205654
Test: succeeded building and tested with taimen
Change-Id: Ibeeb3c3f3338a845b2f4c485305636003d9dbd44

6 years agoMerge "Allow double tap when pulsing" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 22:48:22 +0000 (22:48 +0000)]
Merge "Allow double tap when pulsing" into pi-dev

6 years agoMerge "Hiding windows for suspended packages" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 22:42:37 +0000 (22:42 +0000)]
Merge "Hiding windows for suspended packages" into pi-dev

6 years agoMerge "Update for sdk drop" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 22:40:27 +0000 (22:40 +0000)]
Merge "Update for sdk drop" into pi-dev

6 years agoDon't call into phone process with lock held.
Makoto Onuki [Wed, 4 Apr 2018 22:29:00 +0000 (15:29 -0700)]
Don't call into phone process with lock held.

Bug: 77456094
Fixes: 77456094

Test: Manual test:
- Insert SIM card to device
- Set break point to setNetworkTemplateEnabledInner
- Change connectivity and make sure setNetworkTemplateEnabledInner()
is called with right arguments.

Change-Id: I6ff3c5639b48cb95419b431a85c498e214ee8e0d

6 years agoMerge "autofill: fix window location in splitwindow and dialog" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 22:06:49 +0000 (22:06 +0000)]
Merge "autofill: fix window location in splitwindow and dialog" into pi-dev

6 years agoMerge "Statsd config TTL" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 22:01:55 +0000 (22:01 +0000)]
Merge "Statsd config TTL" into pi-dev

6 years agoCompletely fill in permission info
Todd Kennedy [Wed, 4 Apr 2018 22:00:00 +0000 (15:00 -0700)]
Completely fill in permission info

During the refactor, an optimization was made to generatePermissionInfo()
to avoid creating duplicate PermissionInfo objects. However, the logic was
flawed and if a permission's protection level was ever adjusted, we
wouldn't return a properly filled out PermissionInfo object.

Change-Id: I70b3eda199008807182f75a413651d7cb4f4b7fd
Fixes: 74556457
Test: Manual; run app com.kakao.taxi and it doesn't crash

6 years agoMerge "Add basic inversion lock detection to DPMS." into pi-dev
Makoto Onuki [Wed, 4 Apr 2018 21:54:11 +0000 (21:54 +0000)]
Merge "Add basic inversion lock detection to DPMS." into pi-dev

6 years agoShelf horizontal alignment was a few dps off
Lucas Dupin [Wed, 4 Apr 2018 21:32:53 +0000 (14:32 -0700)]
Shelf horizontal alignment was a few dps off

Also interpolating anti burn in offset instead of setting it.

Test: visual
Change-Id: Ib9248a89eaf8a8905f8d462cb8ded574975372a7
Fixes: 77541088

6 years agoAdding a utility method to show Assist session
Sunny Goyal [Wed, 4 Apr 2018 21:41:07 +0000 (14:41 -0700)]
Adding a utility method to show Assist session

Bug: 72122079
Test: Verified the library works with launcher
Change-Id: Ic1e9131687ea85fdcce16c71054ce7940c190504

6 years agoPuts back res id to correct view for the pinning tutorial
Matthew Ng [Wed, 4 Apr 2018 21:33:00 +0000 (14:33 -0700)]
Puts back res id to correct view for the pinning tutorial

Put the wrong back button id for pinning tutorial in landscape
and now corrected it.

Test: manual - use 3 button nav bar, rotate to landscape and pin
Change-Id: I7cb2d61356226b11e7aa9b777e86badbf83a1f63
Fixes: 74174603

6 years agoFixes non-web AIA internal launch
Patrick Baumann [Wed, 4 Apr 2018 17:41:01 +0000 (10:41 -0700)]
Fixes non-web AIA internal launch

This change plumbs the original uid of a startActivity call through to
PackageManagerService#queryIntentActivitiesInternal so that we properly
filter.

Test: manual - launch previously failing instant app
Change-Id: I0a62195f67c2e08315ce2d87f1d8c516c2327ba6
Fixes: 77489209

6 years agoMerge "Fix launcher apps reverse access" into pi-dev
Makoto Onuki [Wed, 4 Apr 2018 21:29:38 +0000 (21:29 +0000)]
Merge "Fix launcher apps reverse access" into pi-dev

6 years agoMerge "Added --debug-mode flag to AAPT2" into pi-dev
Ryan Mitchell [Wed, 4 Apr 2018 21:21:28 +0000 (21:21 +0000)]
Merge "Added --debug-mode flag to AAPT2" into pi-dev

6 years agoMerge "Added decoding of truncated AAPT string lengths." into pi-dev
Ryan Mitchell [Wed, 4 Apr 2018 21:21:10 +0000 (21:21 +0000)]
Merge "Added decoding of truncated AAPT string lengths." into pi-dev

6 years agoMerge "Fixed resource bag retrieval infinite recursion." into pi-dev
Ryan Mitchell [Wed, 4 Apr 2018 21:20:24 +0000 (21:20 +0000)]
Merge "Fixed resource bag retrieval infinite recursion." into pi-dev

6 years agoMediaCodecInfo: define AACObjectXHE profile level
Jean-Michel Trivi [Sat, 31 Mar 2018 01:27:50 +0000 (18:27 -0700)]
MediaCodecInfo: define AACObjectXHE profile level

Bug: 71430241
Test: CTS DecoderTest and DecoderTestAacDrc
Change-Id: I03ede882db420eeaa871991d1d5cba8955b2cdba

6 years agoMerge "Simplify service wrapper initialization + make robust" into pi-dev
Makoto Onuki [Wed, 4 Apr 2018 21:15:46 +0000 (21:15 +0000)]
Merge "Simplify service wrapper initialization + make robust" into pi-dev

6 years agoMerge "Fixed IMMS.DebugFlag#refresh() default value" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 21:04:51 +0000 (21:04 +0000)]
Merge "Fixed IMMS.DebugFlag#refresh() default value" into pi-dev

6 years agoMerge "Center airplane icon in its frame" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 21:04:35 +0000 (21:04 +0000)]
Merge "Center airplane icon in its frame" into pi-dev

6 years agoMerge changes from topic "navbar_fix" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 20:52:34 +0000 (20:52 +0000)]
Merge changes from topic "navbar_fix" into pi-dev

* changes:
  Allow resolving the quickstep service when the user is unlocked
  Revert "Revert "Nav icons and quick step states are determined by service enabled""

6 years agoMerge "Fix TCS crash due to API changes." into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 20:29:22 +0000 (20:29 +0000)]
Merge "Fix TCS crash due to API changes." into pi-dev

6 years agoMerge "Don't clear a11y focus with lock held" into pi-dev
Phil Weaver [Wed, 4 Apr 2018 20:28:18 +0000 (20:28 +0000)]
Merge "Don't clear a11y focus with lock held" into pi-dev

6 years agoMerge "[DO NOT MERGE] Fix a11y action "expand notifications" when QS is open" into...
TreeHugger Robot [Wed, 4 Apr 2018 20:26:23 +0000 (20:26 +0000)]
Merge "[DO NOT MERGE] Fix a11y action "expand notifications" when QS is open" into pi-dev

6 years agoMerge "Clean up remaining TODOs in RecoveryController." into pi-dev
Dmitry Dementyev [Wed, 4 Apr 2018 20:25:39 +0000 (20:25 +0000)]
Merge "Clean up remaining TODOs in RecoveryController." into pi-dev

6 years agoMerge "Log when save UI is not showing because of the service's response." into pi-dev
Felipe Leme [Wed, 4 Apr 2018 20:24:23 +0000 (20:24 +0000)]
Merge "Log when save UI is not showing because of the service's response." into pi-dev

6 years agoMerge "Hide status bar when bouncer is visible" into pi-dev
Lucas Dupin [Wed, 4 Apr 2018 20:21:11 +0000 (20:21 +0000)]
Merge "Hide status bar when bouncer is visible" into pi-dev

6 years agoUpdate for sdk drop
Jeff Gaston [Wed, 4 Apr 2018 05:54:52 +0000 (01:54 -0400)]
Update for sdk drop

Bug: 77554455
Test: m -j checkbuild
Change-Id: Ia9255ae441d490276c7a9c498b75708f90bf84a1

6 years agoFix launcher apps reverse access
Makoto Onuki [Tue, 3 Apr 2018 23:44:39 +0000 (16:44 -0700)]
Fix launcher apps reverse access

Trying to access other profiles from work profile shouldn't throw
security exception.

This is a partial revert of Ia4ddea58f66861ef760865b6d8831563584f85c9.

(Technically we should check the target user-id too, but that part isn't a
regression, so I'm not fixing that part.)

Bug: 77260666
Change-Id: I3f1f6584fcd6b879943d85ab4678b6130def0ba3
Fixes: 77260666
Test: atest /android/pi-dev/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/LauncherAppsProfileTest.java#testReverseAccessNoThrow
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -w -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

6 years agoMerge "Center layout of nav inflator to wrap content to tap other buttons" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 19:22:00 +0000 (19:22 +0000)]
Merge "Center layout of nav inflator to wrap content to tap other buttons" into pi-dev

6 years agoMerge "Check the size of the strings in the StringPool before flattening." into pi-dev
Ryan Mitchell [Wed, 4 Apr 2018 19:21:47 +0000 (19:21 +0000)]
Merge "Check the size of the strings in the StringPool before flattening." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 19:20:49 +0000 (19:20 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoAdd basic inversion lock detection to DPMS.
Makoto Onuki [Tue, 13 Mar 2018 21:22:23 +0000 (14:22 -0700)]
Add basic inversion lock detection to DPMS.

For now enable it on ENG builds only.
(I'll change the condition in master so I'll get WTFs from qt-release devices
too.)

This will detect calling into DPMS with the following locks held:

APP_OPS
POWER
USER
PACKAGES
STORAGE
WINDOW
ACTIVITY
DPMS

On marlin-eng pi-dev, each guard() takes ~25us.
    LockGuard.guard(): count=7246, total=175.1ms, avg=0.024ms

Used the following command to ensure all locks are replaced.
$ grep synchronized /android/pi-dev/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java | sed -e 's/  *//' | uniq

Bug: 74553426
Test: Manual test with an intentional lock inversion.
Change-Id: Id59d562d7c275b6ea127a211284496f5d64f9f93

6 years agoCopy ApplicationInfo#versionCode field
Patrick Baumann [Wed, 4 Apr 2018 19:14:15 +0000 (12:14 -0700)]
Copy ApplicationInfo#versionCode field

This compatibility change ensures that apps built for pre-P that rely
on reflection to access ApplicationInfo#versionCode don't crash. The
move to long version code introduces a new field and all modifications
of the field are wrapped in a method that ensures both the new and old
fields are set appropriately.

Test: manual - impacted app runs
Change-Id: I5fb37c65b0fb04042dda12479d1e1a76590daa3d
Fixes: 74393568

6 years agoMerge "Revert angle classifier relaxation" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 19:18:13 +0000 (19:18 +0000)]
Merge "Revert angle classifier relaxation" into pi-dev

6 years agoSimplify service wrapper initialization + make robust
Makoto Onuki [Fri, 30 Mar 2018 19:39:14 +0000 (12:39 -0700)]
Simplify service wrapper initialization + make robust

- Simplify the logic, no more AtomicIntegers.
- Make robust -- if we know we've successfully created an instance before,
but the instance is now gone, re-initialize again.
- Added CTS.

Bug: 75964116
Fixes: 75964116
Bug: 71882178
Fixes: 71882178
Test: Manual test with UC Browser
Test: atest /android/pi-dev/cts/tests/tests/content/src/android/content/cts/ContextTest.java#testGetSystemService_multiThreaded
Change-Id: I12a9834d0f62e90e6f5d806a124cbdade415440c

6 years agoMerge "Use Scrypt to hash long passwords in RecoverableKeyStore" into pi-dev
Bo Zhu [Wed, 4 Apr 2018 19:13:40 +0000 (19:13 +0000)]
Merge "Use Scrypt to hash long passwords in RecoverableKeyStore" into pi-dev

6 years agoMerge "Fix reading exception from Parcel" into pi-dev
Fyodor Kupolov [Wed, 4 Apr 2018 19:13:21 +0000 (19:13 +0000)]
Merge "Fix reading exception from Parcel" into pi-dev

6 years agoMerge "Adding methods to greylist Test: None" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 19:09:55 +0000 (19:09 +0000)]
Merge "Adding methods to greylist Test: None" into pi-dev

6 years agoLog when save UI is not showing because of the service's response.
Felipe Leme [Wed, 4 Apr 2018 18:57:03 +0000 (11:57 -0700)]
Log when save UI is not showing because of the service's response.

Bug: 74553423
Test: manual verification

Change-Id: I2ed43866b8384de2edea1a12e3da6adae2292c29

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 18:42:38 +0000 (18:42 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoAllow resolving the quickstep service when the user is unlocked
Winson Chung [Wed, 4 Apr 2018 16:13:37 +0000 (09:13 -0700)]
Allow resolving the quickstep service when the user is unlocked

- When the user is locked, resolving components through package manager
  will default to match only the components aware of the current lock
  state. To ensure that we resolve to the quickstep service we need to
  match against all components including those that are direct boot
  unaware.

Bug: 77566214
Test: Restart the phone
Change-Id: Iab225473795b0051df304166816c4c5c9b00c1de

6 years agoRevert "Revert "Nav icons and quick step states are determined by service enabled""
Winson Chung [Wed, 4 Apr 2018 17:02:29 +0000 (17:02 +0000)]
Revert "Revert "Nav icons and quick step states are determined by service enabled""

This reverts commit 317ee507c2ea69044dc91f7c6d019deeab1ebeae.

Reason for revert: Have fix for b/77566214

Test: manual
Bug: 77566214
Change-Id: Ie827e3651f70dfde5f02a5099fd81a5eb4e4cd5e

6 years agoautofill: fix window location in splitwindow and dialog
Dake Gu [Tue, 3 Apr 2018 18:36:51 +0000 (11:36 -0700)]
autofill: fix window location in splitwindow and dialog

autofill should use relative location to app window as PopupWindow
is based on relative location.

The fixed reverted changes made in compatibility mode CL that made
autofill window TYPE_SYSTEM_DIALOG.

Changing PopupWindow to use absolute screen location is another fix
choice, but it does not allow autofill window to be automatically
moved when app window changes location (e.g. adjust split window
separator or bring up IME)

The autofill window switches to TYPE_APPLICATION_ABOVE_SUB_PANEL with
IME disabled. So it still appears above IME and most other app
windows, unless app window is TYPE_APPLICATION_ABOVE_SUB_PANEL too.

Fixes: 73555917
Bug: 77587135
Test: manually tested compability mode with chrome amazon login
      manually tested splitted window
      atest CtsAutoFillServiceTestCases

Change-Id: I6b8ecf3fe7a91cebea1f7a868f4b15fbed8b0051

6 years agoFix image fetching.
Tomasz Wasilczyk [Wed, 4 Apr 2018 18:15:51 +0000 (11:15 -0700)]
Fix image fetching.

Also, while we're here, reduce logs verbosity.

Test: open car.Media app with radio service selected, tune to a station
      (requires a patch with image support against radio app)
Bug: 75970985

Change-Id: I4e56dcdc8bacbb5e63f67eba4a0b0a126245b415

6 years agoMerge "[Notif] Cache bool instead of manager/info" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 18:00:31 +0000 (18:00 +0000)]
Merge "[Notif] Cache bool instead of manager/info" into pi-dev

6 years agoRevert angle classifier relaxation
Lucas Dupin [Wed, 4 Apr 2018 17:50:41 +0000 (10:50 -0700)]
Revert angle classifier relaxation

Not necessary anymore because we now have a more generic solution

Change-Id: I3f4c509953b79ac6ea4ef67489474c5fb37c7109
Fixes: 77553611
Test: Swipe up and down on keyguard
Test: Swipe up and to the left on keyguard

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 4 Apr 2018 12:18:57 +0000 (05:18 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I23a479107398d99cff9327fbe8f897bd0d6b0528

6 years agoMerge "Remove deprecated recoverable keystore classes." into pi-dev
Dmitry Dementyev [Wed, 4 Apr 2018 17:42:11 +0000 (17:42 +0000)]
Merge "Remove deprecated recoverable keystore classes." into pi-dev

6 years agoMerge "Remove deprecated RecoveryController API." into pi-dev
Dmitry Dementyev [Wed, 4 Apr 2018 17:41:51 +0000 (17:41 +0000)]
Merge "Remove deprecated RecoveryController API." into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 4 Apr 2018 17:33:28 +0000 (10:33 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ifbca808c357b04b1c5cf25b6cc1852f447c221a5

6 years agoMerge "Move hidden API from vendor to light grey" into pi-dev
David Brazdil [Wed, 4 Apr 2018 17:23:30 +0000 (17:23 +0000)]
Merge "Move hidden API from vendor to light grey" into pi-dev

6 years agoMerge "Revert "Nav icons and quick step states are determined by service enabled...
Winson Chung [Wed, 4 Apr 2018 17:01:47 +0000 (17:01 +0000)]
Merge "Revert "Nav icons and quick step states are determined by service enabled"" into pi-dev

6 years agoMerge "Add hasUnwantedCapability method" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 16:55:14 +0000 (16:55 +0000)]
Merge "Add hasUnwantedCapability method" into pi-dev

6 years agoMerge "Mark networks with OEM_PAID always restricted" into pi-dev
TreeHugger Robot [Wed, 4 Apr 2018 16:54:46 +0000 (16:54 +0000)]
Merge "Mark networks with OEM_PAID always restricted" into pi-dev

6 years agoAdd OnMediaTimeDiscontinuity notification
Dongwon Kang [Tue, 27 Mar 2018 23:57:38 +0000 (16:57 -0700)]
Add OnMediaTimeDiscontinuity notification

Test: MediaPlayerTest
Bug: 63934228
Change-Id: I1914f32867416c5c052b6ae3bfe23e597fb314e4

6 years agoExempt platform-cert signed apps from hidden API checks.
Mathew Inwood [Wed, 4 Apr 2018 15:08:21 +0000 (16:08 +0100)]
Exempt platform-cert signed apps from hidden API checks.

This means that APKs signed with the platform cert are allowed to use
hidden APIs, even if they are not on the package whitelist, and if they are
not in the system image. It will also allow a number of packages to be
removed from the package whitelist.

Also remove all platform cert signed apps from the package whitelist, as
there is no longer any need for them to be in there.

Bug: 64382372
Test: device boots
Change-Id: Id805419918de51f946c1f592581bab36ae79de83

6 years agoUse Collection instead of List for entity list
Richard Ledley [Tue, 3 Apr 2018 14:15:43 +0000 (15:15 +0100)]
Use Collection instead of List for entity list

Test: bit CtsViewTestCases:android.view.textclassifier.cts.TextClassificationManagerTest FrameworksCoreTests:android.view.textclassifier.TextLinksTest

Bug: 76448224

Change-Id: I354fa05f14b22075c2172624925f5b953956f3a4