OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Make AdapterView auto-focusable-aware" into oc-dev
Evan Rosky [Wed, 12 Apr 2017 00:02:21 +0000 (00:02 +0000)]
Merge "Make AdapterView auto-focusable-aware" into oc-dev

7 years agoMerge "Improve caching behavior of thumbnails" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 23:53:14 +0000 (23:53 +0000)]
Merge "Improve caching behavior of thumbnails" into oc-dev

7 years agoMerge "Clean up activity a bit and disable it by default" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 23:51:48 +0000 (23:51 +0000)]
Merge "Clean up activity a bit and disable it by default" into oc-dev

7 years agoMerge "Ensure visible activities when device is unlocked." into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 23:50:07 +0000 (23:50 +0000)]
Merge "Ensure visible activities when device is unlocked." into oc-dev

7 years agoMerge "Grant Shell ability to clear cached app data." into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 23:15:32 +0000 (23:15 +0000)]
Merge "Grant Shell ability to clear cached app data." into oc-dev

7 years agoMerge "Move @SystemApi access to ImsService" into oc-dev
Brad Ebinger [Tue, 11 Apr 2017 23:12:07 +0000 (23:12 +0000)]
Merge "Move @SystemApi access to ImsService" into oc-dev

7 years agoMerge "Toast whenever a notification fails to post" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 22:59:59 +0000 (22:59 +0000)]
Merge "Toast whenever a notification fails to post" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 22:35:45 +0000 (22:35 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 22:28:39 +0000 (22:28 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoImprove caching behavior of thumbnails
Jorim Jaggi [Mon, 3 Apr 2017 15:24:19 +0000 (17:24 +0200)]
Improve caching behavior of thumbnails

Remove the retrieval cache on system_server. It's not needed at
this point.

Instead, we cache the low-res thumbnails on SystemUI side that
will be visible when recents launches. For that, we introduce
a strong thumbnail cache, which gets filled up whenever the task
stack changes.

Also fix a couple of issues like that the visibility report was
pretty wrong as well as some tasks got unloaded because tasks were
bound before layout happend.

Also fix a merge issue where we didn't load the reduced resolution
thumbnail :/

Test: TaskSnapshotCacheTest
Test: Open a couple of apps, open recents, make sure all
thumbnails are already loaded.

Fixes: 36374895
Change-Id: Idbf1acd4ceab6a7c4656e9791e245a8b102017f2

7 years agoMerge "Bring back the priority feature for static RRO" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 21:02:55 +0000 (21:02 +0000)]
Merge "Bring back the priority feature for static RRO" into oc-dev

7 years agoMerge "Rebase enabled overlays for every PackageParser.generateActivityInfo() call...
TreeHugger Robot [Tue, 11 Apr 2017 21:02:24 +0000 (21:02 +0000)]
Merge "Rebase enabled overlays for every PackageParser.generateActivityInfo() call" into oc-dev

7 years agoMerge "Deprecate TelephonyManager.getCellLocation()" into oc-dev
Nathan Harold [Tue, 11 Apr 2017 20:58:29 +0000 (20:58 +0000)]
Merge "Deprecate TelephonyManager.getCellLocation()" into oc-dev

7 years agoMerge "Fix some maps to be HEAP_DALVIK_CODE_CACHE instead of HEAP_DALVIK_ACCOUNTING...
TreeHugger Robot [Tue, 11 Apr 2017 20:49:47 +0000 (20:49 +0000)]
Merge "Fix some maps to be HEAP_DALVIK_CODE_CACHE instead of HEAP_DALVIK_ACCOUNTING" into oc-dev

7 years agoMerge "Revert "AOD: Wake up fully on gestures by default"" into oc-dev
Adrian Roos [Tue, 11 Apr 2017 20:25:54 +0000 (20:25 +0000)]
Merge "Revert "AOD: Wake up fully on gestures by default"" into oc-dev

7 years agoMerge "AAPT2: expose return values through JNI." into oc-dev
Fabrice de Gans-Riberi [Tue, 11 Apr 2017 19:56:15 +0000 (19:56 +0000)]
Merge "AAPT2: expose return values through JNI." into oc-dev

7 years agoMerge changes from topic 'bt5-cherry-pickery-2' into oc-dev
Jakub Pawlowski [Tue, 11 Apr 2017 19:19:32 +0000 (19:19 +0000)]
Merge changes from topic 'bt5-cherry-pickery-2' into oc-dev

* changes:
  Remove enable from PeriodicAdvertisingPariameters (1/2)
  Bluetooth 5 fix default AdvertisingSetParameters values
  Bluetooth: fix comment wording

7 years agoGrant Shell ability to clear cached app data.
Jeff Sharkey [Mon, 10 Apr 2017 03:37:56 +0000 (21:37 -0600)]
Grant Shell ability to clear cached app data.

It already has CLEAR_APP_USER_DATA to clear everything inside app
storage, and clearing cached data is a subset of that.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.StorageHostTest
Bug: 36731175
Change-Id: Iefc5be6c80e2562a95424fd6fe413bdb018201a9

7 years agoMerge "Keep a removed API to not break GCore presubmit" into oc-dev
Svetoslav Ganov [Tue, 11 Apr 2017 18:58:50 +0000 (18:58 +0000)]
Merge "Keep a removed API to not break GCore presubmit" into oc-dev

7 years agoClean up activity a bit and disable it by default
Jason Monk [Tue, 11 Apr 2017 18:55:25 +0000 (14:55 -0400)]
Clean up activity a bit and disable it by default

Test: visual & demo mode
Change-Id: I3718e7f58d21a28ae937064882c4edff10534701
Fixes: 36020978

7 years agoMerge "Deprecated ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED" into oc-dev
Jack Yu [Tue, 11 Apr 2017 18:45:31 +0000 (18:45 +0000)]
Merge "Deprecated ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 11 Apr 2017 18:41:51 +0000 (11:41 -0700)]
Import translations. DO NOT MERGE

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

7 years agoKeep a removed API to not break GCore presubmit
Svet Ganov [Tue, 11 Apr 2017 18:40:14 +0000 (11:40 -0700)]
Keep a removed API to not break GCore presubmit

Change-Id: Ica38b7aad2a5a8792917d0da1d497f373b118077

7 years agoMerge "Add getSelfManagedPhoneAccounts() TelecomManager API." into oc-dev
Tyler Gunn [Tue, 11 Apr 2017 18:36:55 +0000 (18:36 +0000)]
Merge "Add getSelfManagedPhoneAccounts() TelecomManager API." into oc-dev

7 years agoMerge "Make sure system UI context has the same LoadedApk as system context" into...
Adam Lesinski [Tue, 11 Apr 2017 18:29:56 +0000 (18:29 +0000)]
Merge "Make sure system UI context has the same LoadedApk as system context" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 11 Apr 2017 18:20:51 +0000 (11:20 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Revert "Revert "Handle case when snapshot dimensions don't match""" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 18:15:54 +0000 (18:15 +0000)]
Merge "Revert "Revert "Handle case when snapshot dimensions don't match""" into oc-dev

7 years agoMerge "add debug logs" into oc-dev
Todd Kennedy [Tue, 11 Apr 2017 18:14:18 +0000 (18:14 +0000)]
Merge "add debug logs" into oc-dev

7 years agoEnsure visible activities when device is unlocked.
Wale Ogunwale [Mon, 10 Apr 2017 16:50:21 +0000 (09:50 -0700)]
Ensure visible activities when device is unlocked.

When the device is locked we transition all activities to the stopped
state. However, we were only resuming the activity in the focused stack
when the device is unlocked. We now:
- Ensure all visible acitvities when the device is unlocked regardless
of stack.
- If the activity is marked as visible, but in the STOPPED state, we go
ahead and restart it.
- Correctly set ActivityRecord.stopped to false when we restart an
activity into the PAUSED state.

Fixes: 37119770
Bug: 37244415
Test: Make sure docked activity state isn't STOPPED when device is
unlocked.

Change-Id: I1498eeddaa3c1f5dd5135dca56271ffc22b704f2

7 years agoFix some maps to be HEAP_DALVIK_CODE_CACHE instead of HEAP_DALVIK_ACCOUNTING
Mathieu Chartier [Tue, 11 Apr 2017 01:28:03 +0000 (18:28 -0700)]
Fix some maps to be HEAP_DALVIK_CODE_CACHE instead of HEAP_DALVIK_ACCOUNTING

dalvik-data-code-cache and dalvik-CompilerMetadata should be counted
in JITCache instead of .GC in dumpsys.

Bug: 37224159
Test: adb shell dumpsys meminfo -d

(cherry picked from commit 874c4cf56c0a9ea3b48468a13ec7fb78a3e2594b)

Change-Id: I41def949d91b2fdef0b3f502fe16ae436d058051

7 years agoMerge "Expose UserHandle.getIdentifier() to CTS." into oc-dev
Makoto Onuki [Tue, 11 Apr 2017 17:51:44 +0000 (17:51 +0000)]
Merge "Expose UserHandle.getIdentifier() to CTS." into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 17:49:36 +0000 (17:49 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Update fontchain_lint to test new emoji font" into oc-dev
Roozbeh Pournader [Tue, 11 Apr 2017 17:24:28 +0000 (17:24 +0000)]
Merge "Update fontchain_lint to test new emoji font" into oc-dev

7 years agoMerge "Fix screen pinning in seascape" into oc-dev
Jason Monk [Tue, 11 Apr 2017 17:09:51 +0000 (17:09 +0000)]
Merge "Fix screen pinning in seascape" into oc-dev

7 years agoRevert "AOD: Wake up fully on gestures by default"
Adrian Roos [Wed, 29 Mar 2017 01:02:04 +0000 (01:02 +0000)]
Revert "AOD: Wake up fully on gestures by default"

Bug: 35909567
Bug: 30876804

This reverts commit d84a080e9488c97031fb19a88798c798fe48ac13.

Change-Id: Id51edce39967075cffe8fbe3860200cfe3a355ae
(cherry picked from commit ae4306edba13d07bf090f07fde109d0b83e2f1e5)

7 years agoMerge "Hide ColorSpace.Renderer" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 16:22:54 +0000 (16:22 +0000)]
Merge "Hide ColorSpace.Renderer" into oc-dev

7 years agoMerge "ImageReader/Writer: add usage flag support" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 16:17:11 +0000 (16:17 +0000)]
Merge "ImageReader/Writer: add usage flag support" into oc-dev

7 years agoRemove enable from PeriodicAdvertisingPariameters (1/2)
Jakub Pawlowski [Mon, 10 Apr 2017 20:45:16 +0000 (13:45 -0700)]
Remove enable from PeriodicAdvertisingPariameters (1/2)

Instead of setting enable to true, one can just pass null
PeriodicAdvertisingParameters and achieve same result when starting the
set.
Passing the "enable" when updating the parameters make no sense, and
might be confusing.
Experience with "timeout" field, which was a part of AdvertiseSettings
show that merging fields that go into different HCI commands can cause
problems during processing, so keep enable as separate field.

Test: manual
Bug: 30622771
Change-Id: Ida02c59eb8433537179b4d22202fe745f8b4bb3e
(cherry picked from commit e6c453d828fec3df82708d2b0c3bb00bd0a0dbf8)

7 years agoBluetooth 5 fix default AdvertisingSetParameters values
Jakub Pawlowski [Thu, 6 Apr 2017 14:22:57 +0000 (07:22 -0700)]
Bluetooth 5 fix default AdvertisingSetParameters values

Having advertiser be scannable and connectable by default is a bad
choice for new advertising set.

Bug: 30622771
Test: sl4a Bt5ScanTest
Change-Id: I4fc270e78ca4e62d3077c5cd28aa59b0518d2e77
(cherry picked from commit 010cc95583d6b93bdcc9cf7959f8470d109f8a3d)

7 years agoBluetooth: fix comment wording
Jakub Pawlowski [Thu, 23 Mar 2017 05:53:18 +0000 (22:53 -0700)]
Bluetooth: fix comment wording

Test: manual
Bug: 30622771
Change-Id: I5a589c98553f35248b0d95d332e9f35774075b24
(cherry picked from commit e7f89b07e6fa3a99877af3298c2a80db23a591d7)

7 years agoMerge "Update string description and char limits" into oc-dev
Fan Zhang [Tue, 11 Apr 2017 16:11:31 +0000 (16:11 +0000)]
Merge "Update string description and char limits" into oc-dev

7 years agoExpose UserHandle.getIdentifier() to CTS.
Makoto Onuki [Mon, 10 Apr 2017 22:37:17 +0000 (15:37 -0700)]
Expose UserHandle.getIdentifier() to CTS.

This allows CTS to pass user IDs returned by APIs as UserHandle to various
ADB commands.

Test: Exposing as TestApi only; m -j
Change-Id: Iedba6d83b717baacf9e7cf97f1d32f93c191a5ca

7 years agoToast whenever a notification fails to post
Geoffrey Pitsch [Tue, 11 Apr 2017 15:35:02 +0000 (11:35 -0400)]
Toast whenever a notification fails to post

Help developers find their missing notifications.
Incremental change to move towards an all-channel world.

Bug: 35378789
Test: runtest systemui-notification
Change-Id: Ie3f3e307ff1f6450f5fc8eb9e34e5f566614c1f9

7 years agoMerge "Fix race condition in removeForegroundServiceFlag" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 15:32:08 +0000 (15:32 +0000)]
Merge "Fix race condition in removeForegroundServiceFlag" into oc-dev

