OSDN Git Service

android-x86/frameworks-base.git
7 years agoFix roaming getting stuck after changing sims
Jason Monk [Thu, 23 Feb 2017 16:33:54 +0000 (11:33 -0500)]
Fix roaming getting stuck after changing sims

The header was keeping a map of roaming states which could have
stray old subids in it when it shouldn't. It just needs to be
cleared when the sims change.

Test: runtest systemui
Change-Id: If61b9b5f376daecc49f483b679378c5968a1501c

7 years agoMerge "Deprecate TestSuiteBuilder and related classes." am: a26000b8f5 am: fd61eb1e39
Paul Duffin [Thu, 23 Feb 2017 13:56:23 +0000 (13:56 +0000)]
Merge "Deprecate TestSuiteBuilder and related classes." am: a26000b8f5 am: fd61eb1e39
am: 9dcdc8f187

Change-Id: Icbc80cc054244f2660814bde4a9dc681b501024f

7 years agoMerge "Fix build failure when using javac toolchain" am: c098bea921 am: 5da6f4fbd1
Paul Duffin [Thu, 23 Feb 2017 13:55:14 +0000 (13:55 +0000)]
Merge "Fix build failure when using javac toolchain" am: c098bea921 am: 5da6f4fbd1
am: df8bb0ec52

Change-Id: If59986dd60ca90836adecdf0cb52f3570bf81f9d

7 years agoMerge "Deprecate TestSuiteBuilder and related classes." am: a26000b8f5
Paul Duffin [Thu, 23 Feb 2017 13:50:05 +0000 (13:50 +0000)]
Merge "Deprecate TestSuiteBuilder and related classes." am: a26000b8f5
am: fd61eb1e39

Change-Id: I23f137865997ca9ce4aa229c9329d8ea9fbcb6ee

7 years agoMerge "Fix build failure when using javac toolchain" am: c098bea921
Paul Duffin [Thu, 23 Feb 2017 13:49:07 +0000 (13:49 +0000)]
Merge "Fix build failure when using javac toolchain" am: c098bea921
am: 5da6f4fbd1

Change-Id: I65623ab75b0cc7b828fe67544074549fc21206ca

7 years agoMerge "Deprecate TestSuiteBuilder and related classes."
Paul Duffin [Thu, 23 Feb 2017 13:44:24 +0000 (13:44 +0000)]
Merge "Deprecate TestSuiteBuilder and related classes."
am: a26000b8f5

Change-Id: Ia9d491bd72f2a9f08838e298aaf4de5de28c7d4f

7 years agoMerge "Fix build failure when using javac toolchain"
Paul Duffin [Thu, 23 Feb 2017 13:43:07 +0000 (13:43 +0000)]
Merge "Fix build failure when using javac toolchain"
am: c098bea921

Change-Id: I56e965336c537295efc4c0c778f5c236f955bf10

7 years agoMerge "Deprecate TestSuiteBuilder and related classes."
Paul Duffin [Thu, 23 Feb 2017 13:36:30 +0000 (13:36 +0000)]
Merge "Deprecate TestSuiteBuilder and related classes."

7 years agoMerge "Fix build failure when using javac toolchain"
Paul Duffin [Thu, 23 Feb 2017 13:34:38 +0000 (13:34 +0000)]
Merge "Fix build failure when using javac toolchain"

7 years agoMerge "Revert "OMS: integrate OverlayManagerService into framework""
Guang Zhu [Thu, 23 Feb 2017 07:36:12 +0000 (07:36 +0000)]
Merge "Revert "OMS: integrate OverlayManagerService into framework""

7 years agoRevert "OMS: integrate OverlayManagerService into framework"
Guang Zhu [Thu, 23 Feb 2017 07:35:39 +0000 (07:35 +0000)]
Revert "OMS: integrate OverlayManagerService into framework"

Bug: 31052947
Bug: 35697944

This reverts commit 21a3d1ad686dee97b9cf0ed80389ee2ab0d48013.

Change-Id: I2d86931020301524c26cf8c8e80d557c97fdd6c3

7 years agoMerge "IP connectivity metrics: cleanup obsolete code"
Hugo Benichi [Thu, 23 Feb 2017 07:02:27 +0000 (07:02 +0000)]
Merge "IP connectivity metrics: cleanup obsolete code"

7 years agoMerge "Added auto-fill support for Spinner."
Felipe Leme [Thu, 23 Feb 2017 06:45:12 +0000 (06:45 +0000)]
Merge "Added auto-fill support for Spinner."

7 years agoMerge "Don't trigger auto-fill request if mode is manual"
TreeHugger Robot [Thu, 23 Feb 2017 05:57:17 +0000 (05:57 +0000)]
Merge "Don't trigger auto-fill request if mode is manual"

