OSDN Git Service

android-x86/frameworks-base.git
6 years agoClear lifecycle description on recycle and improve logging.
Bryce Lee [Wed, 14 Feb 2018 23:12:01 +0000 (15:12 -0800)]
Clear lifecycle description on recycle and improve logging.

This changelist clear any custom description set on a lifecycle item
and improves the data logged. This changelist should be reverted once
the root cause has been discovered.

Bug: 71506345
Test: manual
Change-Id: I38edb292684745e6e912b3ba09fb220bf7f39149

6 years agoMerge "Deprecated onCreateThumbnail"
Wale Ogunwale [Wed, 14 Feb 2018 14:28:18 +0000 (14:28 +0000)]
Merge "Deprecated onCreateThumbnail"

6 years agoMerge "NIAP: Log cert validation and key integrity failures."
TreeHugger Robot [Wed, 14 Feb 2018 13:45:40 +0000 (13:45 +0000)]
Merge "NIAP: Log cert validation and key integrity failures."

6 years agoMerge "Hidden API blacklisting killswitch."
TreeHugger Robot [Wed, 14 Feb 2018 13:44:42 +0000 (13:44 +0000)]
Merge "Hidden API blacklisting killswitch."

6 years agoHidden API blacklisting killswitch.
Mathew Inwood [Thu, 8 Feb 2018 12:23:59 +0000 (12:23 +0000)]
Hidden API blacklisting killswitch.

Just support "*" for now, meaning disable all API blacklisting for all
apps.

Test: Manually verified by:
- installing test app that accesses hidden API
- manually blacklist the API
- $ adb shell settings put global hidden_api_blacklist_exemptions \\*

Change-Id: I9a41a104742c9aaaf3a753e7b0f3a1106e37d4d3

6 years agoMerge "add swapPss of native process to totalSwapPss" am: 0db84fcc8f am: c3af6331e5
Martijn Coenen [Wed, 14 Feb 2018 11:27:44 +0000 (11:27 +0000)]
Merge "add swapPss of native process to totalSwapPss" am: 0db84fcc8f am: c3af6331e5
am: cf1c563fdd

Change-Id: I196cc30e5b9512712428d8e9524441070395a189

6 years agoMerge "Show logout button on keyguard"
Alex Chau [Wed, 14 Feb 2018 11:22:50 +0000 (11:22 +0000)]
Merge "Show logout button on keyguard"

6 years agoMerge "add swapPss of native process to totalSwapPss" am: 0db84fcc8f
Martijn Coenen [Wed, 14 Feb 2018 11:15:37 +0000 (11:15 +0000)]
Merge "add swapPss of native process to totalSwapPss" am: 0db84fcc8f
am: c3af6331e5

Change-Id: I4e8dbdd04ae92d1b6882ac476e8b4990a34bbb27

6 years agoMerge "add swapPss of native process to totalSwapPss"
Martijn Coenen [Wed, 14 Feb 2018 11:08:54 +0000 (11:08 +0000)]
Merge "add swapPss of native process to totalSwapPss"
am: 0db84fcc8f

Change-Id: I615e245f2f0f50f2afe8726ada55a81101fce6bb

6 years agoMerge "add swapPss of native process to totalSwapPss"
Martijn Coenen [Wed, 14 Feb 2018 09:17:32 +0000 (09:17 +0000)]
Merge "add swapPss of native process to totalSwapPss"

6 years agoMerge "Fix a bug of not deleting previously added config files on disk"
TreeHugger Robot [Wed, 14 Feb 2018 08:00:10 +0000 (08:00 +0000)]
Merge "Fix a bug of not deleting previously added config files on disk"

6 years agoMerge "MediaSessionService: Detects changes media session service apps"
TreeHugger Robot [Wed, 14 Feb 2018 07:16:11 +0000 (07:16 +0000)]
Merge "MediaSessionService: Detects changes media session service apps"

6 years agoFix a bug of not deleting previously added config files on disk
yro [Wed, 14 Feb 2018 06:06:34 +0000 (22:06 -0800)]
Fix a bug of not deleting previously added config files on disk

Bug: 73304022
Test: statsd_test
Change-Id: Ic024d40da97ed79cb405a5da1f0c9abac0436b34

