OSDN Git Service

android-x86/frameworks-base.git
7 years agoMove TextClassificationManagerTest to coretests
Abodunrinwa Toki [Thu, 13 Apr 2017 16:25:59 +0000 (17:25 +0100)]
Move TextClassificationManagerTest to coretests

Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 37296604
Change-Id: I8f53032dd63db18d98c6e26ee5689a5dafb3d98b

7 years agoMerge "Deprecate ActivityManager#getRunningServices" into oc-dev
Bryce Lee [Tue, 18 Apr 2017 14:10:53 +0000 (14:10 +0000)]
Merge "Deprecate ActivityManager#getRunningServices" into oc-dev

7 years agoMerge "FloatingToolbar: Rules for ordering menu items." into oc-dev
Abodunrinwa Toki [Tue, 18 Apr 2017 12:58:27 +0000 (12:58 +0000)]
Merge "FloatingToolbar: Rules for ordering menu items." into oc-dev

7 years agoMerge "Flatten the transitions to tethering and hotspot." into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 11:40:22 +0000 (11:40 +0000)]
Merge "Flatten the transitions to tethering and hotspot." into oc-dev

7 years agoMerge "Unhide MethodHandles.explicitCastArguments()" into oc-dev
Orion Hodson [Tue, 18 Apr 2017 10:39:59 +0000 (10:39 +0000)]
Merge "Unhide MethodHandles.explicitCastArguments()" into oc-dev

7 years agoMerge "Renamed ViewNode's getAutoFillHints() to getAutofillHints()" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 04:01:58 +0000 (04:01 +0000)]
Merge "Renamed ViewNode's getAutoFillHints() to getAutofillHints()" into oc-dev

7 years agoMerge "OtaDexopt: Add version support" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 03:07:14 +0000 (03:07 +0000)]
Merge "OtaDexopt: Add version support" into oc-dev

7 years agoMerge "Update doc string for getForbiddenPlmns() to READ_PHONE_STATE" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 02:50:50 +0000 (02:50 +0000)]
Merge "Update doc string for getForbiddenPlmns() to READ_PHONE_STATE" into oc-dev

7 years agoRenamed ViewNode's getAutoFillHints() to getAutofillHints()
Felipe Leme [Tue, 18 Apr 2017 01:50:14 +0000 (18:50 -0700)]
Renamed ViewNode's getAutoFillHints() to getAutofillHints()

Test: CtsAutoFillServiceTestCases pass
Bug: 35956626
Bug: 35364993
Change-Id: I2ad5a625da6ed4ff889315923c81cfd629e34074

7 years agoMerge "Turn down the preliminary foreground service API" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 01:48:25 +0000 (01:48 +0000)]
Merge "Turn down the preliminary foreground service API" into oc-dev

7 years agoMerge "AudioService: fix updating of stream alias for A11y" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 01:42:11 +0000 (01:42 +0000)]
Merge "AudioService: fix updating of stream alias for A11y" into oc-dev

7 years agoMerge "Shows navbar in SUW if the a11y button is requested" into oc-dev
Casey Burkhardt [Tue, 18 Apr 2017 01:41:48 +0000 (01:41 +0000)]
Merge "Shows navbar in SUW if the a11y button is requested" into oc-dev

7 years agoMerge "Defer showing pip menu activity until pip animation ends" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 01:38:58 +0000 (01:38 +0000)]
Merge "Defer showing pip menu activity until pip animation ends" into oc-dev

7 years agoMerge "Account for content insets in source rect hint for transition into PiP" into...
TreeHugger Robot [Tue, 18 Apr 2017 01:33:23 +0000 (01:33 +0000)]
Merge "Account for content insets in source rect hint for transition into PiP" into oc-dev

7 years agoMerge "DecorView: Avoid changing shadow size in Pinned Stack." into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 01:29:01 +0000 (01:29 +0000)]
Merge "DecorView: Avoid changing shadow size in Pinned Stack." into oc-dev

7 years agoMerge "If gnss service dies, then, upon receiving the death notification on system...
TreeHugger Robot [Tue, 18 Apr 2017 01:24:06 +0000 (01:24 +0000)]
Merge "If gnss service dies, then, upon receiving the death notification on system-server side: Proactively take down the whole system_server." into oc-dev

7 years agoMerge "A new power button mode to hide the IME when shown" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 01:12:59 +0000 (01:12 +0000)]
Merge "A new power button mode to hide the IME when shown" into oc-dev

7 years agoMerge "Finish impl of job queue: handle URI permissions." into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 01:07:10 +0000 (01:07 +0000)]
Merge "Finish impl of job queue: handle URI permissions." into oc-dev