7 years agoMerge "Fix toggling of AM/PM of TimePicker using hardware keyboard."
Aurimas Liutikas [Thu, 23 Feb 2017 04:52:02 +0000 (04:52 +0000)]
Merge "Fix toggling of AM/PM of TimePicker using hardware keyboard."

7 years agoMerge "Optimize IMMS.MyPackageMonitor more"
Yohei Yukawa [Thu, 23 Feb 2017 04:46:10 +0000 (04:46 +0000)]
Merge "Optimize IMMS.MyPackageMonitor more"

7 years agoMerge "Remove abstract from AccessibilityService methods"
Phil Weaver [Thu, 23 Feb 2017 04:40:14 +0000 (04:40 +0000)]
Merge "Remove abstract from AccessibilityService methods"

7 years agoMerge "VideoView: option for audio focus, support for AudioAttributes"
TreeHugger Robot [Thu, 23 Feb 2017 04:37:50 +0000 (04:37 +0000)]
Merge "VideoView: option for audio focus, support for AudioAttributes"

7 years agoMerge "Don't copy ringtones when profile sync goes off"
TreeHugger Robot [Thu, 23 Feb 2017 04:21:34 +0000 (04:21 +0000)]
Merge "Don't copy ringtones when profile sync goes off"

7 years agoMerge "renaming telephony internal hidden intents" am: 09c663a84c am: 979e4690ec
Chen Xu [Thu, 23 Feb 2017 04:15:28 +0000 (04:15 +0000)]
Merge "renaming telephony internal hidden intents" am: 09c663a84c am: 979e4690ec
am: 201320492c

Change-Id: I4e37359a98fb8ecdff63b45a54f08b61e7be25ad

7 years agoresolve merge conflicts of ac9b2c4fab42 to stage-aosp-master am: 4fb8988854
Brad Ebinger [Thu, 23 Feb 2017 04:11:20 +0000 (04:11 +0000)]
resolve merge conflicts of ac9b2c4fab42 to stage-aosp-master am: 4fb8988854
am: 609cfc916b  -s ours

Change-Id: Ib912a18c3bea70d268cc6fa8e3de8bbb9fd414b0

7 years agoMerge "OMS: integrate OverlayManagerService into framework"
TreeHugger Robot [Thu, 23 Feb 2017 03:58:57 +0000 (03:58 +0000)]
Merge "OMS: integrate OverlayManagerService into framework"

7 years agoMerge "resolve merge conflicts of f17c1d488840 to master"
TreeHugger Robot [Thu, 23 Feb 2017 03:43:55 +0000 (03:43 +0000)]
Merge "resolve merge conflicts of f17c1d488840 to master"

7 years agoMerge "Reconcile apps in 2 phases"
TreeHugger Robot [Thu, 23 Feb 2017 03:42:20 +0000 (03:42 +0000)]
Merge "Reconcile apps in 2 phases"

7 years agoMerge "Add queryStatsForPackage() API."
Jeff Sharkey [Thu, 23 Feb 2017 03:21:42 +0000 (03:21 +0000)]
Merge "Add queryStatsForPackage() API."

7 years agoMerge "Start locking down /data/media access."
Jeff Sharkey [Thu, 23 Feb 2017 03:21:18 +0000 (03:21 +0000)]
Merge "Start locking down /data/media access."

7 years agoMerge "Slowly deprecate hidden getPackageSizeInfo() API."
Jeff Sharkey [Thu, 23 Feb 2017 03:21:03 +0000 (03:21 +0000)]
Merge "Slowly deprecate hidden getPackageSizeInfo() API."

7 years agoMerge "Fix concurrent modification crash in onAlarm"
TreeHugger Robot [Thu, 23 Feb 2017 03:19:32 +0000 (03:19 +0000)]
Merge "Fix concurrent modification crash in onAlarm"

7 years agoMerge "Add missing sound to important channels."
TreeHugger Robot [Thu, 23 Feb 2017 02:54:58 +0000 (02:54 +0000)]
Merge "Add missing sound to important channels."

7 years agoDon't copy ringtones when profile sync goes off
Robin Lee [Mon, 20 Feb 2017 14:47:30 +0000 (14:47 +0000)]
Don't copy ringtones when profile sync goes off

Experimentally, it makes more sense to more people to have the parent
setting as an overlay not a concrete thing.

Test: make cts -j30 && cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test 'com.android.cts.devicepolicy.ManagedProfileTest#testRingtoneSyncAutoDisableRingtone' </dev/null 2>&1
Bug: 34730524
Change-Id: I5f804713def9e54921b90e4f5cea742ba8aaa685

7 years agoMerge "Add "Use open Wi-Fi automatically" setting."
TreeHugger Robot [Thu, 23 Feb 2017 02:37:22 +0000 (02:37 +0000)]
Merge "Add "Use open Wi-Fi automatically" setting."

