OSDN Git Service

android-x86/frameworks-base.git
6 years agoAdds a start flag to set FLAG_ACTIVITY_MATCH_EXTERNAL
Patrick Baumann [Fri, 6 Apr 2018 20:53:25 +0000 (13:53 -0700)]
Adds a start flag to set FLAG_ACTIVITY_MATCH_EXTERNAL

Test: manual - launch installed instant app from command line
Change-Id: I0e8532a683e3a68d2c81df222aab673d09c286ed
Fixes: 75967669

6 years agoMerge "Add Polish keycharactermap" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 14:38:16 +0000 (14:38 +0000)]
Merge "Add Polish keycharactermap" into pi-dev

6 years agoMerge "Fix typo in comments." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 14:27:18 +0000 (14:27 +0000)]
Merge "Fix typo in comments." into pi-dev

6 years agoMerge "Light grey MethodHandles$Lookup;-><init>" into pi-dev
Nicolas Geoffray [Fri, 6 Apr 2018 13:57:25 +0000 (13:57 +0000)]
Merge "Light grey MethodHandles$Lookup;-><init>" into pi-dev

6 years agoMerge "Treat hidden API exemptions as whitelist." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 13:45:32 +0000 (13:45 +0000)]
Merge "Treat hidden API exemptions as whitelist." into pi-dev

6 years agoMerge "Listen for bluetooth audio changes in system ui." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 13:37:06 +0000 (13:37 +0000)]
Merge "Listen for bluetooth audio changes in system ui." into pi-dev

6 years agoMerge changes from topic "gpuprio" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 13:30:33 +0000 (13:30 +0000)]
Merge changes from topic "gpuprio" into pi-dev

* changes:
  Add ThreadedRendererCompat for Launcher use
  Add ability to change context priority of RT GL context

6 years agoMerge "Update anim to spec" into pi-dev
Jorim Jaggi [Fri, 6 Apr 2018 13:07:20 +0000 (13:07 +0000)]
Merge "Update anim to spec" into pi-dev

6 years agoFix typo in comments.
Mathew Inwood [Fri, 6 Apr 2018 12:53:45 +0000 (13:53 +0100)]
Fix typo in comments.

Keep the nitpickers happy.

Test: m
Bug: 77517571
Change-Id: I70374c05df3e366b5a0ce3bbb103dce28f48d4b8

6 years agoMerge "Tweak SystemUpdatePolicy APIs" into pi-dev
Rubin Xu [Fri, 6 Apr 2018 12:54:24 +0000 (12:54 +0000)]
Merge "Tweak SystemUpdatePolicy APIs" into pi-dev

6 years agoMerge "Add new hidden APIs to light grey" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 12:45:23 +0000 (12:45 +0000)]
Merge "Add new hidden APIs to light grey" into pi-dev

6 years agoMerge "Remove WebView.getLooper()." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 12:37:19 +0000 (12:37 +0000)]
Merge "Remove WebView.getLooper()." into pi-dev

6 years agoMerge "Replace ALL_LISTS policy with JUST_WARN." into pi-dev
Mathew Inwood [Fri, 6 Apr 2018 12:32:42 +0000 (12:32 +0000)]
Merge "Replace ALL_LISTS policy with JUST_WARN." into pi-dev

6 years agoMerge "Revert "Remove deprecated RecoveryController API."" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 12:28:09 +0000 (12:28 +0000)]
Merge "Revert "Remove deprecated RecoveryController API."" into pi-dev

6 years agoLight grey MethodHandles$Lookup;-><init>
Nicolas Geoffray [Fri, 6 Apr 2018 12:22:40 +0000 (13:22 +0100)]
Light grey MethodHandles$Lookup;-><init>

bug: 77520086
Test: m
Change-Id: I539d7222af01c0163ab14946248465f1105f578d

6 years agoAdd ThreadedRendererCompat for Launcher use
Jorim Jaggi [Thu, 5 Apr 2018 12:36:53 +0000 (14:36 +0200)]
Add ThreadedRendererCompat for Launcher use