7 years agoMerge "More small fixes/adjustments to job scheduler." into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 00:47:02 +0000 (00:47 +0000)]
Merge "More small fixes/adjustments to job scheduler." into oc-dev

7 years agoMerge "Revert "MediaSession: Add methods for setting shuffle and repeat modes"" into...
Sungsoo Lim [Tue, 18 Apr 2017 00:32:51 +0000 (00:32 +0000)]
Merge "Revert "MediaSession: Add methods for setting shuffle and repeat modes"" into oc-dev

7 years agoMerge "AOD: Implement redacted notificatinos" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 00:31:52 +0000 (00:31 +0000)]
Merge "AOD: Implement redacted notificatinos" into oc-dev

7 years agoMerge "Revert "MediaSession: Add methods for queue managements"" into oc-dev
Sungsoo Lim [Tue, 18 Apr 2017 00:31:28 +0000 (00:31 +0000)]
Merge "Revert "MediaSession: Add methods for queue managements"" into oc-dev

7 years agoMerge "MediaBrowser: Revert Search API" into oc-dev
Sungsoo Lim [Tue, 18 Apr 2017 00:26:18 +0000 (00:26 +0000)]
Merge "MediaBrowser: Revert Search API" into oc-dev

7 years agoMerge "AOD: Do not show guts nor snooze" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 00:07:58 +0000 (00:07 +0000)]
Merge "AOD: Do not show guts nor snooze" into oc-dev

7 years agoMerge "Fix issue #36858643: Runtime restart on OPR1.170323.002" into oc-dev
TreeHugger Robot [Tue, 18 Apr 2017 00:04:45 +0000 (00:04 +0000)]
Merge "Fix issue #36858643: Runtime restart on OPR1.170323.002" into oc-dev

7 years agoMerge "only log calling package for instant apps" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 23:57:33 +0000 (23:57 +0000)]
Merge "only log calling package for instant apps" into oc-dev

7 years agoMerge "Cleanup that wasn't uploaded with ag/2094132" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 23:53:49 +0000 (23:53 +0000)]
Merge "Cleanup that wasn't uploaded with ag/2094132" into oc-dev

7 years agoMerge "Tightening up rotation behavior for PIP (3/3)" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 23:50:22 +0000 (23:50 +0000)]
Merge "Tightening up rotation behavior for PIP (3/3)" into oc-dev

7 years agoMerge "AppErrors: Add test for AppErrorDialog.onCreate" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 23:41:33 +0000 (23:41 +0000)]
Merge "AppErrors: Add test for AppErrorDialog.onCreate" into oc-dev

7 years agoAudioService: fix updating of stream alias for A11y
Jean-Michel Trivi [Sat, 15 Apr 2017 01:13:26 +0000 (18:13 -0700)]
AudioService: fix updating of stream alias for A11y

VolumeStreamState.setAllIndexes():
  - don't do anything if the target and source VSS have the same
    stream type,
  - javadoc of (old+new) behavior.
When STREAM_ACCESSIBILITY becomes independent of any other stream,
  read the settings to restore the volumes previously set.

Test: see bug
Bug: 36286803
Change-Id: I2afcff3a93cc81f3958af252986ef1ac9c38899e

7 years agoMerge "TIF: Add preview parameter to filter only preview or non-preview channels...
TreeHugger Robot [Mon, 17 Apr 2017 23:25:20 +0000 (23:25 +0000)]
Merge "TIF: Add preview parameter to filter only preview or non-preview channels." into oc-dev

7 years agoA new power button mode to hide the IME when shown
Yohei Yukawa [Mon, 17 Apr 2017 17:35:27 +0000 (10:35 -0700)]
A new power button mode to hide the IME when shown

As discussed in Bug 33038203 on certain platforms there is a demand
that the power button can change the behavior depending on whether an
IME window is shown on the screen or not.  The behavior requested here
can be summarized into two parts:

  * Hide the IME window if it is shown [1]
  * Go to the home screen if no IME window is shown