7 years agoMerge "context_hub HAL uses "default" service name"
Yifan Hong [Thu, 23 Feb 2017 02:34:32 +0000 (02:34 +0000)]
Merge "context_hub HAL uses "default" service name"

7 years agoMerge "renaming telephony internal hidden intents" am: 09c663a84c
Chen Xu [Thu, 23 Feb 2017 02:08:33 +0000 (02:08 +0000)]
Merge "renaming telephony internal hidden intents" am: 09c663a84c
am: 979e4690ec

Change-Id: I8cce065cc9ce6a87fa0ce9753a5e9170da77da59

7 years agoMerge "renaming telephony internal hidden intents"
Chen Xu [Thu, 23 Feb 2017 02:03:00 +0000 (02:03 +0000)]
Merge "renaming telephony internal hidden intents"
am: 09c663a84c

Change-Id: Ic20ae9e6816d629c979859a7d18f1827bafcc034

7 years agoOptimize IMMS.MyPackageMonitor more
Yohei Yukawa [Wed, 15 Feb 2017 04:05:17 +0000 (20:05 -0800)]
Optimize IMMS.MyPackageMonitor more

This CL is a follow up CL to my previous CL [1] that aimed to reduce
false positives in InputMethodManagerService.MyPackageMonitor when
deciding if InputMethodManagerService (IMMS) needs to rebuild the list
of enabled IMEs or not.

Currently IMMS.MyPackageMonitor#onSomePackagesChanged() gets called
back to trigger IMMS#buildInputMethodListLocked() when either the
following rule A or B is fulfiled.

 A. Intent with one of the following actions for any package name:
    - ACTION_PACKAGE_ADDED
    - ACTION_PACKAGE_REMOVED
    - ACTION_EXTERNAL_APPLICATIONS_AVAILABLE
    - ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE
    - ACTION_PACKAGES_SUSPENDED
    - ACTION_PACKAGES_UNSUSPENDED
 B. ACTION_PACKAGE_CHANGED with a package that is included in the
    known IME package list, which can be obtained from PackageManager.

The previous CL [1] addressed Bug 28181208 by introducing the rule B,
but we can actually apply the same optimization for A, except for one
false negative case where an appearing package that is not in the
known IME package list actually contains one or more
InputMethodService.

In short, we can reduce false positives by replacing the above two
rules with the following two rules.

 A. Intent with one of the following actions for any package name that
    is in the known IME package list:
    - ACTION_PACKAGE_ADDED
    - ACTION_PACKAGE_CHANGED
    - ACTION_PACKAGE_REMOVED
    - ACTION_EXTERNAL_APPLICATIONS_AVAILABLE
    - ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE
    - ACTION_PACKAGES_SUSPENDED
    - ACTION_PACKAGES_UNSUSPENDED
 B. Intent with one of the following actions for any package that
    implements at least one InputMethodServivce.
    - ACTION_PACKAGE_ADDED
    - ACTION_EXTERNAL_APPLICATIONS_AVAILABLE

Basically in the rule A PackageManager gives us the list of relevant
package names that might contain IMEs regardless enabled/disabled
state, and such a list works well to filter out irrelevant
notifications except for one case where a new package is adding one
or new IMEs that we did not know. This is why we also need the rule B.

Even though the rule B requires a secondary query to PackageManager,
it can be done outside of the state lock of IMMS.

 [1]: I7b69c349318ce06a48d03a4468cf2c45bfb73dc2
      c4e4491735ad5614ec4592fae98f05c455f5944d

Test: Manually verified as follows.
       1. tapas ShortcutDemo && make -j
       2. Copy ShortcutDemo.apk to the current directory.
       3. adb shell dumpsys input_method | grep mMethodMapUpdateCount=
           to check the "mMethodMapUpdateCount".
       4. adb install -r ShortcutDemo.apk
       5. adb shell dumpsys input_method | grep mMethodMapUpdateCount=
           to make sure "mMethodMapUpdateCount" remains unchanged.
       6. adb install -r ShortcutDemo.apk
       7. adb shell dumpsys input_method | grep mMethodMapUpdateCount=
           to make sure "mMethodMapUpdateCount" remains unchanged.
       8. adb uninstall com.example.android.pm.shortcutdemo
       9. adb shell dumpsys input_method | grep mMethodMapUpdateCount=
           to make sure "mMethodMapUpdateCount" remains unchanged.