6 years agoMerge "Refactor ZygoteProcess to deal in LocalSocketAddress." am: 9fda81e274 am:...
Robert Sesek [Wed, 14 Feb 2018 05:54:15 +0000 (05:54 +0000)]
Merge "Refactor ZygoteProcess to deal in LocalSocketAddress." am: 9fda81e274 am: 9b13db0938
am: 1bb6046a06  -s ours

Change-Id: I2d4378406be9341a55135e09749b2335321c40de

6 years agoMerge "Refactor ZygoteProcess to deal in LocalSocketAddress." am: 9fda81e274
Robert Sesek [Wed, 14 Feb 2018 05:43:52 +0000 (05:43 +0000)]
Merge "Refactor ZygoteProcess to deal in LocalSocketAddress." am: 9fda81e274
am: 9b13db0938

Change-Id: Ic977e64157b6c140f4ac6c22643ca1b9375f855c

6 years agoMediaSessionService: Detects changes media session service apps
Jaewan Kim [Mon, 12 Feb 2018 12:23:06 +0000 (21:23 +0900)]
MediaSessionService: Detects changes media session service apps

Bug: 72613128
Test: Following tests
  - Manually uninstall and install MediaComponents test apk and verified
    that 'dumpsys media_session' is updated accordingly.
  - Manually disabled/enabled a service in the MediaComponents test apk
    and verified that 'dumpsys media_session' is updated accordingly.
  - Manually reinstalled the MediaComponents test apk and verified that
    the session service is updated only once.
  - Run all MediaComponents tests once
Change-Id: I869853a40fb81e71f0188e84711f9d4a763defe2

6 years agoMerge "Refactor ZygoteProcess to deal in LocalSocketAddress."
Robert Sesek [Wed, 14 Feb 2018 05:36:58 +0000 (05:36 +0000)]
Merge "Refactor ZygoteProcess to deal in LocalSocketAddress."
am: 9fda81e274

Change-Id: If044eb9eb5b27e7fa21d750dd09a8e56c07b8e50

6 years agoMerge "Add feature flag for assist gesture hardware."
Philip Quinn [Wed, 14 Feb 2018 05:17:21 +0000 (05:17 +0000)]
Merge "Add feature flag for assist gesture hardware."

6 years agoMerge changes from topic "quickstep-dogfood"
Sunny Goyal [Wed, 14 Feb 2018 04:42:49 +0000 (04:42 +0000)]
Merge changes from topic "quickstep-dogfood"

* changes:
  Turn on quickscrub by default from system property
  Adding hit target hint from SysUI to launcher to defer recents animation

6 years agoMerge "MediaSession: Rename mCallbackHandler to mCallback"
TreeHugger Robot [Wed, 14 Feb 2018 03:58:51 +0000 (03:58 +0000)]
Merge "MediaSession: Rename mCallbackHandler to mCallback"

6 years agoMerge "Refactor ZygoteProcess to deal in LocalSocketAddress."
Treehugger Robot [Wed, 14 Feb 2018 03:35:37 +0000 (03:35 +0000)]
Merge "Refactor ZygoteProcess to deal in LocalSocketAddress."

6 years agoMerge "fix uid for ActivityForegroundStateChanged atom"
TreeHugger Robot [Wed, 14 Feb 2018 03:30:48 +0000 (03:30 +0000)]
Merge "fix uid for ActivityForegroundStateChanged atom"

6 years agoAdd feature flag for assist gesture hardware.
Philip Quinn [Sat, 10 Feb 2018 01:56:40 +0000 (17:56 -0800)]
Add feature flag for assist gesture hardware.

Bug: 73176604
Test: make -j

Change-Id: I59f1c1638afe74a596c04e379d6d63b7f8c2df25

6 years agoTurn on quickscrub by default from system property
Matthew Ng [Wed, 14 Feb 2018 00:00:34 +0000 (16:00 -0800)]
Turn on quickscrub by default from system property

Set the system property for enabling quick step true by default.

Test: move the home button
Bug: 70180755
Change-Id: I6cce8823585f5eb8a25d0b70433bc565ba7593c7

6 years agoAdding hit target hint from SysUI to launcher to defer recents animation
Winson Chung [Tue, 13 Feb 2018 18:37:35 +0000 (10:37 -0800)]
Adding hit target hint from SysUI to launcher to defer recents animation

