OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Fixed an issue where the collapsing was called on the wrong thread"
TreeHugger Robot [Sat, 24 Feb 2018 01:52:41 +0000 (01:52 +0000)]
Merge "Fixed an issue where the collapsing was called on the wrong thread"

6 years agoMerge "Update wear default app icon color."
Andrew Zeng [Sat, 24 Feb 2018 01:36:50 +0000 (01:36 +0000)]
Merge "Update wear default app icon color."

6 years agoMerge "Fixed the actions for the ambient layout"
Selim Cinek [Sat, 24 Feb 2018 01:28:54 +0000 (01:28 +0000)]
Merge "Fixed the actions for the ambient layout"

6 years agoMerge "Implement issue #73301635: Ability to extract device configuration"
TreeHugger Robot [Sat, 24 Feb 2018 01:21:34 +0000 (01:21 +0000)]
Merge "Implement issue #73301635: Ability to extract device configuration"

6 years agoMerge "Update the Bluetooth Active Device state in the Device Manager"
TreeHugger Robot [Sat, 24 Feb 2018 01:07:45 +0000 (01:07 +0000)]
Merge "Update the Bluetooth Active Device state in the Device Manager"

6 years agoMerge "Fix strict mode violation"
Mike Ma [Sat, 24 Feb 2018 00:50:29 +0000 (00:50 +0000)]
Merge "Fix strict mode violation"

6 years agoMerge "Added CTS test cases for getNetworkId() and getSystemId()"
TreeHugger Robot [Sat, 24 Feb 2018 00:37:08 +0000 (00:37 +0000)]
Merge "Added CTS test cases for getNetworkId() and getSystemId()"

6 years agoMerge "Improve reporting of bucketing reason"
TreeHugger Robot [Sat, 24 Feb 2018 00:24:03 +0000 (00:24 +0000)]
Merge "Improve reporting of bucketing reason"

6 years agoFixed the actions for the ambient layout
Selim Cinek [Fri, 23 Feb 2018 23:22:04 +0000 (15:22 -0800)]
Fixed the actions for the ambient layout

Change-Id: I9620144cf20f0f2ee6b0d0fa3cc6e81778357db3
Fixes: 73819192
Test: add ambient notification, observe no action overlap

6 years agoMerge "SettingsLib: Move DefaultAppInfo CandidateInfo from Settings"
TreeHugger Robot [Fri, 23 Feb 2018 23:31:47 +0000 (23:31 +0000)]
Merge "SettingsLib: Move DefaultAppInfo CandidateInfo from Settings"

6 years agoImplement issue #73301635: Ability to extract device configuration
Dianne Hackborn [Tue, 20 Feb 2018 18:31:02 +0000 (10:31 -0800)]
Implement issue #73301635: Ability to extract device configuration

am get-config can now return its information as a protobuf,
so that we have a nice machine readable representation of the
configuration available.  This is available through the new
"--proto" option.

Also add a new "--device" option which will include additional
device configuration information in the output.

Defined the protos to contain all of this information.  Updated
Configuration to generate everything it should in the proto.

The output has been changed so that configuration history
will not be returned unless you specify the --days option.

Bug: 73301635
Test: Booted, ran, output

Change-Id: I074b92b45d6b1da1c1a499080db9e006d12b9fea

6 years agoMerge "Add userRestriction attribute in Location settings injector."
TreeHugger Robot [Fri, 23 Feb 2018 23:18:47 +0000 (23:18 +0000)]
Merge "Add userRestriction attribute in Location settings injector."

6 years agoFixed an issue where the collapsing was called on the wrong thread
Selim Cinek [Fri, 23 Feb 2018 19:19:45 +0000 (11:19 -0800)]
Fixed an issue where the collapsing was called on the wrong thread

With work profiles, the collapsing of the panel would happen on the wrong
thread.

Change-Id: I617465d9b285d456162bb7d9ed6ee27659ab1134
Fixes: 73728329
Test: unlock work profile from work profile notification

6 years agoMerge "Extrating out icon generation logic so that it can customized"
Sunny Goyal [Fri, 23 Feb 2018 23:12:08 +0000 (23:12 +0000)]
Merge "Extrating out icon generation logic so that it can customized"