Bug: 75985430
Change-Id: Ia9a7c68cdff8a3263aa75f1178cb90bf4cf6f3de

6 years agoAdd ability to change context priority of RT GL context
Jorim Jaggi [Wed, 4 Apr 2018 21:07:35 +0000 (23:07 +0200)]
Add ability to change context priority of RT GL context

Test: Use method, observe GPU preemption behavior
Bug: 75985430
Change-Id: Idc08d37f8c95f52c5aab7edf09c0cbff72b8482d

6 years agoAdd new hidden APIs to light grey
David Brazdil [Fri, 6 Apr 2018 11:41:23 +0000 (12:41 +0100)]
Add new hidden APIs to light grey

Bug: 77598425
Test: make
Change-Id: I0f7b992b62afd0590b95281bcb240899074a5fce

6 years agoUpdate anim to spec
Jorim Jaggi [Thu, 5 Apr 2018 14:45:41 +0000 (16:45 +0200)]
Update anim to spec

Test: Close translucent activity
Change-Id: I6854fa02f6ffafdcffe3804090cfc88c7d84edc9
Fixes: 72396815

6 years agoTreat hidden API exemptions as whitelist.
Mathew Inwood [Thu, 5 Apr 2018 12:56:39 +0000 (13:56 +0100)]
Treat hidden API exemptions as whitelist.

Update docs accordingly.

Test: m
Bug: 64382372
Change-Id: Ief8daf3badeb046b0461a3ebcd289e242d559070

6 years agoMerge "Add more API to hiddenapi-vendor-list.txt" into pi-dev
David Brazdil [Fri, 6 Apr 2018 10:41:15 +0000 (10:41 +0000)]
Merge "Add more API to hiddenapi-vendor-list.txt" into pi-dev

6 years agoMerge "Add new APIS to light grey." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 10:39:52 +0000 (10:39 +0000)]
Merge "Add new APIS to light grey." into pi-dev

6 years agoRevert "Remove deprecated RecoveryController API."
Robert Berry [Fri, 6 Apr 2018 10:13:16 +0000 (10:13 +0000)]
Revert "Remove deprecated RecoveryController API."

This reverts commit 0d55aa387a4ec65899fc82a1391e5533c85c3edb.

Reason for revert: aps_sidecar binary is still using some of these @removed APIs. Although HEAD of auth_folsom is fixed, aps_sidecar burned in framework is old.

Bug: 77629807
Change-Id: I2f03c7d12de30cc2eebd91bb65646caaa00fcd1d

6 years agoMerge "Revert "Whitelist com.android.perftests.core in am instrument."" into pi-dev
Nicolas Geoffray [Fri, 6 Apr 2018 09:44:49 +0000 (09:44 +0000)]
Merge "Revert "Whitelist com.android.perftests.core in am instrument."" into pi-dev

6 years agoMerge "Exempt two performance tests from hidden API checks." into pi-dev
Nicolas Geoffray [Fri, 6 Apr 2018 09:44:07 +0000 (09:44 +0000)]
Merge "Exempt two performance tests from hidden API checks." into pi-dev

6 years agoAdd more API to hiddenapi-vendor-list.txt
David Brazdil [Fri, 6 Apr 2018 09:08:56 +0000 (10:08 +0100)]
Add more API to hiddenapi-vendor-list.txt

Bug: 64382372
Bug: 77278525
Test: make
Change-Id: Ibfeb2c6238e6e992a88a3c056b74c02c85887fad

6 years agoAdd new APIS to light grey.
Nicolas Geoffray [Fri, 6 Apr 2018 09:32:37 +0000 (10:32 +0100)]
Add new APIS to light grey.

bug: 77498122
Test: m
Change-Id: I1562f1f12a966a66c066036ef3b46264af50f054

6 years agoMerge "Adding more APIs to greylist Test: None" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 08:23:07 +0000 (08:23 +0000)]
Merge "Adding more APIs to greylist Test: None" into pi-dev