Bug: 73242451
Test: Swipe up over back with suitable launcher build and ensure that we
      don't start the recents animation on touch down

Change-Id: I3022ced8803caf9555efdbd9681c8ee2e627a216

6 years agoMerge "Add System API for system update clients"
Rubin Xu [Wed, 14 Feb 2018 02:14:59 +0000 (02:14 +0000)]
Merge "Add System API for system update clients"

6 years agoMerge "Fixed an issue where the notification wasn't clickable"
TreeHugger Robot [Wed, 14 Feb 2018 02:13:06 +0000 (02:13 +0000)]
Merge "Fixed an issue where the notification wasn't clickable"

6 years agoMerge "fix uid for ForegroundServiceStateChanged"
TreeHugger Robot [Wed, 14 Feb 2018 02:01:30 +0000 (02:01 +0000)]
Merge "fix uid for ForegroundServiceStateChanged"

6 years agoMediaSession: Rename mCallbackHandler to mCallback
Sungsoo Lim [Tue, 13 Feb 2018 00:40:13 +0000 (09:40 +0900)]
MediaSession: Rename mCallbackHandler to mCallback

Support library uses reflection to the variable, mCallback, of
MediaSession. In order not to break the existing support lib
behavior on P devices, we need to keep the name.

Bug: 72979099
Test: version-compat-tests on P device
Change-Id: I5fd6c786d6a988777b94a3eb4f23d885202daa2a

6 years agoMerge "Statsd_test update for rounding up alarms"
TreeHugger Robot [Wed, 14 Feb 2018 01:36:08 +0000 (01:36 +0000)]
Merge "Statsd_test update for rounding up alarms"

6 years agoMerge "Fix a bug in LogEvent.GetLong"
TreeHugger Robot [Wed, 14 Feb 2018 01:32:01 +0000 (01:32 +0000)]
Merge "Fix a bug in LogEvent.GetLong"

6 years agoMerge "Rename Conference#setConnectionElapsedTime to clarity." am: d1134525fc am...
Tyler Gunn [Wed, 14 Feb 2018 01:24:44 +0000 (01:24 +0000)]
Merge "Rename Conference#setConnectionElapsedTime to clarity." am: d1134525fc am: a0b41a82ce
am: 4c09901931

Change-Id: I493ade2029398983a76fd41fcf9f080ee2f06b95

6 years agoMerge "Move rotate navbar button to the right stack"
Mike Digman [Wed, 14 Feb 2018 01:15:45 +0000 (01:15 +0000)]
Merge "Move rotate navbar button to the right stack"

6 years agoMerge "Rename Conference#setConnectionElapsedTime to clarity." am: d1134525fc
Tyler Gunn [Wed, 14 Feb 2018 01:09:08 +0000 (01:09 +0000)]
Merge "Rename Conference#setConnectionElapsedTime to clarity." am: d1134525fc
am: a0b41a82ce

Change-Id: I6b5e25889bf0b5ceab71fe21d1856214d12a593d

6 years agoMerge "Rename Conference#setConnectionElapsedTime to clarity."
Tyler Gunn [Wed, 14 Feb 2018 00:59:16 +0000 (00:59 +0000)]
Merge "Rename Conference#setConnectionElapsedTime to clarity."
am: d1134525fc

Change-Id: Ic2a84646352e79961d2e5d842b307a0d647350bb

6 years agoMerge "Shorter scrim delay if display is on"
Lucas Dupin [Wed, 14 Feb 2018 00:44:59 +0000 (00:44 +0000)]
Merge "Shorter scrim delay if display is on"

6 years agoMerge "Public EuiccManager APIs." am: 42339c464f am: cddc0c12cc
Holly Jiuyu Sun [Wed, 14 Feb 2018 00:37:42 +0000 (00:37 +0000)]
Merge "Public EuiccManager APIs." am: 42339c464f am: cddc0c12cc
am: 02d43443d0  -s ours

Change-Id: If8b04c28f4e6fe3f32d89f11ca1901baf5857fba

6 years agoMerge "Zen upgrade notification"
TreeHugger Robot [Wed, 14 Feb 2018 00:27:05 +0000 (00:27 +0000)]
Merge "Zen upgrade notification"