This CL implements the above request by introducing a new config mode
for config_shortPressOnPowerBehavior.  Note the definition of when an
IME is shown is often tricky than people would expect.  The way this
CL is implemented is to propagate IME window state from
InputMethodManagerService (IMMS) to PhoneWindowManager via
WindowManagerService regarding when the back button on the NavBar for
phones/tablets should be shown as an IME dismiss key [2].

 [1]: Even with this CL the IME still is allowed to ignore the request
      to hide the software keyboard. Currently there is no official
      protocol to forcefully hide the software keyboard.  How to deal
      with such a situation is a long standing TODO task.
 [2]: Internally this is controlled by the following IMMS fields:
       - InputMethodManagerService#mImeWindowVis
       - InputMethodManagerService#mBackDisposition
      Note that those fields rely on self-report from the IME.  To be
      precise, the base implementation of InputMethodService is
      responsible for report back its internal state to IMMS when
      necessary.  The important point is that, although this could
      allow a malicious IME to confuse the system UI to some extent,
      supporting malicious IMEs is not clearly a goal of Android.
      Anyway, the definition of when an IME is shown is a kind of
      hot topic in several system services recently.  Hopefully we
      can come up with better definition and reliable mechanism in
      a future release.

Fixes: 33824860
Test: Manually verified as follows
       1. Change config_shortPressOnPowerBehavior to "5"
       2. Rebuilt the OS image and flash it to the device
       3. Make sure that the power button works like a home button
          if software keyboard is not shown.
       4. Open dialer and focus in to the text field shown on top
       5. Make sure that the AOSP keyboard is shown.
       6. Run 'adb shell dumpsys input_method' to observe the
          following line:
            mImeWindowVis=Active|Visible
       7. Tap the power button to make sure that the AOSP keyboard
          gets dismissed.
       8. Tap the power button again to make sure that it works
          as if a home button.
Test: Manually tested as follows
       1. Open dialer and focus in to the text field to show an IME
       2. Run 'adb shell dumpsys window policy' to make sure
            mDismissImeOnBackKeyPressed=true
       3. Tap the back button to dismiss the IME
       4. Run 'adb shell dumpsys window policy' to make sure
            mDismissImeOnBackKeyPressed=false
Change-Id: I20721547c73360a70b5fc5cbe06824d577d1768a

7 years agoOtaDexopt: Add version support
Andreas Gampe [Mon, 17 Apr 2017 18:27:58 +0000 (11:27 -0700)]
OtaDexopt: Add version support

Add version number to dexopt command. Current version is "2."

37256688
Test: m
Test: Manual OTA O (v2) -> O (v2)
Change-Id: I9fff673f3ba99833e88cf1c5c9625f42436ec150

7 years agoDefer showing pip menu activity until pip animation ends
Wale Ogunwale [Mon, 17 Apr 2017 21:16:43 +0000 (14:16 -0700)]
Defer showing pip menu activity until pip animation ends

This was causes additional churn in the system delaying the visibility
of the activity behind the one we are pipping. We now delay starting the
pip menu activity until the enter pip animation is done.
This doesn't fix the real issue where we don't wait for app transition
to be finished before starting pip, but it does make it much harder to
the user to trigger the case. Will do that in a follow-up CL.

Test: manual
Bug: 37420370
Change-Id: Ic0271d693d45c3e414b3abdf0ad24be44ff5ae5c

7 years agoMerge "Notification settings can contain dashboard settings" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 23:16:31 +0000 (23:16 +0000)]
Merge "Notification settings can contain dashboard settings" into oc-dev

7 years agoFinish impl of job queue: handle URI permissions.
Dianne Hackborn [Fri, 14 Apr 2017 01:04:31 +0000 (18:04 -0700)]
Finish impl of job queue: handle URI permissions.

The job queue now handles URI permissions associated with
the Intent of each job.  Just (kind-of) like Service!

Also do the second pass of locking in job scheduler, getting
rid of all the async dispatching on a handler, and just executing
calls right in line with simple locking.  This probably fixes
a few other race issues, and allows us to make sure that we
always finish a job correctly when dequeuing the last work (we
will always atomically dequeue and finish, so no new work can
slip in between).

And fix a little debug output in IntentFilter.

Test: ran CtsJobSchedulerTestCases, added new test for URI perms.

Change-Id: I52f700ef0cd5be3ff70050f9c0f5fe3e8a5ccac1

7 years agoAccount for content insets in source rect hint for transition into PiP
Winson Chung [Mon, 17 Apr 2017 21:21:44 +0000 (14:21 -0700)]
Account for content insets in source rect hint for transition into PiP

- As a part of transitioning into PiP, we remove the content insets, and
  as a result, we also need to adjust the source hint rect for the change
  in insets as well.

Bug: 37418994
Test: Enter PiP from YT, ensure no jump at the end

Change-Id: I74219b05c91d3c8b8466dd8fff4d6dd692f08725

7 years agoMerge "Disable crashing drop shadow tests" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 23:11:09 +0000 (23:11 +0000)]
Merge "Disable crashing drop shadow tests" into oc-dev

