OSDN Git Service

android-x86/frameworks-base.git
7 years agoSend launch token to activity manager
Todd Kennedy [Mon, 20 Mar 2017 23:05:48 +0000 (16:05 -0700)]
Send launch token to activity manager

When an instant app is installed, control passes from the platform
to the instant app installer. However, when the instant app is
launched, the original launch token needs to be associated with that
launch. Do this by sending the launch token along with the original
launch intent

Change-Id: I5741be343862d4e5c8bfb6b4a81d0bac8e53ea9c
Fixes: 35445667
Test: Build and manully inspect the event logs to ensure the launch token is sent on instant app launch

7 years agoAdd token to the resolver APIs
Todd Kennedy [Fri, 17 Mar 2017 23:03:29 +0000 (16:03 -0700)]
Add token to the resolver APIs

Change-Id: Ia6d4f6d88ec265480a4dca94fe77ef42592a328c
Fixes: 35442315
Test: Build and make sure instant apps still resolve

7 years agoMerge "Use access directly instead of sk_exists."
Ben Wagner [Mon, 20 Mar 2017 14:17:48 +0000 (14:17 +0000)]
Merge "Use access directly instead of sk_exists."

7 years agoMerge "Finalize Strings and Icon for Network Logging Notification"
Philipp Weiß [Mon, 20 Mar 2017 12:03:03 +0000 (12:03 +0000)]
Merge "Finalize Strings and Icon for Network Logging Notification"

7 years agoMerge "TelephonyManager: Avoid unnecessary object allocation." am: 5d3f14fe02 am...
Narayan Kamath [Mon, 20 Mar 2017 11:12:10 +0000 (11:12 +0000)]
Merge "TelephonyManager: Avoid unnecessary object allocation." am: 5d3f14fe02 am: 088df2bd0a
am: 20fa635f7b

Change-Id: I1008a22a437b46d4830ef89189d43db0e3d07c45

7 years agoMerge "TelephonyManager: Avoid unnecessary object allocation." am: 5d3f14fe02
Narayan Kamath [Mon, 20 Mar 2017 11:04:17 +0000 (11:04 +0000)]
Merge "TelephonyManager: Avoid unnecessary object allocation." am: 5d3f14fe02
am: 088df2bd0a

Change-Id: I0af6c22b2c7418553a70d49f9d67393b51abd37f

7 years agoMerge "TelephonyManager: Avoid unnecessary object allocation."
Narayan Kamath [Mon, 20 Mar 2017 10:57:52 +0000 (10:57 +0000)]
Merge "TelephonyManager: Avoid unnecessary object allocation."
am: 5d3f14fe02

Change-Id: If425a64fe7820579045dfa40b356792f24d0de43

7 years agoMerge "AutoSize TextView (part 12) - ellipsize & more fixes"
Andrei Stingaceanu [Mon, 20 Mar 2017 10:53:39 +0000 (10:53 +0000)]
Merge "AutoSize TextView (part 12) - ellipsize & more fixes"

7 years agoMerge "TelephonyManager: Avoid unnecessary object allocation."
Narayan Kamath [Mon, 20 Mar 2017 10:49:16 +0000 (10:49 +0000)]
Merge "TelephonyManager: Avoid unnecessary object allocation."

7 years agoMerge "Read emoji addtions from data file"
Roozbeh Pournader [Mon, 20 Mar 2017 02:59:20 +0000 (02:59 +0000)]
Merge "Read emoji addtions from data file"

7 years agoMerge "Grumble, apps should check features before using."
TreeHugger Robot [Sun, 19 Mar 2017 03:28:02 +0000 (03:28 +0000)]
Merge "Grumble, apps should check features before using."

7 years agoMerge "Use allocatable space when measuring for install."
TreeHugger Robot [Sun, 19 Mar 2017 01:45:48 +0000 (01:45 +0000)]
Merge "Use allocatable space when measuring for install."

7 years agoMerge "Replace rectangle shadow algorithm"
Charlie Tsai [Sun, 19 Mar 2017 01:18:34 +0000 (01:18 +0000)]
Merge "Replace rectangle shadow algorithm"

7 years agoUse allocatable space when measuring for install.
Jeff Sharkey [Sat, 18 Mar 2017 23:54:51 +0000 (17:54 -0600)]
Use allocatable space when measuring for install.

