Commit Graph

309172 Commits

Author SHA1 Message Date
Fyodor Kupolov
b76e0fdf1e Read SystemConfig on a worker thread
Also added lazy accessor for mBackgroundLaunchBroadcasts to give more
time for SystemConfig init to finish.

Test: manual
Bug: 34809967
Change-Id: Iaba0ac61714d94e72d571f33cd22d8700b89bb31
2017-01-30 14:30:55 -08:00
Chad Brower
f180a9f56c Merge "Update the accessibility gesture recognition logic, using prior assumptions about allowed gesture set to increase accuracy." 2017-01-30 22:25:28 +00:00
Mady Mellor
0a66e0791d Fix NotificationGuts tests
- NPE’s ‘cause there was no interaction listener set in the tests, added
  this to test set up
- Failures with saving importance because closeControls no longer saves
  any changes, it just closes the controls now. Updated those tests to
  use saveImportance instead.
- Removed the test ensuring that closeControls wouldn’t save importance
  if it was passed save = false, since closeControls no longer does that.

Test: NotificationGuts tests no longer fail (runtest systemui)
Change-Id: I3251f4f379654f4cc9eb3a506b722e515c6fe971
2017-01-30 14:06:22 -08:00
John Reck
3afd63778e Switch how destroyHardwareResources works
destroyHardwareResources will now only force-destroy
the specific node it was called on, which are only
ever the root nodes. Rely on onRemovedFromTree()
to clean up resources for all other nodes.

Bug: 34736819

Test: RenderNode.multiTreeValidity passes, manually
verified fixes b/34736819

Change-Id: I1c275ad6a98b63bf50f265602f09bffe3e1f169b
2017-01-30 13:29:26 -08:00
Brad Ebinger
f477979bf9 Adds @hide permission granting API for ImsServices
Adds the @hide API to grant ImsServices default permissions
using the PackageManager and DefaultPermissionGrantPolicy APIs.

Test: Manual
Bug: 32460405
Change-Id: Ia143ede42623b4c2203261fc6e83624d73c478f1
2017-01-30 13:12:09 -08:00
Etan Cohen
275f323e86 [AWARE] Minor hardening of manager.
Callbacks are possible even if no listener was defined.
Perform a check and print error (as opposed to crashing).

Bug: 32315992
Test: unit-tests + integration tests passing
Change-Id: Ia5eb81448ace6b88abcd448e4f378da6530ac630
2017-01-30 13:09:41 -08:00
Shukang Zhou
bb44e42de9 [Frameworks] Add an 'am' cmd option to enable streaming in profiling.
Add option '--streaming' to 'am start' and 'am profile' commands.
If the option is given, the output of method trace profiling
will be streamed into the specified file, so the output is no
longer limited by the buffer size.

Test: m -j48 test-art-host;
m -j48 ART_TEST_TRACE=true ART_TEST_TRACE_STREAM=true test-art-host;
I also tested manually. Tried all 8 combinations of
    sampling/instrumention
    streaming/non-streaming
    'am start --start-profiler' / 'am profile start'
The output files are all in expected shape.

Bug: 33300765

Merged-In: I8a5136a1c7330c8260b7c6c8da63f42a73aee275

Change-Id: I8a5136a1c7330c8260b7c6c8da63f42a73aee275
2017-01-30 13:07:40 -08:00
TreeHugger Robot
ad3190becc Merge "Allow ephemeral apps to access SOUND_EFFECTS_ENABLED" 2017-01-30 20:43:18 +00:00
Torbjorn Eklund
977ebe292e Merge "SFR sims should treat Spain as roaming" am: 06aed6950d am: e5f8e6088e am: 2cf376459b
am: 95451d5390

Change-Id: If9f4462435fd2adb81ad7b166f512550c6497e52
2017-01-30 20:23:03 +00:00
Torbjorn Eklund
95451d5390 Merge "SFR sims should treat Spain as roaming" am: 06aed6950d am: e5f8e6088e
am: 2cf376459b