7 years agoHide ColorSpace.Renderer
Romain Guy [Tue, 11 Apr 2017 14:24:56 +0000 (16:24 +0200)]
Hide ColorSpace.Renderer

Bug: 37073273
Test: Compile, make sure CTS does not rely on this API
Change-Id: Ia5d2638676be44464a173f904a21158c554b9ebf

7 years agoFix screen pinning in seascape
Jason Monk [Tue, 28 Mar 2017 20:25:08 +0000 (16:25 -0400)]
Fix screen pinning in seascape

Test: visual
Change-Id: I7792d0f5f98e83f0b2fd57a831e82efa07533c2b
Fixes: 34072199

7 years agoMerge "Don't ensure config for activity that is about to be invisible" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 12:46:57 +0000 (12:46 +0000)]
Merge "Don't ensure config for activity that is about to be invisible" into oc-dev

7 years agoAAPT2: expose return values through JNI.
Chris Warrington [Mon, 10 Apr 2017 10:49:59 +0000 (11:49 +0100)]
AAPT2: expose return values through JNI.

Test: Tests for JNI in the studio-master-dev branch.
Change-Id: I709595aabf31c9c2fea659c7af20a5c50d1e3d34

7 years agoMerge "Remove .(ll)ndk suffix from (ll)ndk_library" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 07:22:19 +0000 (07:22 +0000)]
Merge "Remove .(ll)ndk suffix from (ll)ndk_library" into oc-dev