6 years agoMerge "Add information of microphone on peripheral for mic enumeration APIs."
TreeHugger Robot [Fri, 23 Feb 2018 22:55:50 +0000 (22:55 +0000)]
Merge "Add information of microphone on peripheral for mic enumeration APIs."

6 years agoMerge changes from topic "wipedata"
TreeHugger Robot [Fri, 23 Feb 2018 22:54:44 +0000 (22:54 +0000)]
Merge changes from topic "wipedata"

* changes:
  Rename WipeDataWithReason API to wipeData.
  Block adb from changing certain settings value when corresponding user restriction is on.

6 years agoMerge "Add timestamp for events pulled by companision service."
TreeHugger Robot [Fri, 23 Feb 2018 22:33:21 +0000 (22:33 +0000)]
Merge "Add timestamp for events pulled by companision service."

6 years agoMerge "Add support for hot launch in App launch test."
Gopinath Elanchezhian [Fri, 23 Feb 2018 22:20:22 +0000 (22:20 +0000)]
Merge "Add support for hot launch in App launch test."

6 years agoMerge "Alignment of clock and shade"
Lucas Dupin [Fri, 23 Feb 2018 22:11:06 +0000 (22:11 +0000)]
Merge "Alignment of clock and shade"

6 years agoUpdate the Bluetooth Active Device state in the Device Manager
Pavlin Radoslavov [Wed, 7 Feb 2018 00:14:00 +0000 (16:14 -0800)]
Update the Bluetooth Active Device state in the Device Manager

The Bluetooth Active Device state should be updated for all
CachedBluetoothDevice entries.
This should be done inside CachedBluetoothDeviceManager in SettingsLib
instead of BluetoothDeviceUpdater in the Settings app.

Also:
 * Added a new CachedBluetoothDeviceManagerTest.java unit test
 * Added a new method CachedBluetoothDevice.isActiveDevice()
   for testing.

Bug: 72316092
Test: Manual - two headsets and switching the active device
      Unit tests - "make RunSettingsLibRoboTests -j 40"
Change-Id: Ic3fbf667c66ed2de8e5c3352bc1ffd829a9052cf

6 years agoMerge "Factor out telephony permission checks into a helper class." am: fc5d8c8f31...
Jeff Davidson [Fri, 23 Feb 2018 21:47:01 +0000 (21:47 +0000)]
Merge "Factor out telephony permission checks into a helper class." am: fc5d8c8f31 am: 5275c0b123
am: 644c763b0d  -s ours

Change-Id: I151703d7cb39b7dca2cbe10a572de5c3c4f00826

6 years agoMerge "Guard against updateDoze after detach"
TreeHugger Robot [Fri, 23 Feb 2018 21:41:49 +0000 (21:41 +0000)]
Merge "Guard against updateDoze after detach"

6 years agoMerge "Factor out telephony permission checks into a helper class." am: fc5d8c8f31
Jeff Davidson [Fri, 23 Feb 2018 21:33:07 +0000 (21:33 +0000)]
Merge "Factor out telephony permission checks into a helper class." am: fc5d8c8f31
am: 5275c0b123

Change-Id: Ieedbcc2f40f70beb43cfb4d0e677d72f6b3ff8f5

6 years agoMerge "Frameworks: Remove bogus test method" am: c65d52ff78 am: 8120e8616b
Andreas Gampe [Fri, 23 Feb 2018 21:26:02 +0000 (21:26 +0000)]
Merge "Frameworks: Remove bogus test method" am: c65d52ff78 am: 8120e8616b
am: dd531adbd2

Change-Id: I0317dedfe5c20c54551f72e6c691dea67dde83ca

6 years agoMerge "Factor out telephony permission checks into a helper class."
Jeff Davidson [Fri, 23 Feb 2018 21:24:36 +0000 (21:24 +0000)]
Merge "Factor out telephony permission checks into a helper class."
am: fc5d8c8f31

Change-Id: I25cda3c74bb15d5a50414ecb5dbf788ce2d32828

6 years agoMerge "Use PooledLambda in print code"
TreeHugger Robot [Fri, 23 Feb 2018 21:21:20 +0000 (21:21 +0000)]
Merge "Use PooledLambda in print code"