Change-Id: I226139ecda3fea73e32699ccc98c4e2a334ded8d
2017-01-30 20:18:23 +00:00
Torbjorn Eklund
2cf376459b Merge "SFR sims should treat Spain as roaming" am: 06aed6950d
am: e5f8e6088e

Change-Id: Ifd7e98a0a1545f056128149e41fdfb35d479e54c
2017-01-30 20:14:52 +00:00
Torbjorn Eklund
e5f8e6088e Merge "SFR sims should treat Spain as roaming"
am: 06aed6950d

Change-Id: I9500a419373ad590fddc31b638e37af05ac12830
2017-01-30 20:10:23 +00:00
Calin Juravle
1ba6b5a076 Merge changes Ic07126bf,If3a4b77f,I8b011207,I18fde62a
* changes:
  Save package dex usage info after secondary dex reconciliation
  Compile secondary dex files during background dexopt job
  Add a shell command to force the background dexopt job
  A bit more refactoring in BackgroundDexOptService
2017-01-30 20:07:21 +00:00
Vinod Krishnan
dfcf4fc29a Remove getAppsUsingPermisisons
- This was meant to be used in Clockwork but it has been removd.

Bug: 33662137

Change-Id: I89b43c0ab47e3d8fe1f5f56fb9f82ffbb064baf1
2017-01-30 12:03:42 -08:00
Treehugger Robot
06aed6950d Merge "SFR sims should treat Spain as roaming" 2017-01-30 20:03:13 +00:00
Makoto Onuki
2a61537b39 API change for: Revive CONTACTS_DATABASE_CREATED, and...
Remove STATUS_CHANGE_NOTIFICATION_CONTENT_URI.

Bug 33390320
Test: adb shell am instrument -w -e size small com.android.providers.contacts.tests
Test: adb shell am instrument -w -e size medium com.android.providers.contacts.tests
Test: adb shell am instrument -w -e size large com.android.providers.contacts.tests
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsContactsProviderWipe

Change-Id: I2162aa846c089b6979b68afcca4897dfc1dabade
2017-01-30 12:00:23 -08:00
Calin Juravle
2b4f8731ca Merge "[PM] Clean up logic for secondary dex oat files" 2017-01-30 20:00:16 +00:00
Calin Juravle
a0f2f77cdc Merge "Compile secondary dex files in DexManager" 2017-01-30 19:59:09 +00:00
Julia Reynolds
cb07efbf74 Merge "Add audio attributes to notificationchannel" 2017-01-30 19:37:04 +00:00
Julia Reynolds
5f20e9fedf Use TVExtender channel on tv platforms.
Test: runtest sytemui-notification
Change-Id: I107bba298034778f1d7c0ba31896c4cbbc3fabe9
2017-01-30 19:35:48 +00:00
Ying Wai (Daniel) Fan
c800ddc824 Correct the formula of battery capacity estimation.
Instead of
  (current charge) * (current battery level percentage)
the formula should be
  (current charge) / (current battery level percentage)
to estimate the charge at 100% battery level.

Bug: 34255953
Fixes: 34255953
Test: formula change CL. No existing unit tests found.
Change-Id: I56ef7af3fb097a3082e0ef24329f522d2a0229cc
(cherry picked from commit 9238b6124c)
2017-01-30 19:24:43 +00:00
Dmitri Plotnikov
2228136171 Protecting TvExtender from being stripped by lightenPayload()
Test: Verified manually that TvExtenders actually
arrive in LeanbackLauncher
Change-Id: I42bfc340f7e92bc15243f66c6ae24a330d569262
2017-01-30 11:22:06 -08:00
Robert Greenwalt
e0f2dc35df Merge "SFR sims should treat Spain as roaming" into nyc-mr2-dev am: 66d545bfe9
am: 98a5a760a0

Change-Id: Ia75b0e41239a31604319c2275ded0e0e95e2536c
2017-01-30 19:20:39 +00:00
Torbjorn Eklund
5d1c6d4089 SFR sims should treat Spain as roaming am: 05bd58fc4f
am: c911358efd