7 years agoMerge "Move API for disabling an autofill service to the manager" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 06:10:07 +0000 (06:10 +0000)]
Merge "Move API for disabling an autofill service to the manager" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 11 Apr 2017 02:18:58 +0000 (19:18 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Revert "ViewRootImpl: Fix child lifetime."" into oc-dev
Bryce Lee [Tue, 11 Apr 2017 02:05:29 +0000 (02:05 +0000)]
Merge "Revert "ViewRootImpl: Fix child lifetime."" into oc-dev

7 years agoRevert "ViewRootImpl: Fix child lifetime."
Bryce Lee [Tue, 11 Apr 2017 01:59:37 +0000 (01:59 +0000)]
Revert "ViewRootImpl: Fix child lifetime."

This reverts commit ba29dbc3b38d9efb743d6fa7f9f8c4bb75c38b28.

The original commit causes apps such as phone and clock to not wake the
device.

Fixes: 37197491
Change-Id: I1b45cafbcbf12991d8e1e716e4d1751cd077c556

7 years agoMerge "ignore RemoteException from pm if shutdown is already on-going" into oc-dev
Keun-young Park [Tue, 11 Apr 2017 01:48:22 +0000 (01:48 +0000)]
Merge "ignore RemoteException from pm if shutdown is already on-going" into oc-dev

7 years agoBring back the priority feature for static RRO
Jaekyun Seok [Mon, 10 Apr 2017 04:48:58 +0000 (13:48 +0900)]
Bring back the priority feature for static RRO

Supporting the priority feature is requested by partners because they
want to layer RRO for their customers.
Applying the priority feature on non-static RRO isn't feasible because
their priority should be managed directly by users.

Test: building succeeded and tested on sailfish device.
Bug: 37185740
Change-Id: I8ef83c5e3178bd395ec7e6498764a535f24ef235

7 years agoRevert "Revert "Handle case when snapshot dimensions don't match""
Jorim Jaggi [Fri, 7 Apr 2017 14:33:17 +0000 (16:33 +0200)]
Revert "Revert "Handle case when snapshot dimensions don't match""

This reverts commit ba53d8ae410976709e1413b74173a791e8dead15.

Also fixes that we always had a size mismatch.

Test: TaskSnapshotSurfaceTest
Test: Open app in different orientation than snapshot, make sure
looks ok.

Bug: 36991071
Change-Id: If572b68fd72cec7679984fdff0be5905caba69f4
Fixes: 36703868

7 years agoMerge "Ensure the system boots with a halfway sane time/date" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 01:05:39 +0000 (01:05 +0000)]
Merge "Ensure the system boots with a halfway sane time/date" into oc-dev