6 years agoMerge "Public EuiccManager APIs." am: 42339c464f
Holly Jiuyu Sun [Wed, 14 Feb 2018 00:24:46 +0000 (00:24 +0000)]
Merge "Public EuiccManager APIs." am: 42339c464f
am: cddc0c12cc

Change-Id: I01d436c16df678292c8aec1f3ea2d7a65f3e10dd

6 years agoMerge "Add death recipient to TelephonyRegistry." am: e42d29f31b am: 244804f1b2
Malcolm Chen [Wed, 14 Feb 2018 00:23:50 +0000 (00:23 +0000)]
Merge "Add death recipient to TelephonyRegistry." am: e42d29f31b am: 244804f1b2
am: 8f080dec55

Change-Id: Ia037bc71830226f5b2f6b266af4586233585c138

6 years agoMerge "Add death recipient to TelephonyRegistry." am: e42d29f31b
Malcolm Chen [Wed, 14 Feb 2018 00:12:29 +0000 (00:12 +0000)]
Merge "Add death recipient to TelephonyRegistry." am: e42d29f31b
am: 244804f1b2

Change-Id: I2494c9affb98b646c74bf4983eebaa1becc62ff7

6 years agoMerge "Refactor runtime hidden API flag from negative to positive"
David Brazdil [Wed, 14 Feb 2018 00:10:28 +0000 (00:10 +0000)]
Merge "Refactor runtime hidden API flag from negative to positive"

6 years agoMerge "Public EuiccManager APIs."
Holly Jiuyu Sun [Wed, 14 Feb 2018 00:08:35 +0000 (00:08 +0000)]
Merge "Public EuiccManager APIs."
am: 42339c464f

Change-Id: I95f1713b1a1be188e7eae62adbfc975bfca982c3

6 years agoMerge "Add death recipient to TelephonyRegistry."
Malcolm Chen [Wed, 14 Feb 2018 00:04:57 +0000 (00:04 +0000)]
Merge "Add death recipient to TelephonyRegistry."
am: e42d29f31b

Change-Id: I20eb0b07a89b6dde2187339e28c0c3b50323370d

6 years agoStatsd_test update for rounding up alarms
Bookatz [Tue, 13 Feb 2018 23:55:14 +0000 (15:55 -0800)]
Statsd_test update for rounding up alarms

In ag/3580546 we now round up when setting anomaly alarms. This means
the test needs to be updated by 1s in one place.

Test: make statsd_test && adb sync data && adb shell data/nativetest64/statsd_test/statsd_test
Change-Id: Ibd3548833dcc2c1b9ca3a1da2c183bb771799775

6 years agoMerge "Add audioserver state callback"
Eric Laurent [Tue, 13 Feb 2018 23:46:11 +0000 (23:46 +0000)]
Merge "Add audioserver state callback"

6 years agoMerge "Update the internal state before sending the deltas to callback."
Sudheer Shanka [Tue, 13 Feb 2018 23:44:56 +0000 (23:44 +0000)]
Merge "Update the internal state before sending the deltas to callback."

6 years agoFixed an issue where the notification wasn't clickable
Selim Cinek [Tue, 13 Feb 2018 22:34:55 +0000 (14:34 -0800)]
Fixed an issue where the notification wasn't clickable

An earlier implementation of suppressing the ripple didn't
work properly since it could also suppress the click.
We're now suppressing it by removing the pressed state
from the drawable state.

Test: add notification, draw down on it and tap close to the action button a few times, normal launch observed
Change-Id: Icc0efe16125375eaf18ec0df7236faab1232d512
Fixes: 73106085

6 years agoMerge "Don't set functions at registration on boot"
Jerry Zhang [Tue, 13 Feb 2018 23:30:06 +0000 (23:30 +0000)]
Merge "Don't set functions at registration on boot"

6 years agoMerge "Rename Conference#setConnectionElapsedTime to clarity."
Treehugger Robot [Tue, 13 Feb 2018 23:27:33 +0000 (23:27 +0000)]
Merge "Rename Conference#setConnectionElapsedTime to clarity."

6 years agoMerge "Fix several issues with RecentsAnimation"
Winson Chung [Tue, 13 Feb 2018 23:23:04 +0000 (23:23 +0000)]
Merge "Fix several issues with RecentsAnimation"

6 years agoMerge "Fix link-type check warnings for platformprotosnano"
TreeHugger Robot [Tue, 13 Feb 2018 23:18:11 +0000 (23:18 +0000)]
Merge "Fix link-type check warnings for platformprotosnano"