Change-Id: I2d1aaf794d8c5e8b4adacf0228b12b70d8578044
2017-01-30 19:19:26 +00:00
Android Build Merger (Role)
6b00caf08e Merge "Merge "Bluetooth: add getDiscoveryEndMillis() call" am: 1785fc4eea am: 7f8d8638eb am: ca312c1cd3 am: 9eb3d7e335" 2017-01-30 19:13:06 +00:00
Abodunrinwa Toki
67024f1b8f Merge "Implement TextClassification system service." 2017-01-30 19:12:50 +00:00
Marie Janssen
2db3f99cfe Merge "Bluetooth: add getDiscoveryEndMillis() call" am: 1785fc4eea am: 7f8d8638eb am: ca312c1cd3
am: 9eb3d7e335

Change-Id: I45a29862c9a841b68bee41daff1d8e46145cbd79
2017-01-30 19:11:46 +00:00
TreeHugger Robot
6675bbf093 Merge "Binary compatibility stubs for get/setTooltip()" 2017-01-30 19:07:59 +00:00
TreeHugger Robot
9f5d2b0886 Merge "Don't scroll popup parent in response to parent scrolling" 2017-01-30 18:31:21 +00:00
Chad Brubaker
bb656a2dbe Allow ephemeral apps to access SOUND_EFFECTS_ENABLED
Test: Manual
Change-Id: I9e574f35b5f007cf62665a60f075fc8ee5096158
2017-01-30 10:28:43 -08:00
Robert Greenwalt
98a5a760a0 Merge "SFR sims should treat Spain as roaming" into nyc-mr2-dev
am: 66d545bfe9

Change-Id: I8019fc3e0b38f46191d3f8205a01727afaa9da3a
2017-01-30 18:19:55 +00:00
Torbjorn Eklund
c911358efd SFR sims should treat Spain as roaming
am: 05bd58fc4f

Change-Id: I866f78cc6bb42e51ff16e2994950c1fcc9922726
2017-01-30 18:19:48 +00:00
Robert Greenwalt
66d545bfe9 Merge "SFR sims should treat Spain as roaming" into nyc-mr2-dev 2017-01-30 18:14:24 +00:00
Yura
a354c4f156 Fix for endless loop in RelativeLayout.
getRelatedView(int[] rules, int relation)