Test: Manually verified as follows.
       1. tapas SoftKeyboard && make -j
       2. Copy SoftKeyboard.apk to the current directory.
       3. adb root
       4. adb install -r SoftKeyboard.apk
       5. adb shell dumpsys input_method
           Make sure that
             com.example.android.softkeyboard/.SoftKeyboard
           is recognized by IMMS.
       6. adb shell pm disable com.example.android.softkeyboard/.SoftKeyboard
       7. adb shell dumpsys input_method
           Make sure that
             com.example.android.softkeyboard/.SoftKeyboard
           is no longer recognized by IMMS.
       8. adb shell pm enable com.example.android.softkeyboard/.SoftKeyboard
       9. adb shell dumpsys input_method
           Make sure that
             com.example.android.softkeyboard/.SoftKeyboard
           is recognized by IMMS again.
Fixes: 35361128
Change-Id: I063688297156188f68fe0b55a46d72f2e811dc88

7 years agoMerge "renaming telephony internal hidden intents"
Chen Xu [Thu, 23 Feb 2017 01:55:24 +0000 (01:55 +0000)]
Merge "renaming telephony internal hidden intents"

7 years agoFix concurrent modification crash in onAlarm
John Reck [Thu, 23 Feb 2017 01:01:30 +0000 (17:01 -0800)]
Fix concurrent modification crash in onAlarm

Change-Id: Idfd094f3c9ea59356440d6851ccd5abda36ca6ba
Fixes: 35640585
Test: manual; after boot, opened the power menu to force
system_server to spin up a ThreadedRenderer instance
(and thus register itself as a callback on GraphicsStatsService).
Then manually set the date forward by a day to trigger onAlarm
and verified the system didn't reboot/crash. A systrace capture
verified that the alarm fired and package:android (system_server)
had a log rotation event.

7 years agoFix toggling of AM/PM of TimePicker using hardware keyboard.
Aurimas Liutikas [Thu, 23 Feb 2017 00:56:43 +0000 (16:56 -0800)]
Fix toggling of AM/PM of TimePicker using hardware keyboard.

Set AM/PM mode before setting hour in TextInputTimePickerView. This is
needed so we know exactly which it is when we are using 12 hour clock.
Not setting it early was causing TextInputTimePickerView to update TimePicker
with the hour that was not offset correctly based on AM/PM state.

Test: existing tests caught this - TimePickerTest#testKeyboardInputModeClockAmPm
      verified locally that this test now passes.
Bug: 35262830

Change-Id: I7e912320cb5a72c5d9d4e80dc0b42deb651f2636

7 years agoresolve merge conflicts of ac9b2c4fab42 to stage-aosp-master
Brad Ebinger [Thu, 23 Feb 2017 00:57:23 +0000 (00:57 +0000)]
resolve merge conflicts of ac9b2c4fab42 to stage-aosp-master
am: 4fb8988854

Change-Id: Ic679f452ad245cbe58ea8069c34c15e50ee9e5c2

7 years agoMerge "Fix build."
Sudheer Shanka [Thu, 23 Feb 2017 00:11:34 +0000 (00:11 +0000)]
Merge "Fix build."

7 years agoAdded auto-fill support for Spinner.
Felipe Leme [Wed, 22 Feb 2017 23:02:03 +0000 (15:02 -0800)]
Added auto-fill support for Spinner.

Spinner is a special kind of list-value field because its auto-fillable
values are not currently present in the assist structure: this change
adds a getAutoFillOptions() to fill that void, and implements the
auto-fill APIs on Spinner.

It also fixes RadioGroup.getAutoFillValue() - it should return the index
of the child, not its resource id.

Bug: 33550221
Test: CtsAutoFillServiceTestCases (with new tests) pass
Change-Id: I625e7dd705fade56fda490fcd3c4446c0c245ee1

7 years agoresolve merge conflicts of ac9b2c4fab42 to stage-aosp-master
Brad Ebinger [Thu, 23 Feb 2017 00:03:47 +0000 (16:03 -0800)]
resolve merge conflicts of ac9b2c4fab42 to stage-aosp-master

Change-Id: I4a6094c41ab267f89a15c5e8caa25e6b683419d0

7 years agoMerge "Fix a memory leak in AutoFillManager"
Svetoslav Ganov [Thu, 23 Feb 2017 00:02:51 +0000 (00:02 +0000)]
Merge "Fix a memory leak in AutoFillManager"

7 years agoMerge "TelephonyManager#setAllowedCarriers: comment update"
TreeHugger Robot [Wed, 22 Feb 2017 23:58:19 +0000 (23:58 +0000)]
Merge "TelephonyManager#setAllowedCarriers: comment update"

7 years agoMerge "Fixed missing auto-fill save callbacks on TextView."
Felipe Leme [Wed, 22 Feb 2017 23:56:42 +0000 (23:56 +0000)]
Merge "Fixed missing auto-fill save callbacks on TextView."

7 years agoReconcile apps in 2 phases
Fyodor Kupolov [Tue, 7 Feb 2017 19:25:14 +0000 (11:25 -0800)]
Reconcile apps in 2 phases