The system is often willing to clear cached data to make room for
incoming installs, so use StorageManager.getAllocatableBytes() when
making "does it fit?" style decisions.

Add new INSTALL_ALLOCATE_AGGRESSIVE flag, which will flow through
to use StorageManager.FLAG_ALLOCATE_AGGRESSIVE when making allocation
related requests.  (This can be used by installers to indicate
packages that are critical to system health or security.

Test: runtest -x frameworks/base/core/tests/coretests/src/android/content/pm/PackageHelperTests.java
Bug: 36131437
Change-Id: If8118762fd1ca1f497d2cdd1787bdb3c9759dcc0

7 years agoGrumble, apps should check features before using.
Jeff Sharkey [Sat, 18 Mar 2017 22:48:02 +0000 (16:48 -0600)]
Grumble, apps should check features before using.

Turns out several apps are blindly grabbing a FINGERPRINT_SERVICE
reference without checking to see if the device actually includes
that feature.

Hand pre-O apps a stubbed out Manager instance, but keep the new
ServiceNotFoundException behavior intact going forward, since it
prevents race conditions during boot or Binder service restarts.

Test: builds, boots
Bug: 32566669
Change-Id: Id1c0873e98e59b255f32e0f9204f4525a345f9ef

7 years agoOnly query storage stats when package installed.
Jeff Sharkey [Sat, 18 Mar 2017 22:39:24 +0000 (16:39 -0600)]
Only query storage stats when package installed.

Otherwise we're just wasting our time (since the sizes will be zero),
and we'll get yelled at by an exception.

Test: builds, boots, no longer crashes
Bug: 36308874
Change-Id: I113d37e4a9ec00b8cb74321104c1ea1f836aa6f4

7 years agoReplace rectangle shadow algorithm
Charlie Tsai [Thu, 2 Mar 2017 18:39:45 +0000 (18:39 +0000)]
Replace rectangle shadow algorithm

Test: Rectangle Shadow test
Change-Id: Id9635df8769e85d835dc6f99201b86e5bba110d2

7 years agoMerge "Add TRON logs"
TreeHugger Robot [Sat, 18 Mar 2017 17:36:57 +0000 (17:36 +0000)]
Merge "Add TRON logs"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 18 Mar 2017 17:10:58 +0000 (17:10 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 18 Mar 2017 17:05:49 +0000 (17:05 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 18 Mar 2017 17:04:41 +0000 (17:04 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sat, 18 Mar 2017 16:30:01 +0000 (16:30 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 18 Mar 2017 13:56:16 +0000 (06:56 -0700)]
Import translations. DO NOT MERGE

Change-Id: I8f6d28da56a19b5b7275602cb435ff74499818bd
Auto-generated-cl: translation import

7 years agorevise the reader semantics
Chris Wren [Fri, 17 Mar 2017 21:18:11 +0000 (17:18 -0400)]
revise the reader semantics

checkpoint modifies the underlying log rather than reading timestamps.
reset replays without going back to the underlying log.
add a test

Bug: 32982362
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics
Change-Id: I381b203a1c24fcd098d7df4d9d0a50bd8aaa1309

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 18 Mar 2017 08:40:55 +0000 (01:40 -0700)]
Import translations. DO NOT MERGE

Change-Id: I570e874a9059d3ecd42dc668e3c2a051e5e369b2
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 18 Mar 2017 08:21:03 +0000 (01:21 -0700)]
Import translations. DO NOT MERGE

Change-Id: I820e686def44fb4442c531f0c7fac97094fc8af4
Auto-generated-cl: translation import

7 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 18 Mar 2017 08:12:18 +0000 (01:12 -0700)]
Import translations. DO NOT MERGE

Change-Id: I28fd5eb6a213d19e6d9266a167b26c6eaa12d880
Auto-generated-cl: translation import

7 years agoMerge "Removed redundant call to session.removeSelf()"
TreeHugger Robot [Sat, 18 Mar 2017 03:04:23 +0000 (03:04 +0000)]
Merge "Removed redundant call to session.removeSelf()"

7 years agoMerge "Fix NPE when config is updated before ViewRootImpl is set"
TreeHugger Robot [Sat, 18 Mar 2017 01:33:07 +0000 (01:33 +0000)]
Merge "Fix NPE when config is updated before ViewRootImpl is set"

7 years agoRead emoji addtions from data file
Roozbeh Pournader [Sat, 18 Mar 2017 01:23:23 +0000 (18:23 -0700)]
Read emoji addtions from data file

We now read the emoji additions from a data file, instead of keeping
them in code.

Test: updated lint script passes.
Change-Id: Ica1ca10eaba0ca2b4a178d08354e31729cb88ce5

7 years agoMerge "Update Emoji.java to use ICU"
TreeHugger Robot [Sat, 18 Mar 2017 01:09:34 +0000 (01:09 +0000)]
Merge "Update Emoji.java to use ICU"

7 years agoMerge "Correctly check expired jobs against active ones"
Chris Tate [Sat, 18 Mar 2017 00:39:53 +0000 (00:39 +0000)]
Merge "Correctly check expired jobs against active ones"

7 years agoMerge "Warn when ActivityManagerService.dumpStackTraces times out"
Brian Carlstrom [Sat, 18 Mar 2017 00:39:47 +0000 (00:39 +0000)]
Merge "Warn when ActivityManagerService.dumpStackTraces times out"

7 years agoMerge "Update battery settings summary text."
Doris Ling [Sat, 18 Mar 2017 00:39:04 +0000 (00:39 +0000)]
Merge "Update battery settings summary text."

7 years agoRemoved redundant call to session.removeSelf()
Felipe Leme [Fri, 17 Mar 2017 23:55:02 +0000 (16:55 -0700)]
Removed redundant call to session.removeSelf()

Bug: 35721501
Test: CtsAutoFillServiceTestCases pass
Change-Id: I625c08bd8f9f673892387c703082c3eb5b2fd48d

7 years agoMerge changes Ic359aaee,Id7aba066
TreeHugger Robot [Sat, 18 Mar 2017 00:05:12 +0000 (00:05 +0000)]
Merge changes Ic359aaee,Id7aba066

* changes:
  AOD: Use color filter to invert icons for AOD
  NotificationWrappers: Factor out doze treatment

7 years agoMerge changes Iab3f9914,I5d5da5e7
TreeHugger Robot [Fri, 17 Mar 2017 23:57:06 +0000 (23:57 +0000)]
Merge changes Iab3f9914,I5d5da5e7

* changes:
  Average scan results for AccessPoints.
  Fix broken AccessPointTests.

7 years agoFix NPE when config is updated before ViewRootImpl is set
Andrii Kulian [Fri, 17 Mar 2017 21:58:36 +0000 (14:58 -0700)]
Fix NPE when config is updated before ViewRootImpl is set

If activity received a configuration change before it had its
ViewRootImpl initialize, then there was a NPE when trying to
notify the ViewRootImpl instance about latest changes.

Bug: 36396248
Test: android.server.cts.ActivityManagerAppConfigurationTests
Test: #testLaunchWithUiModeChange
Test: Launch AndroidAuto app
Change-Id: I71e0f316f885a30dadce388bbd3d9f21f419076b

7 years agoMerge "remove deprecated SIM_ACTIVATION_REQUEST intent" am: 7f8d27f84b am: 4aadda1902
fionaxu [Fri, 17 Mar 2017 23:50:47 +0000 (23:50 +0000)]
Merge "remove deprecated SIM_ACTIVATION_REQUEST intent" am: 7f8d27f84b am: 4aadda1902
am: 606f1ae931

Change-Id: I345b2853acca9e0165c2bf26d885ff794b734d69

7 years agoMerge "remove deprecated SIM_ACTIVATION_REQUEST intent" am: 7f8d27f84b
fionaxu [Fri, 17 Mar 2017 23:44:09 +0000 (23:44 +0000)]
Merge "remove deprecated SIM_ACTIVATION_REQUEST intent" am: 7f8d27f84b
am: 4aadda1902

Change-Id: I5c01a75cbb65b8374548c18c5139f9d892e14f49

7 years agoMerge "remove deprecated SIM_ACTIVATION_REQUEST intent"
fionaxu [Fri, 17 Mar 2017 23:34:49 +0000 (23:34 +0000)]
Merge "remove deprecated SIM_ACTIVATION_REQUEST intent"
am: 7f8d27f84b

Change-Id: Ia1216368a2a2a4959283d95bbc4be26789f151f6

7 years agoMerge "Getting ephemeral flag from PackageManager when UidRecord is null"
TreeHugger Robot [Fri, 17 Mar 2017 23:25:15 +0000 (23:25 +0000)]
Merge "Getting ephemeral flag from PackageManager when UidRecord is null"

7 years agoMerge "remove deprecated SIM_ACTIVATION_REQUEST intent"
Treehugger Robot [Fri, 17 Mar 2017 23:24:28 +0000 (23:24 +0000)]
Merge "remove deprecated SIM_ACTIVATION_REQUEST intent"

7 years agoMerge "format cleanup(intellij)"
TreeHugger Robot [Fri, 17 Mar 2017 23:23:56 +0000 (23:23 +0000)]
Merge "format cleanup(intellij)"

7 years agoMerge "Compile secondary dex files according to REASON_BACKGROUND_DEXOPT"
Calin Juravle [Fri, 17 Mar 2017 23:22:41 +0000 (23:22 +0000)]
Merge "Compile secondary dex files according to REASON_BACKGROUND_DEXOPT"

7 years agoMerge changes from topic 'configForSplit'
Adam Lesinski [Fri, 17 Mar 2017 23:19:04 +0000 (23:19 +0000)]
Merge changes from topic 'configForSplit'

* changes:
  libandroidfw: Search all packages for an identifier
  AAPT2: Finish support for feature splits
  Add support for configForSplit

7 years agoMerge "Merge "Ota: Add command logging" am: 9a8d78dc86 am: 8dd991a7ef am: c47f92b374"
Android Build Merger (Role) [Fri, 17 Mar 2017 23:12:00 +0000 (23:12 +0000)]
Merge "Merge "Ota: Add command logging" am: 9a8d78dc86 am: 8dd991a7ef am: c47f92b374"

7 years agoMerge "Better call emulation for DevicePolicyManagerTest"
TreeHugger Robot [Fri, 17 Mar 2017 23:11:41 +0000 (23:11 +0000)]
Merge "Better call emulation for DevicePolicyManagerTest"

7 years agoMerge "Ota: Add command logging" am: 9a8d78dc86 am: 8dd991a7ef
Andreas Gampe [Fri, 17 Mar 2017 23:11:11 +0000 (23:11 +0000)]
Merge "Ota: Add command logging" am: 9a8d78dc86 am: 8dd991a7ef
am: c47f92b374

Change-Id: I6038dc9afd05c375bd1c6933b2aa5882f7835174

7 years agoMerge "Merge "Bluetooth 5 move timeout parameter (1/2)" am: d9f2f67a5f am: 07d79aa3b0...
Android Build Merger (Role) [Fri, 17 Mar 2017 23:10:41 +0000 (23:10 +0000)]
Merge "Merge "Bluetooth 5 move timeout parameter (1/2)" am: d9f2f67a5f am: 07d79aa3b0 am: acd3953ea1"

7 years agoMerge "Bluetooth 5 move timeout parameter (1/2)" am: d9f2f67a5f am: 07d79aa3b0
Jakub Pawlowski [Fri, 17 Mar 2017 23:09:10 +0000 (23:09 +0000)]
Merge "Bluetooth 5 move timeout parameter (1/2)" am: d9f2f67a5f am: 07d79aa3b0
am: acd3953ea1

Change-Id: Ic2c7bd33d558bb4e8cfff063c95f2fa137aeaae0

7 years agoMerge "Fix ArrayMap.get vs ArrayMap.valueAt typo"
TreeHugger Robot [Fri, 17 Mar 2017 23:07:27 +0000 (23:07 +0000)]
Merge "Fix ArrayMap.get vs ArrayMap.valueAt typo"

7 years agoMerge "Show friction icons in Saved Networks list."
TreeHugger Robot [Fri, 17 Mar 2017 23:06:09 +0000 (23:06 +0000)]
Merge "Show friction icons in Saved Networks list."

7 years agoMerge "Remove U+1F93B MODERN PENATHLON and U+1F946 RIFLE from emoji"
TreeHugger Robot [Fri, 17 Mar 2017 23:04:30 +0000 (23:04 +0000)]
Merge "Remove U+1F93B MODERN PENATHLON and U+1F946 RIFLE from emoji"

7 years agoMerge "Ota: Add command logging" am: 9a8d78dc86
Andreas Gampe [Fri, 17 Mar 2017 22:53:33 +0000 (22:53 +0000)]
Merge "Ota: Add command logging" am: 9a8d78dc86
am: 8dd991a7ef

Change-Id: I7a5061a98c33abbae787a42079c41263dbcdc7cb

7 years agoMerge "Update fontchain_lint.py to read Emoji 5.0 data"
TreeHugger Robot [Fri, 17 Mar 2017 22:49:17 +0000 (22:49 +0000)]
Merge "Update fontchain_lint.py to read Emoji 5.0 data"

7 years agoMerge "Ota: Add command logging"
Andreas Gampe [Fri, 17 Mar 2017 22:45:34 +0000 (22:45 +0000)]
Merge "Ota: Add command logging"
am: 9a8d78dc86

Change-Id: I48b887a26c8f8123c112559da0f74112bb703b1c

7 years agoMerge "Add new precise call fail causes and OEM causes" am: 9aa841d254 am: 4992b1533e
Jayachandran Chinnakkannu [Fri, 17 Mar 2017 22:41:35 +0000 (22:41 +0000)]
Merge "Add new precise call fail causes and OEM causes" am: 9aa841d254 am: 4992b1533e
am: a7c4fdbf03

Change-Id: Iea9ee9c4a407638dfa19669b25d0c1534978d4a6

7 years agoMerge "Bluetooth 5 move timeout parameter (1/2)" am: d9f2f67a5f
Jakub Pawlowski [Fri, 17 Mar 2017 22:41:00 +0000 (22:41 +0000)]
Merge "Bluetooth 5 move timeout parameter (1/2)" am: d9f2f67a5f
am: 07d79aa3b0

Change-Id: I5f75034690784dd06d54345e60107ab7049e4da7

7 years agoMerge "Ota: Add command logging"
Treehugger Robot [Fri, 17 Mar 2017 22:35:47 +0000 (22:35 +0000)]
Merge "Ota: Add command logging"

7 years agoMerge "Bluetooth 5 move timeout parameter (1/2)"
Jakub Pawlowski [Fri, 17 Mar 2017 22:34:24 +0000 (22:34 +0000)]
Merge "Bluetooth 5 move timeout parameter (1/2)"
am: d9f2f67a5f

Change-Id: Iee7d485461f5e02ab65ec9f7311e962deb603543

7 years agoMerge "Add new precise call fail causes and OEM causes" am: 9aa841d254
Jayachandran Chinnakkannu [Fri, 17 Mar 2017 22:34:01 +0000 (22:34 +0000)]
Merge "Add new precise call fail causes and OEM causes" am: 9aa841d254
am: 4992b1533e

Change-Id: I00c97934ad59e996844831ee23ace60813d3ce0c

7 years agoMerge "Update references to removed APIs"
TreeHugger Robot [Fri, 17 Mar 2017 22:33:14 +0000 (22:33 +0000)]
Merge "Update references to removed APIs"

7 years agoAOD: Use color filter to invert icons for AOD
Adrian Roos [Wed, 8 Mar 2017 23:26:14 +0000 (15:26 -0800)]
AOD: Use color filter to invert icons for AOD

Fixes an issue where the AOD icons where of different
brightness because they were converted to grayscale and
then inverted. Now we just set the appropriate color filter
instead.

Change-Id: Ic359aaee2e19274670f44c5b7380c636ee26e559
Test: Open AOD, observe that the icons are colored solid white (like the clock) instead of gray.
Fixes: 35850204

7 years agoNotificationWrappers: Factor out doze treatment
Adrian Roos [Wed, 8 Mar 2017 22:58:33 +0000 (14:58 -0800)]
NotificationWrappers: Factor out doze treatment

Bug: 35850204
Test: receive a notification group, observe that the group icon is correctly inverted on ambient display.
Change-Id: Id7aba066eb1683705fdc2c008e657bd819ddd31d

7 years agoMerge "Add new precise call fail causes and OEM causes"
Jayachandran Chinnakkannu [Fri, 17 Mar 2017 22:27:11 +0000 (22:27 +0000)]
Merge "Add new precise call fail causes and OEM causes"
am: 9aa841d254

Change-Id: I2b52c9c332fc73a37ac2c4c492ac9b85b2025897

7 years agoMerge "Bluetooth 5 move timeout parameter (1/2)"
Jakub Pawlowski [Fri, 17 Mar 2017 22:24:04 +0000 (22:24 +0000)]
Merge "Bluetooth 5 move timeout parameter (1/2)"

7 years agoBluetooth 5 move timeout parameter (1/2)
Jakub Pawlowski [Fri, 17 Mar 2017 18:12:15 +0000 (11:12 -0700)]
Bluetooth 5 move timeout parameter (1/2)

Timeout is not a parameter, it is a property of enabling the
advertising. Move it into more proper place.

Test: manual
Bug: 30622771
Change-Id: I09ebc6c770bc02938ea16a9738a7e03dc8006fde

7 years agoMerge "hotspot2: implement toString for PasspointConfiguration" am: 5bd337397b am...
Peter Qiu [Fri, 17 Mar 2017 22:23:30 +0000 (22:23 +0000)]
Merge "hotspot2: implement toString for PasspointConfiguration" am: 5bd337397b am: 8951172562
am: 79ff52975f

Change-Id: I80cdbc7f0140e6085c06cab8eaba63e1fc455538

7 years agoMerge "Add new precise call fail causes and OEM causes"
Jayachandran Chinnakkannu [Fri, 17 Mar 2017 22:18:22 +0000 (22:18 +0000)]
Merge "Add new precise call fail causes and OEM causes"

7 years agoMerge "hotspot2: implement toString for PasspointConfiguration" am: 5bd337397b
Peter Qiu [Fri, 17 Mar 2017 22:16:22 +0000 (22:16 +0000)]
Merge "hotspot2: implement toString for PasspointConfiguration" am: 5bd337397b
am: 8951172562

Change-Id: I3799156a83400d9fa1aa07a4afd935bd9c0f683b

7 years agoUpdate Emoji.java to use ICU
Roozbeh Pournader [Fri, 17 Mar 2017 22:08:47 +0000 (15:08 -0700)]
Update Emoji.java to use ICU

Overrides have been added to update the data to Emoji 5.0, since our
version of ICU only supports Emoji 4.0.

Test: CTS tests continue to pass.
Bug: 27365282
Bug: 30874706
Change-Id: I7c791e1e75ea3510b36f258c1e1c7184051d6d3a

7 years agoMerge "hotspot2: implement toString for PasspointConfiguration"
Peter Qiu [Fri, 17 Mar 2017 22:08:21 +0000 (22:08 +0000)]
Merge "hotspot2: implement toString for PasspointConfiguration"
am: 5bd337397b

Change-Id: I8db5f02e6c6ab6b03de5ae3cff39619f85963e9b

7 years agoMerge "Deprecate IMM#showSoftInputUnchecked() part 1"
Yohei Yukawa [Fri, 17 Mar 2017 22:05:16 +0000 (22:05 +0000)]
Merge "Deprecate IMM#showSoftInputUnchecked() part 1"

7 years agoMerge "hotspot2: implement toString for PasspointConfiguration"
Treehugger Robot [Fri, 17 Mar 2017 21:57:15 +0000 (21:57 +0000)]
Merge "hotspot2: implement toString for PasspointConfiguration"

7 years agoremove deprecated SIM_ACTIVATION_REQUEST intent
fionaxu [Fri, 17 Mar 2017 21:35:39 +0000 (14:35 -0700)]
remove deprecated SIM_ACTIVATION_REQUEST intent

This deprecated intent voilates intent naming conventions as defined in CDD.

Bug:35271104
Test: Manual
Change-Id: Ic7f251a6471de31e17960d612e108203983ce32d

7 years agoMerge "Fix libplatformproto includes/export includes"
TreeHugger Robot [Fri, 17 Mar 2017 21:46:08 +0000 (21:46 +0000)]
Merge "Fix libplatformproto includes/export includes"

7 years agoMerge "Make SYNC_PARENT_SOUNDS a @SystemApi"
TreeHugger Robot [Fri, 17 Mar 2017 21:38:47 +0000 (21:38 +0000)]
Merge "Make SYNC_PARENT_SOUNDS a @SystemApi"

7 years agoRemove U+1F93B MODERN PENATHLON and U+1F946 RIFLE from emoji
Roozbeh Pournader [Fri, 17 Mar 2017 19:40:20 +0000 (12:40 -0700)]
Remove U+1F93B MODERN PENATHLON and U+1F946 RIFLE from emoji

These had remained in Emoji.java although they were removed from Unicode
emoji. The data still needs to be updated to Emoji 5.0, but that will be
done in another CL.

Test: not needed
Bug: 28678294
Change-Id: I491c4bba107b960fb1efccbe19630ab274aa6e29

7 years agoUpdate battery settings summary text.
Doris Ling [Fri, 17 Mar 2017 21:37:24 +0000 (14:37 -0700)]
Update battery settings summary text.

Bug: 36375846
Test: builds
Change-Id: I9d0cf831327960d69296de5b025e18c6f1f6a2ae

7 years agoMerge "Code clean up: remove some dead code."
TreeHugger Robot [Fri, 17 Mar 2017 21:34:58 +0000 (21:34 +0000)]
Merge "Code clean up: remove some dead code."

7 years agoGetting ephemeral flag from PackageManager when UidRecord is null
Suprabh Shukla [Thu, 16 Mar 2017 22:37:36 +0000 (15:37 -0700)]
Getting ephemeral flag from PackageManager when UidRecord is null

When a user switches off background running for an app that was already
stopped, UidRecord is null when passed in to
AcitivityManager#doStopUidLocked resulting in an NPE. We need to get
ephemeral state flag from package manager in such cases.

Test: Manual

Bug: 36158380
Change-Id: Id77848c252cc0ff0c803113ac2c7c19aa0dcf254

7 years agoWarn when ActivityManagerService.dumpStackTraces times out
Brian Carlstrom [Tue, 14 Mar 2017 07:58:26 +0000 (00:58 -0700)]
Warn when ActivityManagerService.dumpStackTraces times out

Test: Insert hang into art/runtime/signal_catcher.cc after "reacting to signal"
Bug: 35962833
Change-Id: Ia5444e7e23b3fc34f233ce8cc083d44b284a6cdc

7 years agoUse access directly instead of sk_exists.
Ben Wagner [Fri, 17 Mar 2017 21:22:01 +0000 (17:22 -0400)]
Use access directly instead of sk_exists.

Skia would like to move SkOSFile and make it private spi. This appears
to be the only place SkOSFile is used outside Skia, and using access
here directly is more apropriate.

Test: Simple inline refactor, built and ran. Changes test code only.
Change-Id: Ib76c180bb3bccc54c20dcadc842837e3e8270929

7 years agoMerge "Allow the support library to add its own droiddoc options"
Alan Viverette [Fri, 17 Mar 2017 21:01:58 +0000 (21:01 +0000)]
Merge "Allow the support library to add its own droiddoc options"

7 years agoOta: Add command logging
Andreas Gampe [Fri, 17 Mar 2017 20:59:08 +0000 (13:59 -0700)]
Ota: Add command logging

Log the next command.

Bug: 25612095
Test: m
Change-Id: I284a2fb3e329afcb0b03f7162585b0eefe13eb0e

7 years agoAdd TRON logs
Todd Kennedy [Fri, 17 Mar 2017 20:55:38 +0000 (13:55 -0700)]
Add TRON logs

Add logs for instant app resolution [both phase 1 & 2]
as well as new logs for all activity starts.

Change-Id: I0d25daa383854eacd3bc406ce1360d819a8ec4ba
Fixes: 35442251
Fixes: 35441725
Test: Manual; install/run instant app and inspect the event logs for appropriate tags

7 years agoMerge "Send broadcast when user restrictions change."
TreeHugger Robot [Fri, 17 Mar 2017 20:48:28 +0000 (20:48 +0000)]
Merge "Send broadcast when user restrictions change."

7 years agoUpdate references to removed APIs
Alan Viverette [Fri, 17 Mar 2017 20:46:20 +0000 (16:46 -0400)]
Update references to removed APIs

Test: make PRODUCT-sdk_google_aw_x86-sdk
Change-Id: I8e13f43520e609808a9825fa3c89f4233076c5a9

7 years agoCorrectly check expired jobs against active ones
Christopher Tate [Wed, 15 Mar 2017 19:01:22 +0000 (12:01 -0700)]
Correctly check expired jobs against active ones

If a job was run before its deadline, and then the deadline landed
while the job was still running, b/c of the 'deadline trumps all'
it would be considered eligible to run again as soon as the previous
iteration completed.

Fix this by checking against the state of the active queue.

Bug 36253320
Test: CTS: job scheduler TimingConstraintsTest

Change-Id: I4f0c1012091bf88776cfe725d7b59f6dcf602c02

7 years agoMerge "Dump native stack for background ANR if process is of interest"
Brian Carlstrom [Fri, 17 Mar 2017 20:32:59 +0000 (20:32 +0000)]
Merge "Dump native stack for background ANR if process is of interest"

7 years agoAverage scan results for AccessPoints.
Sundeep Ghuman [Thu, 16 Mar 2017 02:06:14 +0000 (19:06 -0700)]
Average scan results for AccessPoints.

This reduces jitter in the WifiTracker and is modeled after a prior
broken implementation which attempted to half-life the rssi each time
AccessPoint.update(ScanResult) is called.

Bug: 34774783
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: Iab3f9914af40f2fd56e8ae7b45dcbd62176c8a67

7 years agoMerge "QS: Revert change to when user switcher is shown"
TreeHugger Robot [Fri, 17 Mar 2017 20:22:36 +0000 (20:22 +0000)]
Merge "QS: Revert change to when user switcher is shown"

7 years agoFix libplatformproto includes/export includes
Dan Willemsen [Fri, 17 Mar 2017 20:05:20 +0000 (13:05 -0700)]
Fix libplatformproto includes/export includes

The host versions of these were pointing to the target generated
sources, without having proper dependencies added. But the build system
already handles these adding these to your local and exported include
directories, so just remove them.

Bug: 36365556
Test: m -j libhwui incident_report incident-section-gen
Change-Id: I52024508eabd8d10899c307c950fe045ff66ab25

7 years agoMerge "Fix deadlock between activity manager and settings provider"
Makoto Onuki [Fri, 17 Mar 2017 19:59:02 +0000 (19:59 +0000)]
Merge "Fix deadlock between activity manager and settings provider"

7 years agoCode clean up: remove some dead code.
Fan Zhang [Fri, 17 Mar 2017 19:55:21 +0000 (12:55 -0700)]
Code clean up: remove some dead code.

Test: existing tests pass
Change-Id: I1e0e6f8218b3a6550476fe1aa092f685d7433d53

7 years agoMerge "Revert "Changing initial and default focus behavior""
Alan Viverette [Fri, 17 Mar 2017 19:47:09 +0000 (19:47 +0000)]
Merge "Revert "Changing initial and default focus behavior""

7 years agoShow friction icons in Saved Networks list.
Sundeep Ghuman [Wed, 15 Mar 2017 23:03:55 +0000 (16:03 -0700)]
Show friction icons in Saved Networks list.

Bug: b/34802842
Test: $ make SettingsFunctionalTests -j40
$ adb install -r
$ {OUT}/data/app/SettingsFunctionalTests/SettingsFunctionalTests.apk
$ adb shell am instrument -w \
    'android.settings.functional/android.support.test.runner.AndroidJUnitRunner'

Change-Id: I0d6aedad2aabb40ef532283a755cb5c954e8139d

7 years agoFix broken AccessPointTests.
Sundeep Ghuman [Thu, 16 Mar 2017 03:09:47 +0000 (20:09 -0700)]
Fix broken AccessPointTests.

Bug: None
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: I5d5da5e7e0faf1c124816f0dd8ab5f0249e54637

7 years agoBetter call emulation for DevicePolicyManagerTest
Robin Lee [Fri, 17 Mar 2017 12:50:24 +0000 (12:50 +0000)]
Better call emulation for DevicePolicyManagerTest

Let's have several separate contexts instead of doing strange things
with package names in one monolithic context representing every single
user on the device at once, sometimes multiple times in the same call.

Syntax looks like:

        runAsCaller(callerContext, dpms, (dpm) -> {
            assertSomething(dpm.doSomething(caller, param));
        });

When a caller calls into DevicePolicyManager here's what happens:

PRE

- a new DevicePolicyManager is created with the caller context
- service context callingIdentity is saved
- the callingUid, callingPid, and callingPermissions are added to the service context

TEST

- client-side test code interacts with DevicePolicyManager using the caller context
- server-side coder under test runs as DevicePolicyManagerService using the service context

POST

- service context callingIdentity is restored to what it was before the test.

This should be easier to reason about.

Test: runtest -x frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases
Change-Id: I148e3f298b0a958639ce261e9cf91f6eb49fae4d