7 years agoDeprecate TelephonyManager.getCellLocation()
Nathan Harold [Fri, 7 Apr 2017 17:56:05 +0000 (10:56 -0700)]
Deprecate TelephonyManager.getCellLocation()

This API has been long-marked for deprecation. It has numerous problems:
-It does not support LTE
-It returns a limited subset of information
-It uses old (and poorly-chosen) sentinel values for fields that are
 not provided.

Bug: 36076138
Test: compilation
Change-Id: I87004710e5d046d4534ad3a0a938540440b0e83b
(cherry picked from commit c12d6c5983a11ca989a85dd553d11c3583ff7aaf)

7 years agoRebase enabled overlays for every PackageParser.generateActivityInfo() call
Jaekyun Seok [Sat, 8 Apr 2017 23:56:00 +0000 (08:56 +0900)]
Rebase enabled overlays for every PackageParser.generateActivityInfo() call

PackageParser.generateActivityInfo() generates ApplicationInfo as well.
So enabled overlays should be rebased for the ApplicationInfo to keep
the overlay path info correctly.

Test: building succeeded and tested on sailfish device.
Bug: 37179769
Change-Id: I12727fd27c1d4cf37ad63b333792108a82efccd6

7 years agoMove API for disabling an autofill service to the manager
Svet Ganov [Tue, 11 Apr 2017 00:08:05 +0000 (17:08 -0700)]
Move API for disabling an autofill service to the manager