7 years agoMerge "Accessibility for Notification Inline Controls" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 23:07:49 +0000 (23:07 +0000)]
Merge "Accessibility for Notification Inline Controls" into oc-dev

7 years agoDecorView: Avoid changing shadow size in Pinned Stack.
Robert Carr [Mon, 17 Apr 2017 22:11:35 +0000 (15:11 -0700)]
DecorView: Avoid changing shadow size in Pinned Stack.

It seems at the end of the animation, sometimes we will
come to think we have focus, before we have properly
updated mStackId. This in-and-of itself seems like
somewhat of an issue...but I'm not inclined to dig too
deeply at the moment. For now just ensure a static shadow
size in the pinned stack.

Bug: 37425446
Test: Manual
Change-Id: I379f7a6de51670c90eacb52a5be5e17784be8ac5

7 years agoMerge "Warning if app targeting O posts a notification with no channel" into oc-dev
Geoffrey Pitsch [Mon, 17 Apr 2017 22:59:01 +0000 (22:59 +0000)]
Merge "Warning if app targeting O posts a notification with no channel" into oc-dev

7 years agoDeprecate ActivityManager#getRunningServices
Bryce Lee [Mon, 17 Apr 2017 22:52:50 +0000 (15:52 -0700)]
Deprecate ActivityManager#getRunningServices

This change deprecates the method akin to the previous deprecation of
ActivityManager#getRunningTasks. The documentation has been updated
to reflect the current limitations of the method.

Change-Id: I6f35309c1224fdf1f890bce3cc614be8aa343368
Fixes: 36937370
Test: documentation

7 years agoAOD: Implement redacted notificatinos
Adrian Roos [Mon, 17 Apr 2017 18:17:59 +0000 (11:17 -0700)]
AOD: Implement redacted notificatinos

Test: Turn on "show sensitive notifications on lockscreen", receive notification, observe AOD
Bug: 36610748
Change-Id: I981ef4cea7cefc76dcd55ebad9d05c758927dabb

7 years agoMerge "Fix up color issues as a result of theme change" into oc-dev
Jason Monk [Mon, 17 Apr 2017 22:32:49 +0000 (22:32 +0000)]
Merge "Fix up color issues as a result of theme change" into oc-dev

7 years agoMerge "Status bar updates" into oc-dev
Jason Monk [Mon, 17 Apr 2017 22:32:09 +0000 (22:32 +0000)]
Merge "Status bar updates" into oc-dev

7 years agoMore small fixes/adjustments to job scheduler.
Dianne Hackborn [Mon, 17 Apr 2017 20:34:51 +0000 (13:34 -0700)]
More small fixes/adjustments to job scheduler.

- JobServiceEngine now takes a concrete Service instead of
generic Context in its constructor, since it really must be
associated with a real Service.

- Expand documentation of how dequeueWork() operates.

- Fix some job scheduler implementation to hopefully actually
match the docs: transfer remaining executing work to the new
job, and actually correctly transfer state from old and new
jobs if we are rescheduling due to a true return from onStopJob().

Test: bit CtsJobSchedulerTestCases:*
Change-Id: Ia66797049883eefb566264f930070afb69d469b1

7 years agoMerge "Storage API polishing." into oc-dev
Jeff Sharkey [Mon, 17 Apr 2017 22:26:35 +0000 (22:26 +0000)]
Merge "Storage API polishing." into oc-dev

7 years agoMerge "AOD: Track missed AOD time ticks" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 22:16:16 +0000 (22:16 +0000)]
Merge "AOD: Track missed AOD time ticks" into oc-dev

7 years agoMerge "Fix date going missing in QS" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 22:06:05 +0000 (22:06 +0000)]
Merge "Fix date going missing in QS" into oc-dev

7 years agoAppErrors: Add test for AppErrorDialog.onCreate
Adrian Roos [Mon, 17 Apr 2017 21:50:22 +0000 (14:50 -0700)]
AppErrors: Add test for AppErrorDialog.onCreate

Also refactor to make sure we always remove the TIMEOUT
message and clear the mProc.mCrashDialog field, even when
dismissing without the Handler.

Bug: 37351370
Test: runtest -c com.android.server.am.AppErrorDialogTest frameworks-services
Change-Id: If9fb348e8ed83c6c1c0f48fa7fd27ffd33b530f2

7 years agoonly log calling package for instant apps
Todd Kennedy [Mon, 17 Apr 2017 21:53:49 +0000 (14:53 -0700)]
only log calling package for instant apps