6 years agoMerge "Use android reinterpret hash for float as it is faster."
TreeHugger Robot [Fri, 23 Feb 2018 21:20:20 +0000 (21:20 +0000)]
Merge "Use android reinterpret hash for float as it is faster."

6 years agoMerge "Allow certificates to be stored in the carrier app whitelist"
Gil O'Neil [Fri, 23 Feb 2018 21:18:40 +0000 (21:18 +0000)]
Merge "Allow certificates to be stored in the carrier app whitelist"

6 years agoUpdate wear default app icon color.
Andrew Zeng [Thu, 8 Feb 2018 19:40:24 +0000 (11:40 -0800)]
Update wear default app icon color.

Change-Id: I8c1013d8b7a4de4f4646f4c394a57d4ccde38ed6

6 years agoMerge "Revert "Revert "Log the apk optimization state in the MetricsLogger"""
Zhi An Ng [Fri, 23 Feb 2018 21:15:32 +0000 (21:15 +0000)]
Merge "Revert "Revert "Log the apk optimization state in the MetricsLogger"""

6 years agoMerge "Frameworks: Remove bogus test method" am: c65d52ff78
Andreas Gampe [Fri, 23 Feb 2018 21:15:06 +0000 (21:15 +0000)]
Merge "Frameworks: Remove bogus test method" am: c65d52ff78
am: 8120e8616b

Change-Id: I1dd4cb24ed7c5afdb9185bacabf7b0a3e8f3a7d8

6 years agoMerge "Frameworks: Remove bogus test method"
Andreas Gampe [Fri, 23 Feb 2018 21:08:46 +0000 (21:08 +0000)]
Merge "Frameworks: Remove bogus test method"
am: c65d52ff78