Test: the topic has a CTS test

bug:37170723

Change-Id: I2be18968ea8df0fd3fb070fe2efc3e811b0e5a76

7 years agoMerge "Cache mEphemeralAppsDisabled state" into oc-dev
TreeHugger Robot [Tue, 11 Apr 2017 00:43:35 +0000 (00:43 +0000)]
Merge "Cache mEphemeralAppsDisabled state" into oc-dev

7 years agoMerge "OverlayManagerService: Make broadcasts/updates explicit" into oc-dev
Adam Lesinski [Tue, 11 Apr 2017 00:04:36 +0000 (00:04 +0000)]
Merge "OverlayManagerService: Make broadcasts/updates explicit" into oc-dev

7 years agoImageReader/Writer: add usage flag support
Zhijun He [Thu, 23 Mar 2017 00:33:47 +0000 (17:33 -0700)]
ImageReader/Writer: add usage flag support

Also add an ImageWriter ctor to take additional arugment (format)

Test: ImageReader and Writer CTS tests
Bug: 32766711
Change-Id: I99e3862dd5b9a85c9df7879c14c84b68a35718ec

7 years agoMake sure system UI context has the same LoadedApk as system context
Adam Lesinski [Mon, 10 Apr 2017 23:35:19 +0000 (16:35 -0700)]
Make sure system UI context has the same LoadedApk as system context

When the system Application object is created, it should be shared by
both system and system UI context.

Bug: 37111478
Test: - Open settings
Test: - adb shell am crash com.android.settings
Test: - with crash dialog open, press volume keys
Test: - observe no crash
Change-Id: I2b4656680d25fe61fee69c01ee10522aac4e2942

7 years agoMerge "Fix READ_PHONE_NUMBERS label" into oc-dev
Chad Brubaker [Mon, 10 Apr 2017 23:34:17 +0000 (23:34 +0000)]
Merge "Fix READ_PHONE_NUMBERS label" into oc-dev

7 years agoMerge "Fix double-detach DualTimer bug" into oc-dev
TreeHugger Robot [Mon, 10 Apr 2017 23:33:42 +0000 (23:33 +0000)]
Merge "Fix double-detach DualTimer bug" into oc-dev

7 years agoDeprecated ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED
Jack Yu [Mon, 10 Apr 2017 19:45:18 +0000 (12:45 -0700)]
Deprecated ACTION_PRECISE_DATA_CONNECTION_STATE_CHANGED