Change-Id: I71b09fd130f27d5814638fdaaec33f759b0b2346
Fixes: 37425492
Test: manual

7 years agoMerge "Include vndk/hardware_buffer.h for AHardwareBuffer_getNativeHandle" into oc-dev
Jesse Hall [Mon, 17 Apr 2017 21:52:20 +0000 (21:52 +0000)]
Merge "Include vndk/hardware_buffer.h for AHardwareBuffer_getNativeHandle" into oc-dev

7 years agoTightening up rotation behavior for PIP (3/3)
Winson Chung [Tue, 11 Apr 2017 20:31:44 +0000 (13:31 -0700)]
Tightening up rotation behavior for PIP (3/3)

- Fixing up edge case when SysUI resizing conflicts with updating the
  display rotation bounds.  When an interaction causes both a display
  rotation and a resize from SystemUI, we should defer the resize animation
  until the rotation has been propagated to SystemUI, otherwise the bounds
  used will be incorrect.

Bug: 36879891
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: Ife1b7ab0c2f1f11f33cbc9614778ff49a28c79f6

7 years agoCleanup that wasn't uploaded with ag/2094132
Mike Tsao [Thu, 13 Apr 2017 23:19:28 +0000 (16:19 -0700)]
Cleanup that wasn't uploaded with ag/2094132

I saw that Tree Hugger had verified, and hit submit without
remembering to repo upload the last patch set containing toddke's
most recent set of suggestions.

Bug: 37192695
Test: runtest -c com.android.server.pm.PackageManagerServiceTest frameworks-services
Change-Id: I4d6376165aaa615007891ba045c9b5c34e4b0394
(cherry picked from commit 338d332873c431c46057eae3c93ed79351ddd2e4)

7 years agoMerge "Add tests for ag/2086796" into oc-dev
Mike Tsao [Mon, 17 Apr 2017 21:46:32 +0000 (21:46 +0000)]
Merge "Add tests for ag/2086796" into oc-dev

7 years agoNotification settings can contain dashboard settings
Julia Reynolds [Mon, 17 Apr 2017 21:24:07 +0000 (17:24 -0400)]
Notification settings can contain dashboard settings

Bug: 36562211
Test: NotificationSettingsTests, RunSettingsRoboTests
Change-Id: I4da338a90e0f094202bae73f9bd8622b37a3acf6

7 years agoMerge "Add user to channel/group modification callbacks." into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 21:26:49 +0000 (21:26 +0000)]
Merge "Add user to channel/group modification callbacks." into oc-dev

7 years agoTurn down the preliminary foreground service API
Christopher Tate [Fri, 14 Apr 2017 22:07:06 +0000 (15:07 -0700)]
Turn down the preliminary foreground service API

The NotificationManager.startServiceInForeground() experiment is over,
and will not ship as API, so it's time to tidy up and get rid of it.

Bug 36130212
Test: manual

Change-Id: I834d1ce059aa464ff27f69f5e5d3625cc5e61d8a

7 years agoAOD: Do not show guts nor snooze
Adrian Roos [Mon, 17 Apr 2017 21:16:20 +0000 (14:16 -0700)]
AOD: Do not show guts nor snooze

Fixes: 37179751
Test: receive notification while phone is off, try longpress or accessing the gear icon through swiping, ensure neither works
Change-Id: If18ac166eac28cd7ad05a12f670b2ddbad9e29b8

7 years agoMerge "Schedule PIP mode changes at the beginning/end of the transitions." into oc-dev
Winson Chung [Mon, 17 Apr 2017 21:06:29 +0000 (21:06 +0000)]
Merge "Schedule PIP mode changes at the beginning/end of the transitions." into oc-dev

7 years agoAccessibility for Notification Inline Controls
Geoffrey Pitsch [Thu, 6 Apr 2017 13:52:11 +0000 (09:52 -0400)]
Accessibility for Notification Inline Controls

Send WINDOW_STATE_CHANGED event in status bar
Disable falsing when in touch navigation
Accessibility string for enable/disable switch
Bug: 34840327
Test: runtest systemui
Change-Id: I60cc7e49d9e6323e23a17183b8b10c9d857501bb

7 years agoMerge "OEM single-build/multi-SKU via dynamic RRO support" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 21:02:43 +0000 (21:02 +0000)]
Merge "OEM single-build/multi-SKU via dynamic RRO support" into oc-dev

7 years agoDisable crashing drop shadow tests
Chris Craik [Mon, 17 Apr 2017 20:58:21 +0000 (13:58 -0700)]
Disable crashing drop shadow tests

