OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Fix data disabled icon from not showing in status bar"
Jason Monk [Thu, 23 Feb 2017 20:13:57 +0000 (20:13 +0000)]
Merge "Fix data disabled icon from not showing in status bar"

7 years agoMerge "Update fill UI"
TreeHugger Robot [Thu, 23 Feb 2017 20:01:01 +0000 (20:01 +0000)]
Merge "Update fill UI"

7 years agoFix data disabled icon from not showing in status bar
Jason Monk [Thu, 23 Feb 2017 19:48:05 +0000 (14:48 -0500)]
Fix data disabled icon from not showing in status bar

The NetworkController seemed to think the user wasn't set up since
the DeviceProvisionedController didn't send an initial callback
on add.

Also add some extra listening to data disabled state to avoid race
conditions there.

Change-Id: I17f759894a283da08eb0da7ceb5181355c8f4d55
Fixes: 35708363
Fixes: 35632846
Test: runtest systemui

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

7 years agoMerge "Fix an unintentional switch-case fall-through"
TreeHugger Robot [Thu, 23 Feb 2017 18:42:49 +0000 (18:42 +0000)]
Merge "Fix an unintentional switch-case fall-through"

7 years agoMerge "Add metric for new storage screen."
Daniel Nishi [Thu, 23 Feb 2017 18:39:30 +0000 (18:39 +0000)]
Merge "Add metric for new storage screen."

7 years agoMerge "Ensure we use the fullscreen stack bounds when expanding PiP."
TreeHugger Robot [Thu, 23 Feb 2017 18:36:46 +0000 (18:36 +0000)]
Merge "Ensure we use the fullscreen stack bounds when expanding PiP."

7 years agoMerge "Have VirtualDisplayDevice handle Binder death directly."
Bryce Lee [Thu, 23 Feb 2017 18:35:31 +0000 (18:35 +0000)]
Merge "Have VirtualDisplayDevice handle Binder death directly."

7 years agoMerge "Temporarily whitelist apps known to hit the wtf case"
TreeHugger Robot [Thu, 23 Feb 2017 18:33:13 +0000 (18:33 +0000)]
Merge "Temporarily whitelist apps known to hit the wtf case"

7 years agoMerge "Disallow parallel backups"
Shreyas Basarge [Thu, 23 Feb 2017 18:27:21 +0000 (18:27 +0000)]
Merge "Disallow parallel backups"

7 years agoMerge "Serialize restore operations"
Shreyas Basarge [Thu, 23 Feb 2017 18:26:54 +0000 (18:26 +0000)]
Merge "Serialize restore operations"

7 years agoMerge "Correct SurfaceControl matrix parameter names."
Rob Carr [Thu, 23 Feb 2017 18:26:24 +0000 (18:26 +0000)]
Merge "Correct SurfaceControl matrix parameter names."

7 years agoUpdate fill UI
Svet Ganov [Tue, 21 Feb 2017 18:16:16 +0000 (10:16 -0800)]
Update fill UI

1. Abstracted the fill/save view and window management
   in dedicated classs

2. Avoided the need of a second window to detect outside
   touches

3. Simplified the fill-ui window management

4. Moved the UI in its own package to ease mmigration to
   sys UI.

5. Removed hard-coded colors from the layout

6. Make sure the save UI cannot grow as wide as the screen
   as this would not look good on tablets

7. Update the save UI to look closer to mocks

Test: CTS tests pass
Bug: 35708258

Change-Id: Ia74a5aad6f16bba0047a9e8e61958c77af0d358d

7 years agoMerge "Add isBundled argument to LoadedApk.makePaths call"
TreeHugger Robot [Thu, 23 Feb 2017 18:05:00 +0000 (18:05 +0000)]
Merge "Add isBundled argument to LoadedApk.makePaths call"

7 years agoMerge "Add autofill service to BridgeContext"
Jerome Gaillard [Thu, 23 Feb 2017 17:23:26 +0000 (17:23 +0000)]
Merge "Add autofill service to BridgeContext"

7 years agoMerge changes from topic 'skia_merge_1933880'
TreeHugger Robot [Thu, 23 Feb 2017 17:18:13 +0000 (17:18 +0000)]
Merge changes from topic 'skia_merge_1933880'

* changes:
  Fix HWUI tests to use android-only SkPaint flags
  Update framework to use new method for disabling DF path rendering.

7 years agoRevert "Don't trigger auto-fill request if mode is manual"
Philip P. Moltmann [Thu, 23 Feb 2017 17:05:06 +0000 (17:05 +0000)]
Revert "Don't trigger auto-fill request if mode is manual"

This reverts commit 576a847e03f213693f4e7f2f0361f52217f9e1cf.

Fixes: 35701500
Change-Id: I972c2d0e56d365d1fad76a66e74bfad227bf26c4

7 years agoMerge "Expose isStateSaved() in FragmentManager."
TreeHugger Robot [Thu, 23 Feb 2017 16:35:58 +0000 (16:35 +0000)]
Merge "Expose isStateSaved() in FragmentManager."

7 years agoMerge "Added VSYNC and INTENDED_VSYNC timestamps to FrameMetrics API."
Bryan Cassell [Thu, 23 Feb 2017 16:08:32 +0000 (16:08 +0000)]
Merge "Added VSYNC and INTENDED_VSYNC timestamps to FrameMetrics API."

7 years agoMerge "BitmapFactory: Remove legacy premultiply hacks"
Matt Sarett [Thu, 23 Feb 2017 15:24:18 +0000 (15:24 +0000)]
Merge "BitmapFactory: Remove legacy premultiply hacks"