6 years agoFix a bug in LogEvent.GetLong
Yao Chen [Tue, 13 Feb 2018 23:17:55 +0000 (15:17 -0800)]
Fix a bug in LogEvent.GetLong

Test: statsd_test

Bug: 73303815
Change-Id: I375083e7a9e447b385608b4ab64dc45981aa1193

6 years agoMerge "Add a11y titles for a few sysui windows"
Phil Weaver [Tue, 13 Feb 2018 23:12:16 +0000 (23:12 +0000)]
Merge "Add a11y titles for a few sysui windows"

6 years agoMerge "Fix opacity of expanded shade during transitions"
TreeHugger Robot [Tue, 13 Feb 2018 23:09:52 +0000 (23:09 +0000)]
Merge "Fix opacity of expanded shade during transitions"

6 years agoMerge "Public EuiccManager APIs."
Holly Jiuyu Sun [Tue, 13 Feb 2018 22:56:08 +0000 (22:56 +0000)]
Merge "Public EuiccManager APIs."

6 years agoMerge "Change navbar icons when overview proxy service is enabled (1/2)"
TreeHugger Robot [Tue, 13 Feb 2018 22:54:53 +0000 (22:54 +0000)]
Merge "Change navbar icons when overview proxy service is enabled (1/2)"

6 years agoMerge "Don't be so chatty, StatusIconContainer"
TreeHugger Robot [Tue, 13 Feb 2018 22:50:39 +0000 (22:50 +0000)]
Merge "Don't be so chatty, StatusIconContainer"

6 years agoMerge "Add interfact to get phone ID from UiccSlotInfo" am: 909e9d3e49 am: feba71b4ef
Qingxi Li [Tue, 13 Feb 2018 22:41:22 +0000 (22:41 +0000)]
Merge "Add interfact to get phone ID from UiccSlotInfo" am: 909e9d3e49 am: feba71b4ef
am: 0f804fa225  -s ours

Change-Id: Icf724111cd0848ea072980ba022ed4654b5ecf4e

6 years agoZen upgrade notification
Beverly [Wed, 7 Feb 2018 17:32:02 +0000 (12:32 -0500)]
Zen upgrade notification

Test: runtest --path /extra/master/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ZenModeHelperTest.java
Change-Id: Ia31f89af74d9bcee40e050bd6cc13f1e6a9a15d9
Fixes: 73000503
Fixes: 72876890
Fixes: 73110052

6 years agoMerge "Add interfact to get phone ID from UiccSlotInfo" am: 909e9d3e49
Qingxi Li [Tue, 13 Feb 2018 22:19:02 +0000 (22:19 +0000)]
Merge "Add interfact to get phone ID from UiccSlotInfo" am: 909e9d3e49
am: feba71b4ef

Change-Id: I4c65138fd4283c2023737c294f92d82346943157

6 years agoMerge "Add interfact to get phone ID from UiccSlotInfo"
Qingxi Li [Tue, 13 Feb 2018 22:06:45 +0000 (22:06 +0000)]
Merge "Add interfact to get phone ID from UiccSlotInfo"
am: 909e9d3e49

Change-Id: I610ad9785c419c864a604c2a330e07e56b6a19f2

6 years agoMerge "Add config overlay flags for ActivityMode in Wear."
TreeHugger Robot [Tue, 13 Feb 2018 21:29:58 +0000 (21:29 +0000)]
Merge "Add config overlay flags for ActivityMode in Wear."

6 years agoMerge "Add death recipient to TelephonyRegistry."
Treehugger Robot [Tue, 13 Feb 2018 21:27:39 +0000 (21:27 +0000)]
Merge "Add death recipient to TelephonyRegistry."

6 years agoMerge "Close print writers"
TreeHugger Robot [Tue, 13 Feb 2018 21:26:26 +0000 (21:26 +0000)]
Merge "Close print writers"

6 years agoMerge "Don't write settings just for install status"
TreeHugger Robot [Tue, 13 Feb 2018 21:15:23 +0000 (21:15 +0000)]
Merge "Don't write settings just for install status"