Bug: 36272398
Test: HWUI unit tests now run without crashing

Change-Id: I2877ed184640e5043d33b10605db71dde501fd2a

7 years agoFix issue #36858643: Runtime restart on OPR1.170323.002
Dianne Hackborn [Sat, 15 Apr 2017 00:57:33 +0000 (17:57 -0700)]
Fix issue #36858643: Runtime restart on OPR1.170323.002

We had a layering problem between alarm manager, device idle
controller, and activity manager.  The layering should be, from
bottom to top:

activity manager
alarm manager
device idle controller.

However in the path of activity manager's PendingIntent.send(),
it would do a direct call to device idle controller.  It was
careful to do this without its lock held, but that isn't enough.
In this case, alarm manager is doing send() with its lock held,
expecting that to be safe, but it ends up causing it to call up
in to device idle controller via the activity manager (in order
to update the temporary whitelist).

To fix this, activity manager now has an internal data structure
representing pending temp whitelist requests, and all it does is
add to that during the call in, scheduling a message to later
dispatch those to device idle controller.  But to make things
correct, we need to use this data stucture to act like the uid
is already on the temp whitelist even before we actually dispatch
that message.  (So we don't have races with things calling
startService() for example.)  So all the existing stuff looking
at the temp whitelist that is handed down by device idle controller
will also consult with this data structure of pending changes.

Test: bit CtsAppTestCases:ActivityManagerProcessStateTest

Change-Id: Id444b7ad3e694dc977c7f4fa236fbad855ce4066

7 years agoMerge "Enhance PinItemRequest javadoc" into oc-dev
Makoto Onuki [Mon, 17 Apr 2017 20:50:38 +0000 (20:50 +0000)]
Merge "Enhance PinItemRequest javadoc" into oc-dev

7 years agoMerge "Allow to finish session when all views are gone" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 20:44:57 +0000 (20:44 +0000)]
Merge "Allow to finish session when all views are gone" into oc-dev

7 years agoMerge "AOD: disable quicksettings while dozing" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 20:41:02 +0000 (20:41 +0000)]
Merge "AOD: disable quicksettings while dozing" into oc-dev

7 years agoMerge "Update api for ServiceStateProvider" into oc-dev
Jordan Liu [Mon, 17 Apr 2017 20:37:25 +0000 (20:37 +0000)]
Merge "Update api for ServiceStateProvider" into oc-dev

7 years agoMerge "getApplicationInfo() should throw NameNotFoundException" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 20:35:55 +0000 (20:35 +0000)]
Merge "getApplicationInfo() should throw NameNotFoundException" into oc-dev

7 years agoMerge "Enhance Chronometer to better support Swedish countdowns." into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 20:15:16 +0000 (20:15 +0000)]
Merge "Enhance Chronometer to better support Swedish countdowns." into oc-dev

7 years agoFix up color issues as a result of theme change
Jason Monk [Mon, 17 Apr 2017 20:04:30 +0000 (16:04 -0400)]
Fix up color issues as a result of theme change

Test: visual
Change-Id: I9adc8b85b40e3ac2df6099655c7479c74675b7bb
Fixes: 37372025
Fixes: 37362926
Fixes: 37358881
Fixes: 37326340

7 years agoMerge "Camera: Override enableZsl based on SDK version" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 19:49:07 +0000 (19:49 +0000)]
Merge "Camera: Override enableZsl based on SDK version" into oc-dev

7 years agoShows navbar in SUW if the a11y button is requested
Casey Burkhardt [Fri, 14 Apr 2017 02:49:58 +0000 (19:49 -0700)]
Shows navbar in SUW if the a11y button is requested

Adds a utility class to detect the state of the accessibility
button.

Test: Robolectric tests in 2110420 to verify behavior.
Bug: 37295649
Change-Id: I25828a0daaeb7f0048fe63741bc929ffac084336

7 years agoAdd tests for ag/2086796
Mike Tsao [Tue, 11 Apr 2017 20:57:31 +0000 (13:57 -0700)]
Add tests for ag/2086796

Fixes: 37192695
Change-Id: Id0b3cbf986490d64cdc5592541dee1b004853503
Test: added
(cherry picked from commit cfe4ffecceee005ff6bc79dcc1637f44f82bd43a)

7 years agoWarning if app targeting O posts a notification with no channel
Geoffrey Pitsch [Mon, 17 Apr 2017 19:28:40 +0000 (15:28 -0400)]
Warning if app targeting O posts a notification with no channel

Uses toast, but does not prevent the notification from posting.

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