7 years agoMerge "Added sanitization for CompoundButton and RadioGroup."
TreeHugger Robot [Thu, 23 Feb 2017 15:24:02 +0000 (15:24 +0000)]
Merge "Added sanitization for CompoundButton and RadioGroup."

7 years agoMerge "Display longer date string in certificate information"
TreeHugger Robot [Thu, 23 Feb 2017 15:23:34 +0000 (15:23 +0000)]
Merge "Display longer date string in certificate information"

7 years agoHave VirtualDisplayDevice handle Binder death directly.
Bryce Lee [Thu, 16 Feb 2017 01:47:25 +0000 (17:47 -0800)]
Have VirtualDisplayDevice handle Binder death directly.

Previously, the VirtualDisplayDevice delegated its cleanup to the
parent VirtualDisplayAdapter. The adapter looked up the device
from an AppToken mapping. It is possible for this mapping to not
include the token, leading to the device not being destroyed.

This changelist has the VirtualDisplayDevice take care of calling
destroy on itself. It still informs the adapter of this event for
bookkeeping/cleanup purposes.

Fixes: 26221019
Test: Verified through adb shell dumpsys activity activities that the
      virtual displays were removed upon app kill after the
      MediaProjection for these displays ended.

Change-Id: I500fdc87618632184f5d3c9821ccf1979f460595

7 years agoAdd autofill service to BridgeContext
Jerome Gaillard [Thu, 23 Feb 2017 15:15:49 +0000 (15:15 +0000)]
Add autofill service to BridgeContext

Test: layoutlib tests
Change-Id: I52b360a64518165eefee4250b1c32e9f5f87845d

7 years agoMerge "Update DisplayAdjustments in Display from Resources."
Bryce Lee [Thu, 23 Feb 2017 15:15:05 +0000 (15:15 +0000)]
Merge "Update DisplayAdjustments in Display from Resources."

7 years agoFix HWUI tests to use android-only SkPaint flags
Derek Sollenberger [Thu, 23 Feb 2017 14:33:53 +0000 (09:33 -0500)]
Fix HWUI tests to use android-only SkPaint flags

Test: compile only
Change-Id: Ia3a5710d4ae13d68e5b2655a8b135dae8ffeb513

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 agoUpdate framework to use new method for disabling DF path rendering.
Derek Sollenberger [Thu, 23 Feb 2017 12:48:11 +0000 (07:48 -0500)]
Update framework to use new method for disabling DF path rendering.

Test: compile only
Change-Id: Ifa690a0af01cb6b07c4fd303302cb6a557e8dfde

7 years agoAdd isBundled argument to LoadedApk.makePaths call
Dimitry Ivanov [Wed, 22 Feb 2017 23:39:42 +0000 (15:39 -0800)]
Add isBundled argument to LoadedApk.makePaths call

There is a disconnect between the way webview created
classloader and the way makePaths decides if paths are
intended for bundled app.

This change moves decision making out of makePaths method
which allows WebViewZygote to pass correct argument and
have makePath omit java.library.path for libPaths

Bug: http://b/35426785
Test: manual
Change-Id: Iab5a18c0091d0193dafa750498eb00f378411ba0

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 agoFix an unintentional switch-case fall-through
Yohei Yukawa [Thu, 23 Feb 2017 04:49:10 +0000 (20:49 -0800)]
Fix an unintentional switch-case fall-through

This is a follow up CL to my previous CL [1], which introduced a
classical fall through bug due to a missing return statement.

 [1]: Ic614f112f960382280acd8891b3af56d47679f08
      ce82eb2d865e5ee1b69705ca7a0aedd0e92d0d4e

Test: Manually made sure that calling
      InputConnection#performPrivateCommand() no longer causes
      IllegalStateException("Already recycled.").
Bug: 35079353
Fixes: 35681994
Change-Id: I9aa3c0497385e053718d829aad49495771b22b59

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 agoAdded sanitization for CompoundButton and RadioGroup.
Felipe Leme [Thu, 23 Feb 2017 01:26:06 +0000 (17:26 -0800)]
Added sanitization for CompoundButton and RadioGroup.

Bug: 33269702
Bug: 33550221
Test: CtsAutoFillServiceTestCases (with new tests) pass

Change-Id: Ie2c8d2784227371588aa02973b8ef3ac1a6950aa

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 agoAdd metric for new storage screen.
Daniel Nishi [Wed, 22 Feb 2017 01:11:35 +0000 (17:11 -0800)]
Add metric for new storage screen.

Bug: 34715777
Test: None here -- used in topic.

Change-Id: Icffecd5abba197d544a1f9bd382d5c09b0bbb388

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 agoTemporarily whitelist apps known to hit the wtf case
Makoto Onuki [Wed, 22 Feb 2017 22:53:19 +0000 (14:53 -0800)]
Temporarily whitelist apps known to hit the wtf case

Bug: 34973771
Test: Manual tests with hangouts

Change-Id: If456649cb90164562cd71503119625454590d60d

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 agoBitmapFactory: Remove legacy premultiply hacks
Matt Sarett [Wed, 22 Feb 2017 22:38:20 +0000 (17:38 -0500)]
BitmapFactory: Remove legacy premultiply hacks

Skia now has a mode that will perform color correction,
but still do the premultiply on gamma encoded bytes.

Test: Flashed device, ran cts.

Change-Id: Ib1d1ea1074b5e6d1a49ecfc45e25552643dc04bc

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."