6 years agoAdding more APIs to greylist
Stephen [Wed, 4 Apr 2018 15:30:02 +0000 (08:30 -0700)]
Adding more APIs to greylist
Test: None

bug: 74066078

Change-Id: I029754dba43f83d6aff941c02ba1caa7fdd1e18c

6 years agoExempt two performance tests from hidden API checks.
Nicolas Geoffray [Fri, 6 Apr 2018 08:20:33 +0000 (09:20 +0100)]
Exempt two performance tests from hidden API checks.

Bug: 64382372
Bug: 74963051
Bug: 76162083

Test: m
Change-Id: I50f2c8993cfb8fc7b78dc8c87b2cd8d9ee92d98e

6 years agoMerge "Move the logic of (re)evaluation of Private DNS" into pi-dev
Erik Kline [Fri, 6 Apr 2018 06:48:25 +0000 (06:48 +0000)]
Merge "Move the logic of (re)evaluation of Private DNS" into pi-dev

6 years agoMerge "Extract exif data from mp4 extractor if available" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 05:13:33 +0000 (05:13 +0000)]
Merge "Extract exif data from mp4 extractor if available" into pi-dev

6 years agoMerge "WifiManager: allow setWifiApConfiguration to return false" into pi-dev
Rebecca Silberstein [Fri, 6 Apr 2018 04:42:36 +0000 (04:42 +0000)]
Merge "WifiManager: allow setWifiApConfiguration to return false" into pi-dev

6 years agoMerge "Persistence of LPP profile" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 03:48:14 +0000 (03:48 +0000)]
Merge "Persistence of LPP profile" into pi-dev

6 years agoMerge "Fix "Screen is pinned" dialog not showing completely in multi-window mode...
TreeHugger Robot [Fri, 6 Apr 2018 02:58:22 +0000 (02:58 +0000)]
Merge "Fix "Screen is pinned" dialog not showing completely in multi-window mode." into pi-dev

6 years agoMerge "Flush the partial bucket when startd shuts down or config updated." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 02:47:22 +0000 (02:47 +0000)]
Merge "Flush the partial bucket when startd shuts down or config updated." into pi-dev

6 years agoMove the logic of (re)evaluation of Private DNS
Erik Kline [Wed, 21 Mar 2018 14:18:33 +0000 (07:18 -0700)]
Move the logic of (re)evaluation of Private DNS

Moves this out of ConnectivityService and into each NetworkMonitor
(where it's more self-contained).

Test: as follows
    - builds, flashes, boots
    - runtest frameworks-net passes
    - manual testing with working and non-working hostnames behaves
      somewhat (but not entirely) as expected, and not always quickly
Bug: 64133961
Bug: 72345192
Bug: 73872000
Bug: 77140445
Merged-In: I5dc90ecfe6f6f10967b7501645ad8e030cb38982
Merged-In: Ida4967d22f0781524f0f269e30e653b8ec867258
Change-Id: Ic4322af3cb49149f2d975cb31f54b2ac7927f907
(cherry picked from commit 736353a584aa89a29e737e21e29c49fad0d38a63)

6 years agoFlush the partial bucket when startd shuts down or config updated.
Yangster-mac [Wed, 4 Apr 2018 07:01:43 +0000 (00:01 -0700)]
Flush the partial bucket when startd shuts down or config updated.

Test: statsd test

BUG: b/77556036
Change-Id: Ie4a04ace55e07c4529cdff5906ba874f8815f620

6 years agoMerge "Unhide constructors of DataService and NetworkService." into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 00:52:32 +0000 (00:52 +0000)]
Merge "Unhide constructors of DataService and NetworkService." into pi-dev

6 years agoMerge "FingerprintDialogView sets visibility incorrectly" into pi-dev
Kevin Chyn [Fri, 6 Apr 2018 00:45:10 +0000 (00:45 +0000)]
Merge "FingerprintDialogView sets visibility incorrectly" into pi-dev