7 years agoFix date going missing in QS
Jason Monk [Mon, 17 Apr 2017 19:22:30 +0000 (15:22 -0400)]
Fix date going missing in QS

Test: Dismiss alarm while QS is expanded
Change-Id: I491deda22848af08db36dcffcb678f6ce2f1bdda
Fixes: 37259783

7 years agoStatus bar updates
Jason Monk [Thu, 13 Apr 2017 19:27:04 +0000 (15:27 -0400)]
Status bar updates

 - Wifi moves to right of cell
 - Cell data and roaming indicator swap places
 - Data disabled and no internet on cell look the same
 - Don't show wifi in QS signal cluster, it has its status
   right below.

Test: visual && runtest systemui
Fixes: 36717491
Change-Id: I16ebe6fb6dd519526a1e174753c8ce08c713d405

7 years agoMerge "Make NETWORK_RECOMMENDATIONS_ENABLED hidden." into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 19:02:58 +0000 (19:02 +0000)]
Merge "Make NETWORK_RECOMMENDATIONS_ENABLED hidden." into oc-dev

7 years agoMerge "ContextHubService: Pass on query requests" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 18:51:43 +0000 (18:51 +0000)]
Merge "ContextHubService: Pass on query requests" into oc-dev

7 years agoMerge changes I22b55b73,Id050f2f5 into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 18:51:01 +0000 (18:51 +0000)]
Merge changes I22b55b73,Id050f2f5 into oc-dev

* changes:
  Only foreground service notifications can be colorized
  Fixed a regression where the scrim would be black

7 years agoMerge "AOD: Fix icon color when updating on AOD" into oc-dev
Adrian Roos [Mon, 17 Apr 2017 18:48:37 +0000 (18:48 +0000)]
Merge "AOD: Fix icon color when updating on AOD" into oc-dev

7 years agoMerge "Fix issue #35811414: Allow manifest receivers for ACTION_UID_REMOVED" into...
TreeHugger Robot [Mon, 17 Apr 2017 18:38:57 +0000 (18:38 +0000)]
Merge "Fix issue #35811414: Allow manifest receivers for ACTION_UID_REMOVED" into oc-dev

7 years agoAOD: disable quicksettings while dozing
Adrian Roos [Mon, 17 Apr 2017 18:38:16 +0000 (11:38 -0700)]
AOD: disable quicksettings while dozing

Test: Trigger ambient display / AOD, verify quicksettings is not expandable
Bug: 37303800
Change-Id: I694360f4d728ff9714036d0b92176c922ff53e9a

7 years agoMerge "Remove FrameLayout around toolbar" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 18:25:48 +0000 (18:25 +0000)]
Merge "Remove FrameLayout around toolbar" into oc-dev

7 years agoMerge "Properly decode colors spaces in BitmapRegionDecoder" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 18:20:10 +0000 (18:20 +0000)]
Merge "Properly decode colors spaces in BitmapRegionDecoder" into oc-dev

7 years agoStorage API polishing.
Jeff Sharkey [Sun, 16 Apr 2017 19:18:35 +0000 (13:18 -0600)]
Storage API polishing.

Based on API council feedback, switch to using real UUID objects
instead of Strings.  Since UUID is a general-purpose utility class
that will be passed around quite a bit, add it to Parcel and Bundle.

Define well-known namespaced UUID values for "default" and "primary
physical" storage devices, which will let us annotate a bunch of
things with @NonNull.

Define new extras for MANAGE_STORAGE intent that apps can use to
signal where and how much space they'd like the user to free up.

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

7 years agoUpdate api for ServiceStateProvider
Jordan Liu [Wed, 1 Mar 2017 02:15:07 +0000 (18:15 -0800)]
Update api for ServiceStateProvider

ServiceStateProvider defines public constants in
Telephony.ServiceStateTable so update the api.

Test: flashed onto device locally
Bug: 33756364
Change-Id: I62b6b8bcfdf909aa36e44441f8672f98f581f896
Merged-In: I62b6b8bcfdf909aa36e44441f8672f98f581f896

7 years agoMerge "TV PIP: Remove onboarding activity and overlay activity" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 17:53:15 +0000 (17:53 +0000)]
Merge "TV PIP: Remove onboarding activity and overlay activity" into oc-dev

7 years agoMerge "DO NOT MERGE Expose phone account register/unregister intents." into oc-dev
Tyler Gunn [Mon, 17 Apr 2017 17:40:44 +0000 (17:40 +0000)]
Merge "DO NOT MERGE Expose phone account register/unregister intents." into oc-dev