This broadcast intent will no longer work for the apps
running in the background. Apps should use Connectivity
Manager to listen for network changes.

Test: Telephony sanity tests
bug: 37156634
Change-Id: I5297cc5a624857d3e11a6d5fdf9369ab99ce88d4

7 years agoMerge "AAPT2: Share split functionality between link and optimize" into oc-dev
TreeHugger Robot [Mon, 10 Apr 2017 23:22:43 +0000 (23:22 +0000)]
Merge "AAPT2: Share split functionality between link and optimize" into oc-dev

7 years agoMerge "Fix crash when measuring storage." into oc-dev
Daniel Nishi [Mon, 10 Apr 2017 23:12:17 +0000 (23:12 +0000)]
Merge "Fix crash when measuring storage." into oc-dev

7 years agoUpdate string description and char limits
Fan Zhang [Mon, 10 Apr 2017 22:53:42 +0000 (15:53 -0700)]
Update string description and char limits

Change-Id: Idba5977e614094c3a96b1101f1234f26433300c8
Fix: 36680364
Test: builds

7 years agoadd debug logs
Todd Kennedy [Mon, 10 Apr 2017 22:10:56 +0000 (15:10 -0700)]
add debug logs

Test: TreeHugger
Change-Id: I4b12acb43aa4af7a5587842fe5e2528fee8f4fed

7 years agoFix double-detach DualTimer bug
Bookatz [Mon, 10 Apr 2017 20:10:46 +0000 (13:10 -0700)]
Fix double-detach DualTimer bug

DualTimer attempted to detach its subTimer twice when reset(true) was
called, once explicitly and once via a call to the main timer. This
fixes that problem by getting rid of the explicit detach in reset.

Bug: 37208694
Test: runtest -x
frameworks/base/core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
and manually looked for "Removed unknown observer" error in logcat.

Change-Id: Ic5ff7d799d46236a74ab0825e108bef40bac0360

7 years agoignore RemoteException from pm if shutdown is already on-going
Keun-young Park [Fri, 7 Apr 2017 16:31:01 +0000 (09:31 -0700)]
ignore RemoteException from pm if shutdown is already on-going

- In new shutdown flow, adb is guaranteed to be alive while system server
  is alive.
- power manager can be killed before system server is killed.
- This leads into RemoteException for shutdown request to power manager.
- If shutdown is already on-going (=sys.powerctl set), the RemoteException
  should be ignored.

bug: 37096155
Test: adb shell svc power reboot|shutdown and check output to adb
Change-Id: Ia90a900d55123bd7c1bf57c90c49d35332ebfdf5

7 years agoUpdate fontchain_lint to test new emoji font
Roozbeh Pournader [Mon, 10 Apr 2017 20:52:20 +0000 (13:52 -0700)]
Update fontchain_lint to test new emoji font

The new emoji font has been update to Unicode 10/Emoji 5, and has a
new mechanism for flag fallbacks. It also shares glyphs between
gendered emoji and non-genders ones.

Test: make fontchain_lint passes
Bug: 34688862
Bug: 33276970
Bug: 34738377
Change-Id: I4d43b8c777deb93be1e6a784eaa109e2e7febd7d

7 years agoAdd getSelfManagedPhoneAccounts() TelecomManager API.
Tyler Gunn [Fri, 7 Apr 2017 21:57:37 +0000 (14:57 -0700)]
Add getSelfManagedPhoneAccounts() TelecomManager API.

This is consistent with the existing getCallCapablePhoneAccounts API
which is used to get the phone accounts capable of placing phone calls.

Test: CTS
Bug: 34159263
Merged-In: I1396c63a6882947cd66721528e53b6964a9091e0
Change-Id: I1396c63a6882947cd66721528e53b6964a9091e0
(cherry picked from commit 8931707058c2680878aacc5e6b4150a9aedc0f4d)

7 years agoMerge "send broadcast to the right users" into oc-dev
Todd Kennedy [Mon, 10 Apr 2017 20:10:11 +0000 (20:10 +0000)]
Merge "send broadcast to the right users" into oc-dev

7 years agoMerge "Do not set outActivity if value is null." into oc-dev
Wale Ogunwale [Mon, 10 Apr 2017 20:04:06 +0000 (20:04 +0000)]
Merge "Do not set outActivity if value is null." into oc-dev