During boot app data folders are reconciled in 2 phases:
 - in the constructor only core apps are reconciled. prepareAppData
   for remaining apps is deferred and run on a separate thread (phase 2)
 - Phase 2 must finish before third-party apps can start

Also moved GC to final stages of system server init. GC alone takes ~200 ms.

Overall boot time improvement: ~1 second

Before:
02-17 18:33:33 D/BaseBootTest: successive-boot :
28835.0,29638.0,30205.0,29793.0,29752.0,28228.0,30125.0,28983.0,28487.0,28865.0,
02-17 18:33:33 D/BaseBootTest: successive-boot_avg : 29291.1
02-17 18:33:33 D/BaseBootTest:
SystemServerTiming_StartPackageManagerService :
3150.0,3615.0,3515.0,3495.0,3814.0,3158.0,3746.0,3274.0,3222.0,3607.0,
02-17 18:33:33 D/BaseBootTest:
SystemServerTiming_StartPackageManagerService_avg : 3459.6
02-17 18:33:33 D/BaseBootTest: SystemServerTiming_StartServices :
8244.0,8863.0,9035.0,9832.0,8998.0,8096.0,8719.0,8209.0,8279.0,8754.0,
02-17 18:33:33 D/BaseBootTest: SystemServerTiming_StartServices_avg :
8702.9

After:
02-17 17:59:51 D/BaseBootTest: successive-boot :
27711.0,27607.0,28408.0,28968.0,28397.0,28063.0,27885.0,28483.0,27917.0,29317.0,
02-17 17:59:51 D/BaseBootTest: successive-boot_avg : 28275.6
02-17 17:59:51 D/BaseBootTest:
SystemServerTiming_StartPackageManagerService :
2467.0,2489.0,2369.0,2548.0,2647.0,2523.0,2497.0,2553.0,2482.0,2657.0,
02-17 17:59:51 D/BaseBootTest:
SystemServerTiming_StartPackageManagerService_avg : 2523.2
02-17 17:59:51 D/BaseBootTest: SystemServerTiming_StartServices :
7686.0,7538.0,7598.0,7869.0,7884.0,7950.0,7971.0,8370.0,7696.0,7885.0,
02-17 17:59:51 D/BaseBootTest: SystemServerTiming_StartServices_avg :
7844.7

Test: manual
Bug: 28750609
Change-Id: I3543ef577af1365394775318e40907584ddbe950

7 years agoMerge "Add a flag to enable/disable the cache quota calc."
Daniel Nishi [Wed, 22 Feb 2017 23:39:29 +0000 (23:39 +0000)]
Merge "Add a flag to enable/disable the cache quota calc."

7 years agoresolve merge conflicts of f17c1d488840 to master
Calvin On [Wed, 22 Feb 2017 23:16:42 +0000 (15:16 -0800)]
resolve merge conflicts of f17c1d488840 to master

OCL: http://ag/1932572

Test: refactoring CL, with unit tests

Change-Id: I5da27ee70afb8bf6e5fe9f6f3b545cd26d5c8d20

7 years agoSlowly deprecate hidden getPackageSizeInfo() API.
Jeff Sharkey [Wed, 22 Feb 2017 23:24:55 +0000 (16:24 -0700)]
Slowly deprecate hidden getPackageSizeInfo() API.

It was never a public API, and we now have a support and CTS tested
public API over at StorageStatsManager that apps should be using.

Test: builds, boots
Bug: 34643504
Change-Id: Iad3f2c000dd9d7c1b1e70d0bf2d281826737322e

7 years agoFix build.
Sudheer Shanka [Wed, 22 Feb 2017 23:27:29 +0000 (15:27 -0800)]
Fix build.

Test: make -j48 tests
Change-Id: I51287ddae3c7c689a44ca45edbae838e90b88e98

7 years agoMerge "Add UI prompt for MMI code failure on 3gpp"
Brad Ebinger [Wed, 22 Feb 2017 23:22:06 +0000 (23:22 +0000)]
Merge "Add UI prompt for MMI code failure on 3gpp"

7 years agoAdd queryStatsForPackage() API.
Jeff Sharkey [Wed, 22 Feb 2017 22:47:27 +0000 (15:47 -0700)]
Add queryStatsForPackage() API.

This gives developers a way to collect package-level stats, even if
it means we have to use manual calculation for sharedUserId apps.

Also round size of storage devices to nice power-of-two values so we
do a better job of matching retail packaging.

Test: builds, boots
Bug: 35294241
Change-Id: I24946c443bb9dc4b0411a8149a0656702ac1fd24

7 years agoStart locking down /data/media access.
Jeff Sharkey [Wed, 22 Feb 2017 21:10:44 +0000 (14:10 -0700)]
Start locking down /data/media access.

The new sdcardfs filesystem requires that we have stricter access
controls around /data/media style locations.  Start by taking away
the "media_rw" GID from apps requesting the WRITE_MEDIA_STORAGE
permission.