6 years agoFix "Screen is pinned" dialog not showing completely in multi-window
Tracy Zhou [Thu, 5 Apr 2018 22:38:34 +0000 (15:38 -0700)]
Fix "Screen is pinned" dialog not showing completely in multi-window
mode.

Fixes: 73513388
Test: manual test
Change-Id: Iaa3e30399b7f12de2c6071cbe35c7bdff92f64a0

6 years agoMerge "Update IpSecManager to use InetAddress and prefixLen" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 00:23:52 +0000 (00:23 +0000)]
Merge "Update IpSecManager to use InetAddress and prefixLen" into pi-dev

6 years agoMerge "[Notif] Disable animations as screen is powering off" into pi-dev
TreeHugger Robot [Fri, 6 Apr 2018 00:21:30 +0000 (00:21 +0000)]
Merge "[Notif] Disable animations as screen is powering off" into pi-dev

6 years agoMerge "Include ServiceRecord in foreground service exception exception text." into...
Kodlee Yin [Fri, 6 Apr 2018 00:14:55 +0000 (00:14 +0000)]
Merge "Include ServiceRecord in foreground service exception exception text." into pi-dev

6 years agoMerge "Ensured that the reply icon isn't showing on HUNS" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 23:57:11 +0000 (23:57 +0000)]
Merge "Ensured that the reply icon isn't showing on HUNS" into pi-dev

6 years agoMerge "Fix uid map to be simpler and fix partial bucket." into pi-dev
David Chen [Thu, 5 Apr 2018 23:43:45 +0000 (23:43 +0000)]
Merge "Fix uid map to be simpler and fix partial bucket." into pi-dev

6 years agoFingerprintDialogView sets visibility incorrectly
Kevin Chyn [Thu, 5 Apr 2018 18:33:12 +0000 (11:33 -0700)]
FingerprintDialogView sets visibility incorrectly

Fixes: 77640780

Test: manual test with FingerprintDialog apk, with varying descriptions
      and subtitles

Change-Id: I981f7334355d4e2d6dde3861349ec61d70ebb4a1

6 years agoMerge "Fix issue with quickstep recents button not unlocking before entering PIP...
TreeHugger Robot [Thu, 5 Apr 2018 23:34:35 +0000 (23:34 +0000)]
Merge "Fix issue with quickstep recents button not unlocking before entering PIP." into pi-dev

6 years agoMerge "Implements GNSS satellite blacklist" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 23:28:19 +0000 (23:28 +0000)]
Merge "Implements GNSS satellite blacklist" into pi-dev

6 years agoMerge "Fix ActivityStartInterceptor tests" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 23:25:56 +0000 (23:25 +0000)]
Merge "Fix ActivityStartInterceptor tests" into pi-dev

6 years agoFix uid map to be simpler and fix partial bucket.
David Chen [Thu, 5 Apr 2018 02:02:50 +0000 (19:02 -0700)]
Fix uid map to be simpler and fix partial bucket.

The previous scheme captured periodic snapshots for each config with
complex logic that's unnecessary and wasted memory. We actually don't
need to store any snapshots since we just convert the current state
into a snapshot and also include the deltas (change events) since the
previous report until now.

To make the system more robust, we also include up to 100 of the
deleted apps in the uid map.

Also, fix the wiring of the partial buckets so the metric producers
form partial buckets on both app upgrade and removal, but not on
installation of a new app.

Also, we update StatsCompanionService to also include disabled apps.

Bug: 77607583
Test: Verified unit-tests pass and added new e2e tests.
Change-Id: I98e1f544d6e6571545ae1581c4cebab807596f51

6 years agoMerge "Never scale nine-patches in ImageDecoder" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 22:42:39 +0000 (22:42 +0000)]
Merge "Never scale nine-patches in ImageDecoder" into pi-dev

6 years agoMerge "Update mFirstVisibleIconState correctly" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 22:42:34 +0000 (22:42 +0000)]
Merge "Update mFirstVisibleIconState correctly" into pi-dev