7 years agoRemove .(ll)ndk suffix from (ll)ndk_library
Dan Willemsen [Fri, 7 Apr 2017 22:48:45 +0000 (15:48 -0700)]
Remove .(ll)ndk suffix from (ll)ndk_library

Soong handles these automatically now.

Bug: 33241851
Test: Android-aosp_arm.mk is the same before/after
Test: build.ninja is the same before/after
Test: build-aosp_arm.ninja is the same before/after
Change-Id: Ic10796e75bb886cc3f92c234714ab3e6c85112df

7 years agoCache mEphemeralAppsDisabled state
Fyodor Kupolov [Thu, 6 Apr 2017 23:08:59 +0000 (16:08 -0700)]
Cache mEphemeralAppsDisabled state

Init mEphemeralAppsDisabled in systemReady when settings provider
is available.

Registered content observers for ENABLE_EPHEMERAL_FEATURE and
WEB_ACTION_ENABLED.

Test: manual triggering enable_ephemeral_feature=1/0
Fixes: 36869938
Fixes: 36895304
Change-Id: I0051c45bb209d86041b967a409f8a95967df21dc

7 years agoEnsure the system boots with a halfway sane time/date
Christopher Tate [Mon, 10 Apr 2017 18:45:05 +0000 (11:45 -0700)]
Ensure the system boots with a halfway sane time/date

Just in case the kernel or vendor glue don't initialize the system time
sensibly, we now make sure the current time at boot is at least up to the
build time of the system disk image.

Bug 36736983
Test: manual

Change-Id: I46f776300ca4f5ad01396fc17c83fc833e1713f9

7 years agoMerge "NetworkPolicyManagerService: fix deadlock" into oc-dev
Sudheer Shanka [Mon, 10 Apr 2017 19:28:25 +0000 (19:28 +0000)]
Merge "NetworkPolicyManagerService: fix deadlock" into oc-dev

7 years agoMerge "Fix activity move between displays" into oc-dev
Andrii Kulian [Mon, 10 Apr 2017 19:20:31 +0000 (19:20 +0000)]
Merge "Fix activity move between displays" into oc-dev

7 years agosend broadcast to the right users
Todd Kennedy [Mon, 10 Apr 2017 19:12:11 +0000 (12:12 -0700)]
send broadcast to the right users

Change-Id: Ibda2d922cd58d6ca1c1a4ecdccaa25e5c71c6320
Fixes: 37192695
Test: manual; create restricted profile and see that users haven't been removed

7 years agoAAPT2: Share split functionality between link and optimize
Adam Lesinski [Tue, 4 Apr 2017 01:12:45 +0000 (18:12 -0700)]
AAPT2: Share split functionality between link and optimize

Generating splits should be possible to do from the optimize command.
This means that a lot of infrastructure around split APKs can be
shared by both the optimize and link phase.

Bug: 35925830
Change-Id: Ia88b9e4bff300a56353b2f7a4a2547c8eb43a299
Test: manual

7 years agoMerge "Just broadcast intent to bring up MTP/PTP as soon as switching function" into...
Jerry Zhang [Mon, 10 Apr 2017 18:51:53 +0000 (18:51 +0000)]
Merge "Just broadcast intent to bring up MTP/PTP as soon as switching function" into oc-dev

7 years agoMerge "Make visible only accounts for which authenticator supports contacts operation...
Dmitry Dementyev [Mon, 10 Apr 2017 18:30:47 +0000 (18:30 +0000)]
Merge "Make visible only accounts for which authenticator supports contacts operations for callers with READ_CONTACTS permission." into oc-dev

7 years agoDo not set outActivity if value is null.
Bryce Lee [Mon, 10 Apr 2017 18:06:17 +0000 (11:06 -0700)]
Do not set outActivity if value is null.

Recent changes passed down the nullable array to a method where it
was not being properly checked.

Change-Id: Ibf940f9225e4c9901869188aa55a04d0908015c3
Fixes: 37197666
Test: manual via bug repro steps.

7 years agoFix race condition in removeForegroundServiceFlag
Geoffrey Pitsch [Mon, 10 Apr 2017 17:12:58 +0000 (13:12 -0400)]
Fix race condition in removeForegroundServiceFlag

Also fix flake in our tests.