Change-Id: Iee4a75368b1f8d0cc9cc0594126f29acb0b5a5b7

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 23 Feb 2018 21:08:38 +0000 (21:08 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Provide the option to disable fading the pattern."
TreeHugger Robot [Fri, 23 Feb 2018 21:05:23 +0000 (21:05 +0000)]
Merge "Provide the option to disable fading the pattern."

6 years agoExtrating out icon generation logic so that it can customized
Sunny Goyal [Fri, 23 Feb 2018 19:46:18 +0000 (11:46 -0800)]
Extrating out icon generation logic so that it can customized

Test: Created jar and varified launcher is works properly
Change-Id: Ic07083d6394bb65d857b665fd86fa67f6323ed7b

6 years agoMerge "Add AnimatedImageDrawable.getLoopCount"
Leon Scroggins [Fri, 23 Feb 2018 20:39:21 +0000 (20:39 +0000)]
Merge "Add AnimatedImageDrawable.getLoopCount"

6 years agoMerge "Make mapIntentToUri understand meta-data hookup"
TreeHugger Robot [Fri, 23 Feb 2018 20:25:56 +0000 (20:25 +0000)]
Merge "Make mapIntentToUri understand meta-data hookup"

6 years agoMerge "Modify framework default app icon for Wear."
TreeHugger Robot [Fri, 23 Feb 2018 20:25:36 +0000 (20:25 +0000)]
Merge "Modify framework default app icon for Wear."

6 years agoMerge "GnssLocationProvider metrics race condition fix"
TreeHugger Robot [Fri, 23 Feb 2018 20:18:28 +0000 (20:18 +0000)]
Merge "GnssLocationProvider metrics race condition fix"

6 years agoMerge "Revert "Disabled presubmit for flakey test""
TreeHugger Robot [Fri, 23 Feb 2018 20:18:23 +0000 (20:18 +0000)]
Merge "Revert "Disabled presubmit for flakey test""

6 years agoSettingsLib: Move DefaultAppInfo CandidateInfo from Settings
Dake Gu [Wed, 21 Feb 2018 01:03:37 +0000 (17:03 -0800)]
SettingsLib: Move DefaultAppInfo CandidateInfo from Settings

Bug: 3600711
Test: DefaultAppInfoTest moved from SettingsLib
      m RunSettingsLibRoboTests
Change-Id: Iba7f60aacaf97774e8f120cccaacd1d1389fd227

6 years agoMerge "Factor out telephony permission checks into a helper class."
Jeff Davidson [Fri, 23 Feb 2018 20:00:15 +0000 (20:00 +0000)]
Merge "Factor out telephony permission checks into a helper class."

6 years agoMerge "Update call to null out GrVkAlloc in VulkanManager"
TreeHugger Robot [Fri, 23 Feb 2018 19:53:17 +0000 (19:53 +0000)]
Merge "Update call to null out GrVkAlloc in VulkanManager"

6 years agoAdd support for hot launch in App launch test.
gopinath [Wed, 21 Feb 2018 01:21:18 +0000 (17:21 -0800)]
Add support for hot launch in App launch test.

force-stop-app option is added to control hot launch and
cold launch.

Bug: b/73091210

Test:
am instrument -w -r   -e debug false -e launch_directory /sdcard
-e apps "Calculator^Calculator|Clock^Clock" -e trial_launch true
-e log false -e timeout_msec 300000 -e force-stop-app false
-e launch_order CYCLIC -e simpleperf_cmd "simpleperf stat -a"
-e launch_iterations 10 com.android.tests.applaunch/android.test.InstrumentationTestRunner

Change-Id: I4b0f7a61c46e8091e69cad9fa65b5b34f680252d

6 years agoMerge "Frameworks: Remove bogus test method"
Treehugger Robot [Fri, 23 Feb 2018 19:28:55 +0000 (19:28 +0000)]
Merge "Frameworks: Remove bogus test method"

6 years agoUse android reinterpret hash for float as it is faster.
Yangster-mac [Fri, 23 Feb 2018 19:11:36 +0000 (11:11 -0800)]
Use android reinterpret hash for float as it is faster.

Test: statsd test
Change-Id: I593edac1d7dcd0c5e84195602b42b7c6c3072a38

6 years agoAlignment of clock and shade
Lucas Dupin [Mon, 19 Feb 2018 03:39:32 +0000 (19:39 -0800)]
Alignment of clock and shade

Test: visual
Change-Id: If7ff8c34a5053d5df8f6dc38c53cc728fef89ede
Fixes: 72968018
Fixes: 72417398
Fixes: 73087486
Fixes: 72566197

6 years agoUse PooledLambda in print code
Eugene Susla [Tue, 13 Feb 2018 00:17:26 +0000 (16:17 -0800)]
Use PooledLambda in print code

This replaces the usage of handler message types with PooledLambda

Test: atest CtsPrintTestCases
Change-Id: I19b01278b67b5fe18d48a2e0bb8300bbe1413a63

6 years agoFix strict mode violation
Mike Ma [Fri, 23 Feb 2018 19:07:53 +0000 (11:07 -0800)]
Fix strict mode violation

Change-Id: I3c6391c52f06e4bb94162f8def1ab9b5f4c747fc
Fixes: 73549195
Test: KernelWakelockReaderTest

6 years agoMerge "Use PooledLambda in A11yManagerService"
Eugene Susla [Fri, 23 Feb 2018 19:06:14 +0000 (19:06 +0000)]
Merge "Use PooledLambda in A11yManagerService"

6 years agoMerge "Move performSurfacePlacement after tryStartExitingAnimation"
Chavi Weingarten [Fri, 23 Feb 2018 19:04:55 +0000 (19:04 +0000)]
Merge "Move performSurfacePlacement after tryStartExitingAnimation"

6 years agoMerge "MediaCas: use HidlMemory to avoid handle leaks"
TreeHugger Robot [Fri, 23 Feb 2018 19:04:11 +0000 (19:04 +0000)]
Merge "MediaCas: use HidlMemory to avoid handle leaks"

6 years agoAdd timestamp for events pulled by companision service.
Yangster-mac [Thu, 22 Feb 2018 18:00:45 +0000 (10:00 -0800)]
Add timestamp for events pulled by companision service.

Test: statsd cts test
Change-Id: I2658dba747ff93a120c50b5294f696918588e9fe

6 years agoMerge "Statsd alerts can inform subscribers probabilistically"
TreeHugger Robot [Fri, 23 Feb 2018 18:50:16 +0000 (18:50 +0000)]
Merge "Statsd alerts can inform subscribers probabilistically"

6 years agoMerge "camera: Add OisSamples synthetic key"
TreeHugger Robot [Fri, 23 Feb 2018 18:47:56 +0000 (18:47 +0000)]
Merge "camera: Add OisSamples synthetic key"

6 years agoMerge "Support bmgr wipe also for full backup apps"
Michal Karpinski [Fri, 23 Feb 2018 18:47:03 +0000 (18:47 +0000)]
Merge "Support bmgr wipe also for full backup apps"

6 years agoImprove reporting of bucketing reason
Amith Yamasani [Mon, 19 Feb 2018 06:23:00 +0000 (22:23 -0800)]
Improve reporting of bucketing reason

Keep track of main and sub reason for bucket change

Bug: 73178753
Test: atest AppIdleHistoryTests
Change-Id: I4936281ac06046bb5ffed9f3306efa24c7fd47ab

6 years agoMerge "Always finish activity when moving to a destroyed state."
Bryce Lee [Fri, 23 Feb 2018 18:38:37 +0000 (18:38 +0000)]
Merge "Always finish activity when moving to a destroyed state."

6 years agoMerge "Don't wait keyguard drawn if device has no keyguard" am: a6e5165b2c am: 94ec9e3e4b
Jorim Jaggi [Fri, 23 Feb 2018 18:33:52 +0000 (18:33 +0000)]
Merge "Don't wait keyguard drawn if device has no keyguard" am: a6e5165b2c am: 94ec9e3e4b
am: 239d74fa19

Change-Id: I19abbe828a0004888143be02fd6ca834d8013a64

6 years agoMerge "New APIs to let app developers manage autofill semantics when reusing views."
TreeHugger Robot [Fri, 23 Feb 2018 18:26:36 +0000 (18:26 +0000)]
Merge "New APIs to let app developers manage autofill semantics when reusing views."

6 years agoMerge "Don't wait keyguard drawn if device has no keyguard" am: a6e5165b2c
Jorim Jaggi [Fri, 23 Feb 2018 18:20:35 +0000 (18:20 +0000)]
Merge "Don't wait keyguard drawn if device has no keyguard" am: a6e5165b2c
am: 94ec9e3e4b

Change-Id: I1391b28a04611f4e4445d53d3323fad8fb98528f

6 years agoMerge "Follow up to Iff58235b5bdfd0d49df259a91b05e54e3864f41c"
Adrian Roos [Fri, 23 Feb 2018 18:19:49 +0000 (18:19 +0000)]
Merge "Follow up to Iff58235b5bdfd0d49df259a91b05e54e3864f41c"

6 years agoUpdate call to null out GrVkAlloc in VulkanManager
Greg Daniel [Fri, 23 Feb 2018 18:16:12 +0000 (13:16 -0500)]
Update call to null out GrVkAlloc in VulkanManager

Test: manual testing

Change-Id: Ia0af7526cad2dc4614afc73c31bf07e25890c677

6 years agoMerge "Make SuggestionController guard RuntimeException."
Zhizhi Liu [Fri, 23 Feb 2018 18:12:19 +0000 (18:12 +0000)]
Merge "Make SuggestionController guard RuntimeException."

6 years agoModify framework default app icon for Wear.
Andrew Zeng [Fri, 19 Jan 2018 19:07:37 +0000 (11:07 -0800)]
Modify framework default app icon for Wear.

Bug: 67707364

Change-Id: I7e88d8822fc041c2187fba76770b98bde6ed22fd
(cherry picked from commit 8299f13e4d63a5ae2df3ede43bb740b496385247)
(cherry picked from commit b35da3135c797722a04f4cbf9e1f5fa7e27b993f)

6 years agoMerge "Don't wait keyguard drawn if device has no keyguard"
Jorim Jaggi [Fri, 23 Feb 2018 18:08:13 +0000 (18:08 +0000)]
Merge "Don't wait keyguard drawn if device has no keyguard"
am: a6e5165b2c

Change-Id: I8e198596eaec74fb022530544adad8efa0aadf52

6 years agoAdd information of microphone on peripheral for mic enumeration APIs.
jiabin [Fri, 23 Feb 2018 00:21:53 +0000 (16:21 -0800)]
Add information of microphone on peripheral for mic enumeration APIs.

Bug: 64038649
Test: run cts
Change-Id: If66747359b6544d239898fc16fbf1d99002b6402

6 years agoGuard against updateDoze after detach
Erik Wolsheimer [Wed, 15 Nov 2017 20:08:32 +0000 (12:08 -0800)]
Guard against updateDoze after detach

Bug: 68815183
Change-Id: I147f04af4ea1af59f95757a14de3c34021e048a5

6 years agoMerge "DisplayCutout: Let dreams always extend under the cutout"
TreeHugger Robot [Fri, 23 Feb 2018 17:53:32 +0000 (17:53 +0000)]
Merge "DisplayCutout: Let dreams always extend under the cutout"

6 years agoMerge "STOPSHIP: Roll forward: Add UidCpuPower global setting"
TreeHugger Robot [Fri, 23 Feb 2018 17:49:17 +0000 (17:49 +0000)]
Merge "STOPSHIP: Roll forward: Add UidCpuPower global setting"

6 years agoMerge "Fixed service state CTS test failing" am: ab5bc3be50 am: f535f8108d
Jack Yu [Fri, 23 Feb 2018 17:46:03 +0000 (17:46 +0000)]
Merge "Fixed service state CTS test failing" am: ab5bc3be50 am: f535f8108d
am: 09da9870d0

Change-Id: Iac059a0df9bf6c3920327101d4423ef9acc60ebb

6 years agoMerge "Revert "Add "Unlocked device required" parameter to keys""
TreeHugger Robot [Fri, 23 Feb 2018 17:42:45 +0000 (17:42 +0000)]
Merge "Revert "Add "Unlocked device required" parameter to keys""

6 years agoMerge "Support forced Night Display auto mode"
Christine Franks [Fri, 23 Feb 2018 17:39:21 +0000 (17:39 +0000)]
Merge "Support forced Night Display auto mode"

6 years agoMerge "Fixed service state CTS test failing" am: ab5bc3be50
Jack Yu [Fri, 23 Feb 2018 17:27:20 +0000 (17:27 +0000)]
Merge "Fixed service state CTS test failing" am: ab5bc3be50
am: f535f8108d

Change-Id: Ia3e1e58acda7aa3099c93f1f6c2bef9f53828e4d

6 years agoMerge "Make the dump of the window hierarchy more readable"
Jorim Jaggi [Fri, 23 Feb 2018 17:27:15 +0000 (17:27 +0000)]
Merge "Make the dump of the window hierarchy more readable"

6 years agoMerge "Ensure keyguard slice use correct colors"
Lucas Dupin [Fri, 23 Feb 2018 17:21:27 +0000 (17:21 +0000)]
Merge "Ensure keyguard slice use correct colors"

6 years agoMerge "Fixed service state CTS test failing"
Jack Yu [Fri, 23 Feb 2018 17:18:49 +0000 (17:18 +0000)]
Merge "Fixed service state CTS test failing"
am: ab5bc3be50

Change-Id: I38fc94d366a16acee810fd9336750044508cf766

6 years agoMerge "In the spirit of writing stuff down"
TreeHugger Robot [Fri, 23 Feb 2018 17:00:52 +0000 (17:00 +0000)]
Merge "In the spirit of writing stuff down"

6 years agoMerge "Removed executable flag for Java source files" am: 9a7c651196 am: 9304dc9f36
Pavlin Radoslavov [Fri, 23 Feb 2018 16:48:47 +0000 (16:48 +0000)]
Merge "Removed executable flag for Java source files" am: 9a7c651196 am: 9304dc9f36
am: 38c41a938f

Change-Id: I6b85de3cb0d55bf3dc88ecd39b31228c43e9ab01

6 years agoMerge "Make it possible to construct a RecoverySession"
Robert Berry [Fri, 23 Feb 2018 16:40:36 +0000 (16:40 +0000)]
Merge "Make it possible to construct a RecoverySession"

6 years agoMerge "Removed executable flag for Java source files" am: 9a7c651196
Pavlin Radoslavov [Fri, 23 Feb 2018 16:35:36 +0000 (16:35 +0000)]
Merge "Removed executable flag for Java source files" am: 9a7c651196
am: 9304dc9f36

Change-Id: I3123d49a045b91be0b1a22531110b069dfcf8890

6 years agoAlways finish activity when moving to a destroyed state.
Bryce Lee [Fri, 16 Feb 2018 22:34:32 +0000 (14:34 -0800)]
Always finish activity when moving to a destroyed state.

There is a possibility that an activity will not be marked as
finishing when its state is moved to the destroying/destroyed state.
This opens up the possibility of future lifecycle actions that are
gated by the finishing flag. As a result, errant signals can be
sent to the client for a destroyed activity.

This changelist addresses the issue by limiting interaction with
ActivityRecord's state to accessors. When the state is changed to
destroyed or destroying, the activity is subsequently marked as
finished.

Bug: 71506345
Test: atest FrameworksServicesTests:com.android.server.am.ActivityRecordTests#testFinishingAfterDestroying
Test: atest FrameworksServicesTests:com.android.server.am.ActivityRecordTests#testFinishingAfterDestroyed
Change-Id: Iae8766201477103c9d632a16ecb9f6e95f796a45

6 years agoMerge "Name specific app for rapid data usage."
Jeff Sharkey [Fri, 23 Feb 2018 16:28:58 +0000 (16:28 +0000)]
Merge "Name specific app for rapid data usage."

6 years agoName specific app for rapid data usage.
Jeff Sharkey [Wed, 21 Feb 2018 00:24:55 +0000 (17:24 -0700)]
Name specific app for rapid data usage.

When a single app is responsible for more than half of the data usage
that caused us to trigger a "rapid usage" alert, name that app in the
notification.  Tests to verify.

Move NPMS->NSS direct calls to "Internal" pattern, following
best-practices to avoid unnecessary AIDL exposure.

Remove 3G/4G split mobile plan support, which has been deprecated for
years and was never supported in a shipping product.

Move MultipathPolicyTracker in tree to reflect its package name.

Test: bit FrameworksNetTests:*
Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Bug: 69263587642215057343108072746951
Exempt-From-Owner-Approval: approved in previous PS
Change-Id: I3e4ec1ae2222d51b232f76f32faca93d4f8cd272

6 years agoMerge changes Icdb40ee3,I4c239844
Jeff Sharkey [Fri, 23 Feb 2018 16:26:29 +0000 (16:26 +0000)]
Merge changes Icdb40ee3,I4c239844

* changes:
  Knobs for connectivity experiments.
  Mechanical refactoring to improve job dumping.

6 years agoMerge "Create print job when print activity starts"
Philip P. Moltmann [Fri, 23 Feb 2018 16:24:41 +0000 (16:24 +0000)]
Merge "Create print job when print activity starts"

6 years agoMerge "Removed executable flag for Java source files"
Pavlin Radoslavov [Fri, 23 Feb 2018 16:23:45 +0000 (16:23 +0000)]
Merge "Removed executable flag for Java source files"
am: 9a7c651196

Change-Id: Ia14ec1352400d603e51a3eaadd6d3910a10b6dc2

6 years agoMerge "Don't wait keyguard drawn if device has no keyguard"
Jorim Jaggi [Fri, 23 Feb 2018 16:06:59 +0000 (16:06 +0000)]
Merge "Don't wait keyguard drawn if device has no keyguard"

6 years agoMove performSurfacePlacement after tryStartExitingAnimation
chaviw [Fri, 16 Feb 2018 18:53:24 +0000 (10:53 -0800)]
Move performSurfacePlacement after tryStartExitingAnimation

In performSurfacePlacement, there's downstream code to update
the navbar color based on whether the IME is visible. However, IME
is only marked not visible once tryStartExitingAnimation is called.
Therefore, tryStartExitingAnimation needs to happen before the
attempt to update the navbar color so it can know that the IME
is going to be hidden.

Change-Id: I3a337d1b3a2caea8694204111f778924d2fd3ec0
Fixes: 71877162
Test: After closing IME in dialer, navbar color returns to original.
Test: go/wm-smoke

6 years agoRename WipeDataWithReason API to wipeData.
yuemingw [Thu, 22 Feb 2018 17:29:10 +0000 (17:29 +0000)]
Rename WipeDataWithReason API to wipeData.

Bug: 71818126
Test: run cts --module DevicePolicyManager -t com.android.cts.devicepolicy.ManagedProfileTest#testWipeDataWithReason
Change-Id: I5e2e445fffeebc0d15cb312e3679181f8934fc76

6 years agoBlock adb from changing certain settings value when corresponding user
yuemingw [Tue, 30 Jan 2018 17:27:54 +0000 (17:27 +0000)]
Block adb from changing certain settings value when corresponding user
restriction is on.

Check calling uid in isSettingRestrictedForUser(which is called by settingsprovider),
 and only allow system_uid when certain user restriction is on, so that user won't be
able to change these settings with adb:
Settings.Secure.LOCATION_MODE,
Settings.Secure.PROVIDERS_ALLOWED,
Settings.System.SCREEN_BRIGHTNESS,
Settings.System.SCREEN_BRIGHTNESS_MODE,
Settings.System.SCREEN_OFF_TIMEOUT,
Settings.Global.AUTO_TIME,
Settings.Global.AUTO_TIME_ZONE.
This check also prevents 3rd party apps from modifying system settings value
when corresponding user restriction is on.
In addition, any attempt to change AUTO_TIME will also go through the check
for dpm.getAutoTimeRequired().

Test: manually by running the adb command with restriction set and not set
Bug: 72549013
Bug: 72548203
Bug: 72548533
Bug: 72686466
Bug: 72687105
Bug: 72940551
Bug: 72940562

Change-Id: Idfe0f1758d57958b836207ab3d55b2a292e1ae0d

6 years agoMerge "Fixed service state CTS test failing"
Treehugger Robot [Fri, 23 Feb 2018 15:41:32 +0000 (15:41 +0000)]
Merge "Fixed service state CTS test failing"

6 years agoIn the spirit of writing stuff down
Jason Monk [Thu, 22 Feb 2018 19:11:58 +0000 (14:11 -0500)]
In the spirit of writing stuff down

Write some stuff down

Test: none
Change-Id: I9997db5f9c4d75b0c066f002f234dbeaec6932a4

6 years agoSupport bmgr wipe also for full backup apps
Michal Karpinski [Fri, 23 Feb 2018 15:16:04 +0000 (15:16 +0000)]
Support bmgr wipe also for full backup apps

Previously we'd only really clear data for K/V packages,
now we consult with the journal of ever backed apps.

Bug: 28405555
Test: manual (adb shell bmgr wipe com.google.android.gms/.backup.BackupTransportService com.android.wallpaperbackup
      after adb shell bmgr backupnow --all)
Test: m -j RunFrameworksServicesRoboTests
Test: runtest -p com.android.server.backup frameworks-services
Change-Id: If99cb2c8ab9ddc05386d634818f4585ec47efc00

6 years agoMerge "Fixes for inflating AnimatedImageDrawable"
Leon Scroggins [Fri, 23 Feb 2018 14:45:54 +0000 (14:45 +0000)]
Merge "Fixes for inflating AnimatedImageDrawable"

6 years agoAdd AnimatedImageDrawable.getLoopCount
Leon Scroggins III [Fri, 23 Feb 2018 14:38:12 +0000 (09:38 -0500)]
Add AnimatedImageDrawable.getLoopCount

Bug: 73791004
Test: Id0335f15fdf0ebdc16d1edcabca547b9399c506f
Change-Id: I1c048196e45b91a1039c1f89e2176592765d2967

6 years agoMerge "updateNonSystemOverlayWindowsVisibilityIfNeeded on relayoutWindow"
Wale Ogunwale [Fri, 23 Feb 2018 14:25:25 +0000 (14:25 +0000)]
Merge "updateNonSystemOverlayWindowsVisibilityIfNeeded on relayoutWindow"

6 years agoMake mapIntentToUri understand meta-data hookup
Jason Monk [Fri, 23 Feb 2018 13:59:31 +0000 (08:59 -0500)]
Make mapIntentToUri understand meta-data hookup

Test: uiservicestests
Bug: 73741418
Change-Id: I399476b94d59996828405d7fbcc4f6aa532f49d8

6 years agoMerge "Removed executable flag for Java source files"
Treehugger Robot [Fri, 23 Feb 2018 13:38:29 +0000 (13:38 +0000)]
Merge "Removed executable flag for Java source files"

6 years agoMerge "[Magnifier-25] Fix race condition after #dismiss"
TreeHugger Robot [Fri, 23 Feb 2018 12:50:37 +0000 (12:50 +0000)]
Merge "[Magnifier-25] Fix race condition after #dismiss"