is stuck in the loop, when a view is GONE, and references itself.
There is already a check in:

  getSortedViews(View[] sorted, int... rules) {

to make sure there are no loops of ViewA -> ViewB -> ViewA

BUT, there was a change made in findRoots(int[] rulesFilter)

to "Remove exception throw when a view has a self dependency
inside a RelativeLayout." so this means we must allow this case.

Other change git commit sha: da3003e1d7

Bug: http://b/android.com/231353
Change-Id: Icc26b86ebbb19e482c3afe6a39db996ec493586d
2017-01-30 18:10:34 +00:00
Marie Janssen
9eb3d7e335 Merge "Bluetooth: add getDiscoveryEndMillis() call" am: 1785fc4eea am: 7f8d8638eb
am: ca312c1cd3

Change-Id: I4cf745b758b696c4da3ebb1cb5843d929b634fae
2017-01-30 18:01:51 +00:00
Marie Janssen
ca312c1cd3 Merge "Bluetooth: add getDiscoveryEndMillis() call" am: 1785fc4eea
am: 7f8d8638eb

Change-Id: I6f02c4ddc0fe56cda5af2dcf2f5193ba13522792
2017-01-30 17:57:02 +00:00
Marie Janssen
7f8d8638eb Merge "Bluetooth: add getDiscoveryEndMillis() call"
am: 1785fc4eea

Change-Id: Iecb0aaeae57b473c8679c492717fd7c6daad82ac
2017-01-30 17:51:37 +00:00
Hassan Shojania
fda076a12e Merge "Modular DRM for MediaPlayer" 2017-01-30 17:49:21 +00:00
Marie Janssen
1785fc4eea Merge "Bluetooth: add getDiscoveryEndMillis() call" 2017-01-30 17:46:18 +00:00
Edman Anjos
6e0be363cb Merge changes I28fe3a63,I1466fb45
* changes:
  Update in DPM delegation documentation.
  Fix delegation broadcast to send an ArrayList<String> extra.
2017-01-30 17:32:40 +00:00
Makoto Onuki
b7508c14fe Merge "Do not call RecoverySystem with DPMS lock held" into nyc-mr2-dev am: 85ecba4423
am: bbdd744c21  -s ours

Change-Id: If1118e9a00ee5b1fa9c7d6672bc18e38b68be0f7
2017-01-30 17:29:02 +00:00
Makoto Onuki
58c56aca52 Do not call RecoverySystem with DPMS lock held am: efdec8f568
am: 363677863b  -s ours

Change-Id: Ib25d429401a400e95dcc2f0bdd35c5d4270a6430
2017-01-30 17:27:44 +00:00
Makoto Onuki
bbdd744c21 Merge "Do not call RecoverySystem with DPMS lock held" into nyc-mr2-dev
am: 85ecba4423

Change-Id: Ia7b80ed106af9a1aa065230ab4bdae92ef0cba82
2017-01-30 17:23:21 +00:00
Makoto Onuki
363677863b Do not call RecoverySystem with DPMS lock held
am: efdec8f568

Change-Id: I380328d5ad72962f2f6ec14904e9349836b0bcfd
2017-01-30 17:23:14 +00:00
Makoto Onuki
85ecba4423 Merge "Do not call RecoverySystem with DPMS lock held" into nyc-mr2-dev 2017-01-30 17:18:03 +00:00
Torbjorn Eklund
05bd58fc4f SFR sims should treat Spain as roaming
Since there are unnecessary "config_operatorConsideredNonRoaming" values
in the following file, UE mistakenly recognizes all Spain network as
non-roaming when SFR sim is inserted. Fix the issue by removing the
values.
 - core/res/res/values-mcc208-mnc10/config.xml

Bug: 34369673
Bug: 33902721
Change-Id: I7353e260ec7d3d298346a48c74b7b71bb75b14de
2017-01-30 08:23:16 -08:00
Edman Anjos
9e62c3111e Update in DPM delegation documentation.
Add note on DPM#setDelegatedScopes documentation regarding the
broadcast sent to the delegate package to notify its new scopes; and
change the admin ComponentName annotation to @Nullable in
DPM#getDelegatedScopes.

Bug: 33099995
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegation
Change-Id: I28fe3a631c05a9e6b8dae766ce6c42881f2e3a00
2017-01-30 17:11:40 +01:00
Edman Anjos
a5ec280b4a Fix delegation broadcast to send an ArrayList<String> extra.
Change DPMS to call Intent#putStringArrayListExtra to ensure the extra
is sent as an array list of strings.

Bug: 33099995
Test: cts-tradefed run cts-dev --module CtsDevicePolicyManagerTestCases --test com.android.cts.devicepolicy.MixedDeviceOwnerTest#testDelegation
Change-Id: I1466fb457e34adbfb7704320c021210c1569f55f
2017-01-30 17:11:40 +01:00
Nicolas Geoffray
628c0f1879 Merge "Introduce DEBUG_JAVA_DEBUGGABLE." am: 4df43ad959 am: 27ffe754a4 am: 1852c380e0
am: 96ea5ccef6

Change-Id: I4f8ba4240106ea84c29b6ae11dfc007af7048eb1
2017-01-30 15:32:25 +00:00
Nicolas Geoffray
96ea5ccef6 Merge "Introduce DEBUG_JAVA_DEBUGGABLE." am: 4df43ad959 am: 27ffe754a4
am: 1852c380e0

Change-Id: I8fcc8b0329269a0b21057f973b3a7dc5d8d80284
2017-01-30 15:26:29 +00:00