Test: runtest systemui-notification
Fixes: 36550043
Fixes: 36551790
Change-Id: I910e9233a17ef325bcb173c50c00d9982dc72224

7 years agoFix READ_PHONE_NUMBERS label
Chad Brubaker [Mon, 10 Apr 2017 17:48:35 +0000 (10:48 -0700)]
Fix READ_PHONE_NUMBERS label

Change-Id: If4a254092168d9f7b133a58b59dd946f64cefdae
Fixes:37207265
Test: builds

7 years agoDon't ensure config for activity that is about to be invisible
Wale Ogunwale [Mon, 10 Apr 2017 15:05:41 +0000 (08:05 -0700)]
Don't ensure config for activity that is about to be invisible

We were relaunching an activity in the docked stack that is been
dismissed because we call ensure configuration on it due to the
resize of it been moved to the fullscreen stack. This isn't needed
as the activity is about to become invisible since it is been moved
to a stack that isn't visible.
We now ensuring the configuration if:
- The stack the activity is in shouldn't be visible.
- The activity is currently stopped or stopping.

Change-Id: I6adac6b11a0db4b100e623e4074e169660206567
Fixes: 37118176
Test: Activity in docked stack isn't relaunched when dismissed.

7 years agoMerge "Add an API to enable disable safebrowsing in WebView" into oc-dev
TreeHugger Robot [Mon, 10 Apr 2017 16:36:41 +0000 (16:36 +0000)]
Merge "Add an API to enable disable safebrowsing in WebView" into oc-dev

7 years agoMerge "Add ICompanionDeviceManager.getAssociation overload with explicit userId"...
TreeHugger Robot [Mon, 10 Apr 2017 15:06:05 +0000 (15:06 +0000)]
Merge "Add ICompanionDeviceManager.getAssociation overload with explicit userId" into oc-dev

7 years agoMerge "Tethering: support Local-only Hotspot mode for downstreams" into oc-dev
Erik Kline [Mon, 10 Apr 2017 14:57:45 +0000 (14:57 +0000)]
Merge "Tethering: support Local-only Hotspot mode for downstreams" into oc-dev

7 years agoMerge "Update decor LayoutParams when window is already added." into oc-dev
Bryce Lee [Mon, 10 Apr 2017 14:22:44 +0000 (14:22 +0000)]
Merge "Update decor LayoutParams when window is already added." into oc-dev

7 years agoMerge "AutoSize TextView - fix measurements" into oc-dev
Andrei Stingaceanu [Mon, 10 Apr 2017 12:48:28 +0000 (12:48 +0000)]
Merge "AutoSize TextView - fix measurements" into oc-dev

7 years agoMerge "VPN: cancel always-on notification with new id" into oc-dev
Charles He [Mon, 10 Apr 2017 12:43:32 +0000 (12:43 +0000)]
Merge "VPN: cancel always-on notification with new id" into oc-dev

7 years agoTethering: support Local-only Hotspot mode for downstreams
Erik Kline [Fri, 10 Mar 2017 10:35:34 +0000 (19:35 +0900)]
Tethering: support Local-only Hotspot mode for downstreams

Test: as follows
    - built (bullhead)
    - flashed
    - booted
    - "runtest frameworks-net" passes
Bug: 31466854

Change-Id: Ia50e28c8ce0af8cdd7ac63217d921aff213668e7

7 years agoMerge "Fix mock of setApplicationRestrictions()" into oc-dev
Eric Sandness [Mon, 10 Apr 2017 12:18:08 +0000 (12:18 +0000)]
Merge "Fix mock of setApplicationRestrictions()" into oc-dev

7 years agoMerge "DngCreator: Populate baseline exposure tag" into oc-dev
TreeHugger Robot [Mon, 10 Apr 2017 10:03:57 +0000 (10:03 +0000)]
Merge "DngCreator: Populate baseline exposure tag" into oc-dev

7 years agoAutoSize TextView - fix measurements
Andrei Stingaceanu [Wed, 5 Apr 2017 15:51:00 +0000 (16:51 +0100)]
AutoSize TextView - fix measurements

The BoringLayout measurements for auto-size are
incorrect. Removed those and kept the StaticLayout
measurements.

Bug: 36940118
Test: cts-tradefed run cts-dev -m CtsWidgetTestCases -t\
      android.widget.cts.TextViewTest

Change-Id: I772ade08ed26efac05ca56cb7df8cfec0327633b