Common use-cases like music playback appear to continue working fine,
as clients should only be attempting to use /data/media paths after
calling maybeTranslateEmulatedPathToInternal().

Test: builds, boots, music playback works
Bug: 35447080
Change-Id: Iba9f3ef41d3277c75497f675a1fe6d3406cf4542

7 years agoReplace WearWifi/Cell services with WearConnectivityService am: 5555bccc70
Calvin On [Wed, 22 Feb 2017 22:48:23 +0000 (22:48 +0000)]
Replace WearWifi/Cell services with WearConnectivityService am: 5555bccc70
am: abfd5bccb9

Change-Id: If051c765d3ea81cce2bedc2dfa02d64744088054

7 years agoMerge "Revert "Ensure network connectivity on app start.""
Sudheer Shanka [Wed, 22 Feb 2017 22:47:52 +0000 (22:47 +0000)]
Merge "Revert "Ensure network connectivity on app start.""

7 years agoReplace WearWifi/Cell services with WearConnectivityService
Calvin On [Wed, 22 Feb 2017 22:41:41 +0000 (22:41 +0000)]
Replace WearWifi/Cell services with WearConnectivityService
am: 5555bccc70

Change-Id: I5d8c97b8d5c394aeae99b7ddbe0dfdd5706a4293

7 years agoAdd "Use open Wi-Fi automatically" setting.
Amin Shaikh [Thu, 2 Feb 2017 23:39:12 +0000 (15:39 -0800)]
Add "Use open Wi-Fi automatically" setting.

- Add constant in NetworkScoreManager for the meta-data key required
for NetworkRecommendationProviders to specify which package provides
this feature.
- Add Setting to specify which package is enabled for providing this
feature.

Bug: 34773276
Test: make
Change-Id: I3f8209c21b8b219c242650f97ba407b5985a5250

7 years agoRevert "Ensure network connectivity on app start."
Sudheer Shanka [Wed, 22 Feb 2017 22:13:55 +0000 (22:13 +0000)]
Revert "Ensure network connectivity on app start."

This reverts commit 27e693158398059d00ff20e60640cb105e255625.

Change-Id: I4c41ce7c1839d3b91931bc8a8f117f32bf6cd381

7 years agoMerge "Revert "Notify NPMS when uid becomes active or idle.""
Sudheer Shanka [Wed, 22 Feb 2017 22:10:43 +0000 (22:10 +0000)]
Merge "Revert "Notify NPMS when uid becomes active or idle.""

7 years agoMerge "Revert "Set default wait-for-network timeout to 0.""
Sudheer Shanka [Wed, 22 Feb 2017 22:07:16 +0000 (22:07 +0000)]
Merge "Revert "Set default wait-for-network timeout to 0.""

7 years agoMerge "AAPT2: Rename strip phase to optimize"
TreeHugger Robot [Wed, 22 Feb 2017 21:15:25 +0000 (21:15 +0000)]
Merge "AAPT2: Rename strip phase to optimize"

7 years agoMerge "Don't show the percentage twice when charging."
TreeHugger Robot [Wed, 22 Feb 2017 21:11:29 +0000 (21:11 +0000)]
Merge "Don't show the percentage twice when charging."

7 years agoRevert "Notify NPMS when uid becomes active or idle."
Sudheer Shanka [Wed, 22 Feb 2017 21:03:53 +0000 (21:03 +0000)]
Revert "Notify NPMS when uid becomes active or idle."

This reverts commit ac0a61bad30e5a2ff45a85aaa6cf910e08911a2b.

Change-Id: I87d239cef51fc00567054644efceeca1ad2b463d

7 years agoRevert "Set default wait-for-network timeout to 0."
Sudheer Shanka [Wed, 22 Feb 2017 21:03:43 +0000 (21:03 +0000)]
Revert "Set default wait-for-network timeout to 0."

This reverts commit d4f081cca4aa2b3b0fd1065839aedc1587dac94a.

Change-Id: Id55a08d00119c048c3d738b9f6f2cc5626df9bbf

7 years agoMerge "AAPT2: Shared library support"
TreeHugger Robot [Wed, 22 Feb 2017 21:03:09 +0000 (21:03 +0000)]
Merge "AAPT2: Shared library support"

7 years agoRemove abstract from AccessibilityService methods
Phil Weaver [Wed, 22 Feb 2017 20:54:40 +0000 (12:54 -0800)]
Remove abstract from AccessibilityService methods

Two methods on AccessibilityService were declared abstract, but
there doesn't seem to be a good reason for them to be abstract, as
it's possible to write an accessibility service that doesn't do
anything useful with the methods. Removing the abstract qualifier
to reduce boilerplate for service developers.