6 years agoMerge "Don't hide the mobile type id if it doesn't change" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 22:22:41 +0000 (22:22 +0000)]
Merge "Don't hide the mobile type id if it doesn't change" into pi-dev

6 years agoMerge "Use #fff for ethernet signal indicators" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 22:21:23 +0000 (22:21 +0000)]
Merge "Use #fff for ethernet signal indicators" into pi-dev

6 years agoMerge "Add metrics constant for wifi scanning dialog" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 22:07:30 +0000 (22:07 +0000)]
Merge "Add metrics constant for wifi scanning dialog" into pi-dev

6 years agoUnhide constructors of DataService and NetworkService.
Malcolm Chen [Tue, 3 Apr 2018 18:48:56 +0000 (11:48 -0700)]
Unhide constructors of DataService and NetworkService.

DataService and NetworkService are System level classes. We shouldn't
hide their constructors otherwise their System level sub-class
can't be instantiated properly.

Test: gts
Bug: 77531655
Change-Id: I1a58b4857dbcf939ac124e20eb0a801ad5a9b597

6 years agoFix ActivityStartInterceptor tests
Ben Gruver [Wed, 7 Mar 2018 21:24:18 +0000 (13:24 -0800)]
Fix ActivityStartInterceptor tests

This adds the SET_HARMFUL_APPS_WARNINGS permission required by
interceptHarmfulAppIfNeeded, and mocks out the new PackageManager calls
used by it
Test: atest ActivityStartInterceptorTest

Bug: 77607079
Change-Id: Iea9c183078261b03be984ba4e0fad271f1548945
Merged-In: Iea9c183078261b03be984ba4e0fad271f1548945
(cherry picked from commit eb8fd1c68220bf771167051108a4f89a0eccec40)

6 years agoMerge "Rename BiometricDialog to BiometricPrompt." into pi-dev
Vishwath Mohan [Thu, 5 Apr 2018 21:23:32 +0000 (21:23 +0000)]
Merge "Rename BiometricDialog to BiometricPrompt." into pi-dev

6 years agoMerge "Allow OEMs to restrict access to secondary display" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 21:17:52 +0000 (21:17 +0000)]
Merge "Allow OEMs to restrict access to secondary display" into pi-dev

6 years agoMerge "Activity interceptor dialog for suspended apps" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 21:15:19 +0000 (21:15 +0000)]
Merge "Activity interceptor dialog for suspended apps" into pi-dev

6 years agoUse #fff for ethernet signal indicators
Evan Laird [Thu, 5 Apr 2018 21:13:18 +0000 (17:13 -0400)]
Use #fff for ethernet signal indicators

Tinting is controlled by the icon manager now, so intrinsic tinting of
the icon isn't needed

Test: visual when connected to ethernet;
Change-Id: I7c97ad13084e55974b65223fcfe4e027aa343d49
Fixes: 77551489

6 years agoInclude ServiceRecord in foreground service exception exception text.
Kodlee Yin [Thu, 5 Apr 2018 19:59:56 +0000 (12:59 -0700)]
Include ServiceRecord in foreground service exception exception text.

Test: manual verification of logcat using test service that doesn't conform to foreground service rules
Bug: 77647171
Change-Id: Ie35029838359d83c31ea4e3b2faa166ac8aeec47

6 years agoMerge "Rename set/get-ConserveMemory" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 20:44:58 +0000 (20:44 +0000)]
Merge "Rename set/get-ConserveMemory" into pi-dev

6 years agoMerge "Add @TestApi for field needed for test" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 20:41:24 +0000 (20:41 +0000)]
Merge "Add @TestApi for field needed for test" into pi-dev

6 years agoMerge "Darker scrim under unlocked shade" into pi-dev
Lucas Dupin [Thu, 5 Apr 2018 20:35:05 +0000 (20:35 +0000)]
Merge "Darker scrim under unlocked shade" into pi-dev