7 years agoDO NOT MERGE Expose phone account register/unregister intents.
Tyler Gunn [Fri, 14 Apr 2017 20:43:30 +0000 (13:43 -0700)]
DO NOT MERGE Expose phone account register/unregister intents.

These were previously @SystemApi.  Retaining the existing SystemAPI
behavior which sends the intents to those with a private permission.
Extending to ALSO send these intents to the default dialer app as well
using an explicit intent.
Cherry-pick from aosp-master to resolve merge conflicts.

Test: Manual
Bug: 37106957
Merged-In: Ifb72870105be5ba024af196a8c3165a9afb397ab
Change-Id: Ifb72870105be5ba024af196a8c3165a9afb397ab
(cherry picked from commit d9da6ce9938b4222cfb409f172cacfe4cf1593e6)

7 years agoMerge "Don't back up disabled apps" into oc-dev
Chris Tate [Mon, 17 Apr 2017 17:35:46 +0000 (17:35 +0000)]
Merge "Don't back up disabled apps" into oc-dev

7 years agoUpdate doc string for getForbiddenPlmns() to READ_PHONE_STATE
Nathan Harold [Fri, 14 Apr 2017 20:13:11 +0000 (13:13 -0700)]
Update doc string for getForbiddenPlmns() to READ_PHONE_STATE

For whatever reason when I chose the permission for this API I
chose the internal READ_PRIVILEGED_PHONE_STATE. Updating this to
use the equivalent public permission (since this is a public API)
requires me to use READ_PHONE_STATE

Bug: 35261110
Test: docstring only change. Compilation
Merged-In: I3647271798b33040751905c13b20da727eacfd9b
Change-Id: I3647271798b33040751905c13b20da727eacfd9b
(cherry picked from commit 04908fcd1759b0818017cc3ebfedc7d9aa8eecc1)

7 years agoMerge "Fix EmergencyCryptKeeperText initialization" into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 17:28:33 +0000 (17:28 +0000)]
Merge "Fix EmergencyCryptKeeperText initialization" into oc-dev

7 years agoMerge "media: Address API review comments" into oc-dev
Hangyu Kuang [Mon, 17 Apr 2017 17:04:17 +0000 (17:04 +0000)]
Merge "media: Address API review comments" into oc-dev

7 years agoMerge "Temporary remove resource-display caching" into oc-dev
Andrii Kulian [Mon, 17 Apr 2017 16:59:56 +0000 (16:59 +0000)]
Merge "Temporary remove resource-display caching" into oc-dev

7 years agoMerge "Don't allow stacks above pinned stack." into oc-dev
Bryce Lee [Mon, 17 Apr 2017 16:57:11 +0000 (16:57 +0000)]
Merge "Don't allow stacks above pinned stack." into oc-dev

7 years agoTemporary remove resource-display caching
Andrii Kulian [Mon, 17 Apr 2017 02:28:02 +0000 (19:28 -0700)]
Temporary remove resource-display caching

An instance of ResourceKey may correspond to different instances
of Resources at different points in time. This can lead to old
instances of Display returned from cache even if resources have
changed.
We need to ensure 1:1 correspondence between Resources and
ResourceKey before using this kind of cache. Disabling it for now
to fix CTS.

Change-Id: Ib53550c4f2d969c06a570ab6051529269b04b38d
Fixes: 37328072
Fixes: 37305567
Bug: 33430498
Test: android.server.cts.ActivityManagerAppConfigurationTests
Test: android.app.cts.DisplayTest#testRotation

7 years agoMerge "Synchronously update APs in during forceUpdate." into oc-dev
TreeHugger Robot [Mon, 17 Apr 2017 16:34:49 +0000 (16:34 +0000)]
Merge "Synchronously update APs in during forceUpdate." into oc-dev

7 years agoRemove FrameLayout around toolbar
Fan Zhang [Fri, 14 Apr 2017 19:27:18 +0000 (12:27 -0700)]
Remove FrameLayout around toolbar

The FrameLayout is useless, and cause problems if dev needs to customize
actionbar in code.

Change-Id: Iae6861e1e60576f4b4e175d01c7cd57c0775ecd7
Fix: 37207527
Test: visual

7 years agoEnhance Chronometer to better support Swedish countdowns.
Aurimas Liutikas [Fri, 14 Apr 2017 21:51:59 +0000 (14:51 -0700)]
Enhance Chronometer to better support Swedish countdowns.

Adds a method isTheFinalCountDown that allows to correctly
determine whether it is the final countdown.

Test: None
Change-Id: I786ae3455479bac25ccf25efba1c3dce18185117