6 years agoMerge "Add @throws clause to getInstallerPackageName"
TreeHugger Robot [Tue, 13 Feb 2018 21:08:54 +0000 (21:08 +0000)]
Merge "Add @throws clause to getInstallerPackageName"

6 years agoMerge "check if per-uid cputimes proc file has correct no. of freqs."
Sudheer Shanka [Tue, 13 Feb 2018 21:04:08 +0000 (21:04 +0000)]
Merge "check if per-uid cputimes proc file has correct no. of freqs."

6 years agoMerge "Do not throw an exception if there's no application key to be decrypted"
TreeHugger Robot [Tue, 13 Feb 2018 21:00:31 +0000 (21:00 +0000)]
Merge "Do not throw an exception if there's no application key to be decrypted"

6 years agoDon't set functions at registration on boot
Jerry Zhang [Tue, 13 Feb 2018 20:58:41 +0000 (12:58 -0800)]
Don't set functions at registration on boot

If onRegistration is called before functions
are received, adb can be kicked on boot. To fix,
don't set functions if they are still being
requested.

Bug: 73168456
Test: adb logcat doesn't dc
Change-Id: I25bfe13604f0ce0c65c3eb82bcfafd9fcae0283f

6 years agoMerge "Update device default colors for darker UI"
TreeHugger Robot [Tue, 13 Feb 2018 20:58:14 +0000 (20:58 +0000)]
Merge "Update device default colors for darker UI"

6 years agoPublic EuiccManager APIs.
Holly Jiuyu Sun [Wed, 13 Dec 2017 04:17:09 +0000 (20:17 -0800)]
Public EuiccManager APIs.

Public EuiccManager and other related necessary files.
Mark EuiccCardManager and other related necessary files as @SystemApi.
Solve lint errors and warnings.

Bug: 35851809
Test: test on phone
Change-Id: I8a2c78804cae56b679d311d613edca5be4bc2522
Merged-In: I68853e134e1e31fa9b91a83af6c491a2a8cca971

6 years agoMerge "Fix timeouts caused by destroy() waiting for the same lock on sort."
TreeHugger Robot [Tue, 13 Feb 2018 20:44:42 +0000 (20:44 +0000)]
Merge "Fix timeouts caused by destroy() waiting for the same lock on sort."

6 years agoMerge "Fix race condition with calling stop() before run()"
TreeHugger Robot [Tue, 13 Feb 2018 20:31:22 +0000 (20:31 +0000)]
Merge "Fix race condition with calling stop() before run()"

6 years agoMerge "Sync too many retries"
Makoto Onuki [Tue, 13 Feb 2018 20:14:21 +0000 (20:14 +0000)]
Merge "Sync too many retries"

6 years agoMerge "Revert "Use ImageDecoder for NinePatchDrawable and BitmapDrawable""
TreeHugger Robot [Tue, 13 Feb 2018 20:13:04 +0000 (20:13 +0000)]
Merge "Revert "Use ImageDecoder for NinePatchDrawable and BitmapDrawable""

6 years agoMerge "Fix a bug in vector reverse iteration."
TreeHugger Robot [Tue, 13 Feb 2018 20:07:21 +0000 (20:07 +0000)]
Merge "Fix a bug in vector reverse iteration."

6 years agoChange navbar icons when overview proxy service is enabled (1/2)
Matthew Ng [Mon, 12 Feb 2018 22:13:18 +0000 (14:13 -0800)]
Change navbar icons when overview proxy service is enabled (1/2)

Changed the home button to a longer bar oval shape and back button to be
outlined instead of filled. Change opalayout to make the home button
larger when connected to launcher. Decrease the nav icons by 2dp in size.