6 years agoAdd metrics constant for wifi scanning dialog
Salvador Martinez [Wed, 4 Apr 2018 21:45:42 +0000 (14:45 -0700)]
Add metrics constant for wifi scanning dialog

This CL simply adds a metrics proto constant for the new dialog
that shows up if you try to tunr on auto-wifi without first
enabling wifi scanning.

Test: robotests still pass
Bug: 67070896
Change-Id: I9a4e0fa105e67d666e2e34588bea037034a28784

6 years agoDon't hide the mobile type id if it doesn't change
Evan Laird [Thu, 5 Apr 2018 20:22:36 +0000 (16:22 -0400)]
Don't hide the mobile type id if it doesn't change

_Someone_ thought it would be a good idea to hide the mobile type
indicator if it hadn't changed from the last state. Better to not do
that.

Also removed an unused method in StatusBarIconControllerImpl.

Test: Reboot device with wifi off; data type indicator should show up
eventually; i.e., visual
Fixes: 77581445

Change-Id: I47a0c868b0e332c11e206b8c043a532bcbf10130

6 years agoMerge "Show Recents if we are bringing a task forward in split-screen-primary" into...
Wale Ogunwale [Thu, 5 Apr 2018 20:21:33 +0000 (20:21 +0000)]
Merge "Show Recents if we are bringing a task forward in split-screen-primary" into pi-dev

6 years ago[Notif] Disable animations as screen is powering off
Rohan Shah [Thu, 5 Apr 2018 18:13:50 +0000 (11:13 -0700)]
[Notif] Disable animations as screen is powering off

When showing an incog notification, it's getting added to the remove
anims, but the screen is turning off and animations are never getting
run (which means the transient view gets added but it doesn't get
removed).

The root cause is notifications clear temporary views in the power on
(due to collapse animations), but don't clear them when unlocking via
fingerprint.

Fixed by clearing remove animation setup (where transient views are
used) when disabling animations. This will stop the transient views from
being held on post-screen off/when animations are disabled.

Test: Visually with logging (tested before & after)
Test: Dumped hierarchy and checked that transient views weren't being mismanaged
Fixes: 77217401
Change-Id: I48835e45fd76c5e74810f5256c14b0c4c2ca3ec4

6 years agoUpdate mFirstVisibleIconState correctly
Lucas Dupin [Thu, 5 Apr 2018 19:48:43 +0000 (12:48 -0700)]
Update mFirstVisibleIconState correctly

Test: visual
Change-Id: I4b6ca09b6bb8241791126f057de6d173ddd7eac0
Fixes: 77634935

6 years agoMerge "Turn off notification in-line images for low ram devices" into pi-dev
Kevin Han [Thu, 5 Apr 2018 19:33:55 +0000 (19:33 +0000)]
Merge "Turn off notification in-line images for low ram devices" into pi-dev

6 years agoMerge "Forward Activity stop signal to attached windows." into pi-dev
Rob Carr [Thu, 5 Apr 2018 19:03:29 +0000 (19:03 +0000)]
Merge "Forward Activity stop signal to attached windows." into pi-dev

6 years agoMerge "ConfirmationPrompt: Update for API review." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 18:50:35 +0000 (18:50 +0000)]
Merge "ConfirmationPrompt: Update for API review." into pi-dev

6 years agoMerge "This cl tries to fix cts tests IncidentdTest" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 18:48:59 +0000 (18:48 +0000)]
Merge "This cl tries to fix cts tests IncidentdTest" into pi-dev

6 years agoMerge "Add null check for Nullable argument." into pi-dev
Richard Ledley [Thu, 5 Apr 2018 18:45:45 +0000 (18:45 +0000)]
Merge "Add null check for Nullable argument." into pi-dev

6 years agoMerge "Remove haptics on navbar and only have button haptics on touch up" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 18:42:33 +0000 (18:42 +0000)]
Merge "Remove haptics on navbar and only have button haptics on touch up" into pi-dev