Bug: 31705365
Test: Trivial change, so I just verified that it builds.
Change-Id: I2af39848c8ab343d562361fdc1c3f8ca3ecb5f00

7 years agoMerge "Updated some internal apps to use TYPE_APPLICATION_OVERLAY"
TreeHugger Robot [Wed, 22 Feb 2017 20:53:28 +0000 (20:53 +0000)]
Merge "Updated some internal apps to use TYPE_APPLICATION_OVERLAY"

7 years agoMerge "Ensure that we tint PiP actions to be consistent."
TreeHugger Robot [Wed, 22 Feb 2017 20:52:50 +0000 (20:52 +0000)]
Merge "Ensure that we tint PiP actions to be consistent."

7 years agoMerge "VRManager: Set initial sleep state to 'AWAKE'"
TreeHugger Robot [Wed, 22 Feb 2017 20:47:24 +0000 (20:47 +0000)]
Merge "VRManager: Set initial sleep state to 'AWAKE'"

7 years agoMerge "Split cache clearing into two phases."
Jeff Sharkey [Wed, 22 Feb 2017 20:25:13 +0000 (20:25 +0000)]
Merge "Split cache clearing into two phases."

7 years agoMerge "Create am no-home-screen command."
TreeHugger Robot [Wed, 22 Feb 2017 20:16:17 +0000 (20:16 +0000)]
Merge "Create am no-home-screen command."

7 years agoMerge "Fix bug in auto launching with one entry."
TreeHugger Robot [Wed, 22 Feb 2017 20:12:45 +0000 (20:12 +0000)]
Merge "Fix bug in auto launching with one entry."

7 years agoMerge "Disable settings nav drawer entirely."
TreeHugger Robot [Wed, 22 Feb 2017 20:08:34 +0000 (20:08 +0000)]
Merge "Disable settings nav drawer entirely."

7 years agoVideoView: option for audio focus, support for AudioAttributes
Jean-Michel Trivi [Thu, 16 Feb 2017 22:36:43 +0000 (14:36 -0800)]
VideoView: option for audio focus, support for AudioAttributes

Add API for VideoView to select whether it uses audio focus during
  playback, and how.
Add support for AudioAttributes

Test: cts-tradefed run cts -m CtsWidgetTestCases -t android.widget.cts.VideoViewTest
Bug 30955183
Bug 30258418

Change-Id: I581d32c79c78b8197ded2319e0d5bfdc35b93c5e

7 years agoMerge "underline is now only tracked by android"
Leon Scroggins [Wed, 22 Feb 2017 20:02:08 +0000 (20:02 +0000)]
Merge "underline is now only tracked by android"

7 years agoFixed missing auto-fill save callbacks on TextView.
Felipe Leme [Wed, 22 Feb 2017 19:54:29 +0000 (11:54 -0800)]
Fixed missing auto-fill save callbacks on TextView.

It was accidentally broken during a previous commit where the CTS test
failure was ignored by a known issue being fixed in another change -
this change fixes both problems.

Bug: 33550221
Bug: 3380254
Test: CtsAutoFillServiceTestCases pass (for real now :-)
Change-Id: I5b2aa6060995ca255e51d85aa6ec93a886fa522f

7 years agoMerge "Default android app icon should use <adaptive-icon> Test: install apk without...
Hyunyoung Song [Wed, 22 Feb 2017 19:52:38 +0000 (19:52 +0000)]
Merge "Default android app icon should use <adaptive-icon> Test: install apk without application icon. manually check on default launcher."

7 years agoMerge "Fix issues with assistant stack visibility."
TreeHugger Robot [Wed, 22 Feb 2017 19:50:41 +0000 (19:50 +0000)]
Merge "Fix issues with assistant stack visibility."

7 years agoAdd missing sound to important channels.
Julia Reynolds [Wed, 22 Feb 2017 17:18:45 +0000 (12:18 -0500)]
Add missing sound to important channels.

Test: runtest systemui-notification
Change-Id: I7b091d312220e3830f2cd613b7ac08f75c5f0a8c

7 years agoMerge "Unhide root MIME type."
TreeHugger Robot [Wed, 22 Feb 2017 19:45:43 +0000 (19:45 +0000)]
Merge "Unhide root MIME type."

7 years agoMerge "FloatingToolbar: Menu items with icon + text."
Abodunrinwa Toki [Wed, 22 Feb 2017 19:45:34 +0000 (19:45 +0000)]
Merge "FloatingToolbar: Menu items with icon + text."

7 years agoAAPT2: Rename strip phase to optimize
Adam Lesinski [Tue, 21 Feb 2017 22:22:30 +0000 (14:22 -0800)]
AAPT2: Rename strip phase to optimize

- Allow resource deduping, version collapsing, and sparse resource
  encoding.

Test: manual
Change-Id: Ia4aa892ab5b06ba1d5ea4a6efb51b00bc3a980c4