Bug: 67957962
Test: manual
Change-Id: Ia70ea6704278948e333cb9540ff599dbe657de2c

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 13 Feb 2018 19:39:38 +0000 (19:39 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Add interfact to get phone ID from UiccSlotInfo"
Treehugger Robot [Tue, 13 Feb 2018 19:32:01 +0000 (19:32 +0000)]
Merge "Add interfact to get phone ID from UiccSlotInfo"

6 years agoMerge "Switch to public API version"
TreeHugger Robot [Tue, 13 Feb 2018 19:29:32 +0000 (19:29 +0000)]
Merge "Switch to public API version"

6 years agoAdd interfact to get phone ID from UiccSlotInfo
Qingxi Li [Wed, 31 Jan 2018 21:54:34 +0000 (13:54 -0800)]
Add interfact to get phone ID from UiccSlotInfo

Bug: 72753162
Test: TreeHugger
Merged-In: I7733a5f60cf4535339fe9b44e99178304ccbb2c0
Change-Id: I7733a5f60cf4535339fe9b44e99178304ccbb2c0

6 years agoClose print writers
Todd Kennedy [Tue, 13 Feb 2018 19:26:18 +0000 (11:26 -0800)]
Close print writers

Test: Manual
Change-Id: I4fffa9163b3ad7b0f70e15c1adc65370b70df0d3

6 years agoAdd config overlay flags for ActivityMode in Wear.
Calvin On [Thu, 8 Feb 2018 00:16:37 +0000 (16:16 -0800)]
Add config overlay flags for ActivityMode in Wear.

Bug: 70277751
Bug: 67479547
Bug: 67479806

Change-Id: I1219e3ad1a68e82aed75b84aca1988f501a26d3c

6 years agoRefactor ZygoteProcess to deal in LocalSocketAddress.
Robert Sesek [Fri, 26 Jan 2018 19:26:53 +0000 (14:26 -0500)]
Refactor ZygoteProcess to deal in LocalSocketAddress.

Currently ZygoteProcess only uses String names in the RESERVED socket
namespace. This CL reworks the class to use LocalSocketAddress, so that
other socket namespaces can be used to communicate with zygotes.

Bug: 63749735
Test: m (no functional change)
Merged-In: I4146f684bfcd78b16500829d02ff54590a8b48f5
Change-Id: I0113a7189530c2e57c48058df542057e855bae42

6 years agoNIAP: Log cert validation and key integrity failures.
Pavel Grafov [Tue, 6 Feb 2018 11:28:52 +0000 (11:28 +0000)]
NIAP: Log cert validation and key integrity failures.

Bug: 70886042
Test: manual, connect to EAP-TLS with self-signed cert.
Test: manual, create a key and damage it in /data/misc/keystore/user_0/
Change-Id: I61a8307da72bac38993f6588e9f184b360f6bf79

6 years agoAdd @throws clause to getInstallerPackageName
Todd Kennedy [Tue, 13 Feb 2018 19:12:35 +0000 (11:12 -0800)]
Add @throws clause to getInstallerPackageName

It's confusing that this method would throw the unchecked
IllegalArgumentException.

Test: Manual
Change-Id: I0e7fbf888d6408783fbcf698db0407e773661968
Fixes: 73279116

6 years agoDon't write settings just for install status
Todd Kennedy [Tue, 13 Feb 2018 19:09:50 +0000 (11:09 -0800)]
Don't write settings just for install status

This is an obsolete concept and not necessary. Remove the install status
that's part of the package settings.

Change-Id: I20a567145e579c9588d4392d0ac26ef4b5bbe301
Fixes: 62229032
Test: atest FrameworksServicesTests:PackageManagerSettingsTests

6 years agoAdd death recipient to TelephonyRegistry.
Malcolm Chen [Tue, 13 Feb 2018 03:15:59 +0000 (19:15 -0800)]
Add death recipient to TelephonyRegistry.

Add death recipient to TelephonyRegistry so that all binders that
connect to TelephonyRegistry will be cleaned when they are died.

Test: manual
Bug: 73107019
Change-Id: Ib44f72b769272cef9f36f7b49097091a93bcc70e

6 years agoAdd a11y titles for a few sysui windows
Phil Weaver [Tue, 13 Feb 2018 19:01:24 +0000 (11:01 -0800)]
Add a11y titles for a few sysui windows

Adding for status bar, nav bar, and global actions dialog.
Also removing some extra code from global actions dialog
that populated window state changes. Apps in general don't
need this extra information, so we don't need to maintain
it in SysUi either.

In verifying the fix, I noticed that all windows were
considered anchored because of a mismatch between long and
int. Fixing that too.

Bug: 73131182
Test: With the testback a11y service, verified that these
titles do indeed appear in the window information provided
to accessibility services. Also noted that windows are no
longer reporting themselves as anchored.

Change-Id: Ie09fbb88250b3c9663d6c28001e0ce9f70c67954

6 years agoDeprecated onCreateThumbnail
Wale Ogunwale [Tue, 13 Feb 2018 16:30:53 +0000 (08:30 -0800)]
Deprecated onCreateThumbnail

API hasn't done anything in the platform for ages and there is not plan
to make it do anything.

Change-Id: I7d433a0d45aed860659c311381bc9f356eb9f986
Fixes: 73249948
Test: builds

6 years agoFix several issues with RecentsAnimation
Winson Chung [Mon, 12 Feb 2018 19:10:04 +0000 (11:10 -0800)]
Fix several issues with RecentsAnimation

- Prevent starting the recents animation while an app transition is already
  set, if the animation was canceled before the pending start animation
  could be processed, or if there are truly no visible tasks to animate
- Fix case where we were improperly cleaning up the recents animation if it
  was canceled while initializing. In particular we need to move the
  initialization out of the constructor for the cancel logic to work
  (which checks for a non-null controller before cleaning up). Similarly
  we were posting the timeout runnable after the initialization of the
  recents animation, even if that resulted in the animation being canceled.
  Instead, post it before initialization to ensure that canceling the
  animation will also remove the timeout.

Bug: 72953248
Test: Introduce artificial delay when starting recents animation such that
      it happens after starting an activity

Change-Id: Ie0ec37038822f28327e789e7e5a3c4c36f945ff9
Signed-off-by: Winson Chung <winsonc@google.com>
6 years agoDo not throw an exception if there's no application key to be decrypted
Bo Zhu [Tue, 13 Feb 2018 18:23:39 +0000 (10:23 -0800)]
Do not throw an exception if there's no application key to be decrypted

Bug: 73287131
Test: adb shell am instrument -w -e package \
com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I17fd94a975312abf9b93080318b7c16a4d388237

6 years agoMerge "Fix comment case."
Makoto Onuki [Tue, 13 Feb 2018 18:50:45 +0000 (18:50 +0000)]
Merge "Fix comment case."

6 years agoRefactor runtime hidden API flag from negative to positive
David Brazdil [Tue, 13 Feb 2018 17:04:26 +0000 (17:04 +0000)]
Refactor runtime hidden API flag from negative to positive

There are only two situations in which we want to enable hidden API
access flag checks. Turning the flag from DISABLE_ to ENABLE_
simplifies logic in ART and reduces the number places where the flag
had to be passed down to ART.

Bug: 64382372
Test: boot device, install and run apps, check log messages
Change-Id: Ic5a531834360b614fc93d54221c7395579791184

6 years agoMove rotate navbar button to the right stack
Mike Digman [Tue, 13 Feb 2018 01:52:48 +0000 (17:52 -0800)]
Move rotate navbar button to the right stack

Puts button below A11y button but above IME switcher and menu.
Removes distinct rotate option from SysUI tuner.

Test: custom Gingerbread app to test menu+IME, manual a11y testing
Change-Id: Ieef352ecb679c069d8535eb058c82ccf868af2ba

6 years agoMerge "pm shell command to uninstall system updates"
TreeHugger Robot [Tue, 13 Feb 2018 18:26:11 +0000 (18:26 +0000)]
Merge "pm shell command to uninstall system updates"

6 years agofix uid for ForegroundServiceStateChanged
Chenjie Yu [Tue, 13 Feb 2018 18:21:59 +0000 (10:21 -0800)]
fix uid for ForegroundServiceStateChanged

+ was using userId, change to appInfo.uid

Test: will add cts test
Change-Id: I82990fe8f4a21c833e09d40a0e19e2bda6530f1c
Fix: 73290567

6 years agofix uid for ActivityForegroundStateChanged atom
Chenjie Yu [Tue, 13 Feb 2018 18:12:09 +0000 (10:12 -0800)]
fix uid for ActivityForegroundStateChanged atom

+ was using userId. should use app.uid

Test: manual test. will add cts test
Change-Id: I905cbcb719ae0a0f160c55fc391eec180906723d
Fix: 73067495

6 years agoFix a bug in vector reverse iteration.
Yao Chen [Tue, 13 Feb 2018 17:37:27 +0000 (09:37 -0800)]
Fix a bug in vector reverse iteration.

Bug: 73264895

Test: statsd_test and locally built statsd with
     LOCAL_CLANG:=true
     LOCAL_SANITIZE:=address

Change-Id: Ifb8e04c5b4908446f553169846a3226db6e02f54