6 years agoListen for bluetooth audio changes in system ui.
Amin Shaikh [Thu, 5 Apr 2018 18:05:56 +0000 (14:05 -0400)]
Listen for bluetooth audio changes in system ui.

Update the connected state of bluetooth devices upon audio state
changes. This will increase the likelihood that the connected
state of all bluetooth devices are up to date.

Change-Id: I239626ca5241210b6ab82f60273a87c1863d1dbb
Fixes: 77498698
Test: manual

6 years agoExtract exif data from mp4 extractor if available
Chong Zhang [Wed, 4 Apr 2018 20:35:59 +0000 (13:35 -0700)]
Extract exif data from mp4 extractor if available

Query the extractor for the exif data offset and length,
if it's available, read the exif block from the file.
Otherwise, set image dimension and rotation only.

bug: 76149934

Change-Id: I85f24b526fb356a9227941e20807fc96369c8536

6 years agoMerge "Move RTT system setting to Settings.Secure" into pi-dev
Hall Liu [Thu, 5 Apr 2018 18:15:37 +0000 (18:15 +0000)]
Merge "Move RTT system setting to Settings.Secure" into pi-dev

6 years agoMerge "Retry logs write when it fails. Report skipped event in statsd." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 18:04:18 +0000 (18:04 +0000)]
Merge "Retry logs write when it fails. Report skipped event in statsd." into pi-dev

6 years agoMerge "Reduce log spam in TimeSparseArray" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 18:01:52 +0000 (18:01 +0000)]
Merge "Reduce log spam in TimeSparseArray" into pi-dev

6 years agoMerge "BugFix: Config TTL" into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 17:56:53 +0000 (17:56 +0000)]
Merge "BugFix: Config TTL" into pi-dev

6 years agoRename BiometricDialog to BiometricPrompt.
Vishwath Mohan [Thu, 5 Apr 2018 17:28:24 +0000 (10:28 -0700)]
Rename BiometricDialog to BiometricPrompt.

Renamed to BiometricPrompt per API-council feedback.

Bug: 77494933
Test: m -j70
Change-Id: Ifed2b8f3439a7e671e0ce46d3a7db9f24871b16a

6 years agoUpdate IpSecManager to use InetAddress and prefixLen
Benedict Wong [Wed, 4 Apr 2018 03:30:54 +0000 (20:30 -0700)]
Update IpSecManager to use InetAddress and prefixLen

LinkAddress constructors are currently @hide; this change updates
IpSecManager to use InetAddress and prefixLen, and then construct a
LinkAddress internally. LinkAddress is used over the binder interface to
IpSecService to ensure validity.

Bug: 77528639
Test: CTS, Java unit tests ran on walleye
Change-Id: I19e124adef6d9f4992d8293db3190bcf74c95848

6 years agoMerge "Add new hidden APIs." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 17:37:21 +0000 (17:37 +0000)]
Merge "Add new hidden APIs." into pi-dev

6 years agoShow Recents if we are bringing a task forward in split-screen-primary
Wale Ogunwale [Thu, 5 Apr 2018 17:25:59 +0000 (10:25 -0700)]
Show Recents if we are bringing a task forward in split-screen-primary

Regression caused by ag/3288245

Change-Id: Ie21d7d57d62658ea5b0db255902dc22517ef3ae7
Fixes: 76109079
Test: steps from bug

6 years agoMerge "Only move PIP window if PIP is not way above shelf/IME." into pi-dev
TreeHugger Robot [Thu, 5 Apr 2018 17:24:26 +0000 (17:24 +0000)]
Merge "Only move PIP window if PIP is not way above shelf/IME." into pi-dev

6 years agoMerge "Misc bouncer fixes" into pi-dev
Lucas Dupin [Thu, 5 Apr 2018 17:21:26 +0000 (17:21 +0000)]
Merge "Misc bouncer fixes" into pi-dev

6 years agoTurn off notification in-line images for low ram devices
Kevin [Thu, 5 Apr 2018 17:17:45 +0000 (10:17 -0700)]
Turn off notification in-line images for low ram devices