7 years agoMerge "AOD: readd AOD settings on debuggable builds"
TreeHugger Robot [Wed, 22 Feb 2017 19:39:43 +0000 (19:39 +0000)]
Merge "AOD: readd AOD settings on debuggable builds"

7 years agoMerge "Improved documentation and added @CallSuper on onProvideAutoFillStructure()."
TreeHugger Robot [Wed, 22 Feb 2017 19:39:14 +0000 (19:39 +0000)]
Merge "Improved documentation and added @CallSuper on onProvideAutoFillStructure()."

7 years agoMerge "Rename CameraService to CameraServiceProxy"
TreeHugger Robot [Wed, 22 Feb 2017 19:36:55 +0000 (19:36 +0000)]
Merge "Rename CameraService to CameraServiceProxy"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Wed, 22 Feb 2017 19:36:36 +0000 (19:36 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Grant notification listener access to overlay pkgs"
Julia Reynolds [Wed, 22 Feb 2017 19:35:10 +0000 (19:35 +0000)]
Merge "Grant notification listener access to overlay pkgs"

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Wed, 22 Feb 2017 19:33:56 +0000 (19:33 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Revert "Don't copy NoCopySpans in SpannableStringInternal""
Siyamed Sinir [Wed, 22 Feb 2017 19:28:02 +0000 (19:28 +0000)]
Merge "Revert "Don't copy NoCopySpans in SpannableStringInternal""

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Wed, 22 Feb 2017 19:27:03 +0000 (19:27 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoAdd a flag to enable/disable the cache quota calc.
Daniel Nishi [Tue, 21 Feb 2017 23:19:27 +0000 (15:19 -0800)]
Add a flag to enable/disable the cache quota calc.

Bug: 34770259
Test: ServicesTests
Change-Id: I74155203c4802b1a3b89117859002bf40b1ca435

7 years agoAAPT2: Shared library support
Adam Lesinski [Thu, 16 Feb 2017 20:05:42 +0000 (12:05 -0800)]
AAPT2: Shared library support

Test: make aapt2_tests
Change-Id: I98dddf1367e6c0ac425bb20be46e6ff05f4f2f45

7 years agoDon't trigger auto-fill request if mode is manual
Philip P. Moltmann [Sat, 18 Feb 2017 00:38:11 +0000 (16:38 -0800)]
Don't trigger auto-fill request if mode is manual

Also improve descriptions of the attributes, constants and methods.

Test: Ran updated ViewAttributesTest
Bug: 34077687
Change-Id: I532f1b26b97ba113f316eed6fc68dae2ed33ea6a

7 years agoEnsure that we tint PiP actions to be consistent.
Winson Chung [Fri, 3 Feb 2017 22:37:53 +0000 (14:37 -0800)]
Ensure that we tint PiP actions to be consistent.

Test: Launch PiP with actions, ensure they are white
Bug: 34281934
Change-Id: I3d301928af80a14ee6d161492c55a62b720d3cca

7 years agoMerge "Introduce APIs for RTT calls (part 1)" am: 27ad05169e am: d83b06cd31
Hall Liu [Wed, 22 Feb 2017 19:05:03 +0000 (19:05 +0000)]
Merge "Introduce APIs for RTT calls (part 1)" am: 27ad05169e am: d83b06cd31
am: ba6c607728

Change-Id: I02e7291091d2452cb7cdb7351c8744606b340e76

7 years agoMerge "Introduce APIs for RTT calls (part 1)" am: 27ad05169e
Hall Liu [Wed, 22 Feb 2017 19:00:55 +0000 (19:00 +0000)]
Merge "Introduce APIs for RTT calls (part 1)" am: 27ad05169e
am: d83b06cd31

Change-Id: Id3608cf918d829ed785d7b75dffa6b6ce6990f34

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Wed, 22 Feb 2017 19:00:26 +0000 (19:00 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "Added auto-fill listeners for RadioGroup and CompoundButton."
TreeHugger Robot [Wed, 22 Feb 2017 18:58:50 +0000 (18:58 +0000)]
Merge "Added auto-fill listeners for RadioGroup and CompoundButton."

7 years agoMerge "Introduce APIs for RTT calls (part 1)"
Hall Liu [Wed, 22 Feb 2017 18:56:48 +0000 (18:56 +0000)]
Merge "Introduce APIs for RTT calls (part 1)"
am: 27ad05169e

Change-Id: I3fb3cb89b467e5df808967dcd478964a84e2e61f

7 years agoMerge "Fixes dragging divider up in splitscreen puts the docked stack behind"
TreeHugger Robot [Wed, 22 Feb 2017 18:53:08 +0000 (18:53 +0000)]
Merge "Fixes dragging divider up in splitscreen puts the docked stack behind"