Bug: 77598694
Change-Id: Icdd4c2ef790d2d657f7670fa8c1b8b39b7aa62e4
Fix: 77598694
Test: manual, tested notification on gobo and sailfish

6 years agoDarker scrim under unlocked shade
Lucas Dupin [Thu, 5 Apr 2018 17:00:31 +0000 (10:00 -0700)]
Darker scrim under unlocked shade

Test: visual
Change-Id: I21a1d035117d88ba580441b002133e380429e5a5
Fixes: 77224997

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 agoNever scale nine-patches in ImageDecoder
Leon Scroggins III [Wed, 4 Apr 2018 20:19:33 +0000 (16:19 -0400)]
Never scale nine-patches in ImageDecoder

Bug: 76448902
Bug: 70889348
Test: Manual + CtsThemeHostTestCases
(Ica5e7e81848c3880accee922ee6f1cc9e26262ca)

Scaling a nine-patch requires scaling its divs. When the scale factor is
not an integer, we have to round. This gets out of sync with the way the
decoder scaled the image, resulting in stretching or keeping fixed the
wrong portions of the image. Making this worse, when we scale down, we
end up with divs colliding with each other, and we have to arbitrarily
adjust them further so they do not collide.

NinePatchDrawable and the drawing code already know how to handle
drawing from the originally-sized image and do a better job stretching
appropriately, so allow them to do their job.

We already do something similar for Bitmaps created by ImageDecoder on
apps targeting P and above - instead of scaling them up, we allow the
BitmapDrawable's scaling code to handle density differences. We
preserved the old behavior (scale up) on apps targeting pre-P because
those apps may rely on the size of the Bitmap contained in a
BitmapDrawable without accounting for its density (see Bug: 74061412).
But that is not an issue for NinePatchDrawables, which do not allow
peeking at their internal Bitmaps.

Rewrite ImageDecoder.computeDensity. There is no need for it to be
static, since it takes an ImageDecoder as a parameter and reads its
fields, including the new field mIsNinePatch. Set mIsNinePatch in the
constructor to avoid another down call into native. Split up the
conditions that result in returning srcDensity without calling
setTargetSize for clarity.

Remove ImageDecoder constructor from the graylist. It was accidentally
added due to the fact that it is called transitively from public APIs.

Change-Id: I3c5ddd67f3352c991515f30ce1c477c9a608833f

6 years agoAllow OEMs to restrict access to secondary display
Pavel Maltsev [Wed, 4 Apr 2018 17:14:55 +0000 (10:14 -0700)]
Allow OEMs to restrict access to secondary display

This is crucial for automotive use-cases when OEMs want to restrict
access to instrument cluster display by third-party apps

Bug: 28864915
Bug: 70840956
Test: manually verify that secondary display with private flag is not
accessible by third-party apps and accessible to apps with system uid

Change-Id: I39e36c2ea73d879a4c7b01220ae852298d868fd5

6 years agoAdd @TestApi for field needed for test
Marco Nelissen [Mon, 2 Apr 2018 16:04:37 +0000 (09:04 -0700)]
Add @TestApi for field needed for test

Also update truncated comment.
Bug: 13249737
Bug: 77485791
Test: CTS

Change-Id: I1351a6ef28dfd7e881f32830c436315ffdbfffaa

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 agoAdd null check for Nullable argument.
Richard Ledley [Thu, 5 Apr 2018 12:39:43 +0000 (13:39 +0100)]
Add null check for Nullable argument.

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

Bug: 77624093
Change-Id: I527c4e7f6758c699d4d4e7258cf8474f833040c7

6 years agoAdd new hidden APIs.
Nicolas Geoffray [Thu, 5 Apr 2018 16:29:42 +0000 (17:29 +0100)]
Add new hidden APIs.

bug: 77527994
Test: m
Change-Id: Iebdab9d09c4d4531cfdfed6c3e363d68ed407ef1

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