OSDN Git Service

android-x86/frameworks-base.git
7 years agoOBEX: Add required parameters TAG ID's for PBAP 1.2
Hemant Gupta [Sat, 17 Oct 2015 14:10:53 +0000 (19:40 +0530)]
OBEX: Add required parameters TAG ID's for PBAP 1.2

Add required OBEX application parameters TAGID's and length
declarations required to support PBAP 1.2 specification.

Test: Connected with Remote PBAP Client supporting PBAP 1.2 and
      verified that connection and transfer happens over L2CAP.
      Connected with Remote PBAP Client supporting PBAP 1.1 and
      and verified that connection and transfer happens over RFCOMM.
      TestTracker: 89053
Bug: 33011817
Change-Id: I8a772b0dddf6ecf74b057e12d7596421c0e0f558
(cherry picked from commit 9e91b62c1fa4f6c51f53ddb3f2155f345be30a2a)

7 years agoMerge "Removing legacy default thumbnail logic." into oc-dev
Winson Chung [Fri, 9 Jun 2017 17:50:44 +0000 (17:50 +0000)]
Merge "Removing legacy default thumbnail logic." into oc-dev

7 years agoMerge "Replace fonts of unknown origin" into oc-dev
Clara Bayarri [Fri, 9 Jun 2017 17:31:14 +0000 (17:31 +0000)]
Merge "Replace fonts of unknown origin" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
TreeHugger Robot [Fri, 9 Jun 2017 16:02:23 +0000 (16:02 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Fix the finding logic of MediaButtonSession" into oc-dev
Sungsoo Lim [Fri, 9 Jun 2017 15:38:42 +0000 (15:38 +0000)]
Merge "Fix the finding logic of MediaButtonSession" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 9 Jun 2017 14:01:59 +0000 (07:01 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Fix deadlock when create alert window notification" into oc-dev
Wale Ogunwale [Fri, 9 Jun 2017 13:07:13 +0000 (13:07 +0000)]
Merge "Fix deadlock when create alert window notification" into oc-dev

7 years agoMerge "Prioritize reused activity's stack over computed stack." into oc-dev
Bryce Lee [Fri, 9 Jun 2017 11:11:12 +0000 (11:11 +0000)]
Merge "Prioritize reused activity's stack over computed stack." into oc-dev

7 years agoFix the finding logic of MediaButtonSession
Sungsoo [Fri, 9 Jun 2017 03:59:47 +0000 (12:59 +0900)]
Fix the finding logic of MediaButtonSession

When we find a media button session with the given UID, we should
ignore the sessions whose playback state is not set.

Bug: 62373831
Test: passed CtsMediaTestCases
Change-Id: I484c888c5bdbceb85dd4524c1353906efc0c4f02

7 years agoMerge "Fixed an issue where the notification could stay userlocked" into oc-dev
Selim Cinek [Fri, 9 Jun 2017 04:25:36 +0000 (04:25 +0000)]
Merge "Fixed an issue where the notification could stay userlocked" into oc-dev

7 years agoMerge "Fixed a bug where systemui could crash while cloning" into oc-dev
Selim Cinek [Fri, 9 Jun 2017 04:21:59 +0000 (04:21 +0000)]
Merge "Fixed a bug where systemui could crash while cloning" into oc-dev

7 years agoMerge "Properly run window animations at vsync-sf (1/2)" into oc-dev
Jorim Jaggi [Fri, 9 Jun 2017 04:06:38 +0000 (04:06 +0000)]
Merge "Properly run window animations at vsync-sf (1/2)" into oc-dev

7 years agoMerge "Boost android.anim and wm lock sections to -10 during transition" into oc-dev
Jorim Jaggi [Fri, 9 Jun 2017 04:05:31 +0000 (04:05 +0000)]
Merge "Boost android.anim and wm lock sections to -10 during transition" into oc-dev

7 years agoProperly run window animations at vsync-sf (1/2)
Jorim Jaggi [Thu, 8 Jun 2017 22:40:38 +0000 (15:40 -0700)]
Properly run window animations at vsync-sf (1/2)

- Add new Choreographer instance that runs on vsync-sf
- Use this new Choreographer for WindowAnimator, and remove all
the hacks around it

Test: Open apps and close apps, notice no stutter
Test: Screen zoom animations
Test: go/wm-smoke
Bug: 36631902
Change-Id: I988ae25645effc3ac20efa7cb9b68f23444da0d0

7 years agoFix deadlock when create alert window notification
Wale Ogunwale [Thu, 8 Jun 2017 23:51:48 +0000 (16:51 -0700)]
Fix deadlock when create alert window notification

Don't hold WM lock when calling into notification manager which
can call into activity manager.

Test: Make sure alert window notification is displayed
Change-Id: Id8831878093f8079f815a830ff8acdfad99d48cb
Fixes: 62458061

7 years agoMerge "Bluetooth: fix connectGatt overload invocations" into oc-dev
Jakub Pawlowski [Thu, 8 Jun 2017 23:51:21 +0000 (23:51 +0000)]
Merge "Bluetooth: fix connectGatt overload invocations" into oc-dev

7 years agoMerge "Fixes the animation and state when docking a task by drag" into oc-dev
TreeHugger Robot [Thu, 8 Jun 2017 23:21:05 +0000 (23:21 +0000)]
Merge "Fixes the animation and state when docking a task by drag" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Thu, 8 Jun 2017 23:04:51 +0000 (23:04 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Thu, 8 Jun 2017 23:03:52 +0000 (23:03 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoBoost android.anim and wm lock sections to -10 during transition
Jorim Jaggi [Wed, 7 Jun 2017 21:33:04 +0000 (14:33 -0700)]
Boost android.anim and wm lock sections to -10 during transition

-4 is not enough if we have to compete against RT and main thread
from top app that have -10. Boost it more during app transitions

Test: Inspect systrace, make sure priorities are right, including
getting reset after the transition.
Test: Open Chrome 100x
Test: go/wm-smoke

Change-Id: Id6b060b8aafded67b4bae61b6e8960e37976b096
Fixes: 36631902

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dev
Bill Yi [Thu, 8 Jun 2017 22:34:26 +0000 (22:34 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dev

7 years agoMerge "Revert "always adjust per-user application info"" into oc-dev
Adam Lesinski [Thu, 8 Jun 2017 21:14:02 +0000 (21:14 +0000)]
Merge "Revert "always adjust per-user application info"" into oc-dev

7 years agoRevert "always adjust per-user application info"
Adam Lesinski [Thu, 8 Jun 2017 20:16:39 +0000 (20:16 +0000)]
Revert "always adjust per-user application info"

This reverts commit e0046cecb079ec4d063444cee64795a6b734e6e7.

Reason for revert: Regresses UI theme

Bug: 62445682
Bug: 36561125
Change-Id: I9b60bd8e4eb89129368d38e83c0036ab459a524e

7 years agoBluetooth: fix connectGatt overload invocations
Jakub Pawlowski [Wed, 7 Jun 2017 20:45:33 +0000 (13:45 -0700)]
Bluetooth: fix connectGatt overload invocations

Merged-In: I726252e85e78bff2c9585332d2748a0d92a9f6d3
Test: sl4a GattOverBrEdrTest
Bug: 62387078
Change-Id: I5bfb87683e25f8862587e8000eb4c9bb6ff14f99

7 years agoRemoving legacy default thumbnail logic.
Winson Chung [Thu, 8 Jun 2017 20:46:12 +0000 (13:46 -0700)]
Removing legacy default thumbnail logic.

- With the move to snapshots, we no longer keep a local cache of the
  thumbnails and tasks which have no thumbnails will be handled
  in the snapshot from the system (if it uses FLAG_SECURE) or in
  Recents directly through the task description background color.

  In the case of this bug, the default thumbnail (1x1 white bitmap) was
  incorrectly being applied because the system could not take a snapshot
  of the app due to DRM.

Bug: 62447895
Test: Open any app with DRM, play video, tap Recents

Change-Id: I02e87cf513eb9750b39d54d085b0c19645b7ed52

7 years agoFixed a bug where systemui could crash while cloning
Selim Cinek [Thu, 8 Jun 2017 20:20:08 +0000 (13:20 -0700)]
Fixed a bug where systemui could crash while cloning

Because cloning wasn't synchronized, the notification
could become a non-root temporarily which in turn could
lead to a crash.
1. We're now properly synchronizing the cloning, such that
this can't happen anymore
2. We're now only cloning the old statusbar notification lightly
instead of heavily to avoid this altogether

Test: manual, update decoratedcustomview notifications really fast
Change-Id: Ia6525eec64ad9a26956ca2198e20198f55b2173c
Fixes: 62181033

7 years agoMerge "Add carrier config for allowing USSD requests via telephony manger APIs."...
Tyler Gunn [Thu, 8 Jun 2017 20:06:52 +0000 (20:06 +0000)]
Merge "Add carrier config for allowing USSD requests via telephony manger APIs." into oc-dev

7 years agoMerge "Fix NPE in MtpDocumentsProviderTests" into oc-dev
TreeHugger Robot [Thu, 8 Jun 2017 18:25:24 +0000 (18:25 +0000)]
Merge "Fix NPE in MtpDocumentsProviderTests" into oc-dev

7 years agoMerge "Ensure the menu items are properly recreated after a density change" into...
TreeHugger Robot [Thu, 8 Jun 2017 17:39:37 +0000 (17:39 +0000)]
Merge "Ensure the menu items are properly recreated after a density change" into oc-dev

7 years agoMerge "Fix crash when deleting task" into oc-dev
Winson Chung [Thu, 8 Jun 2017 17:37:53 +0000 (17:37 +0000)]
Merge "Fix crash when deleting task" into oc-dev

7 years agoFixed an issue where the notification could stay userlocked
Selim Cinek [Thu, 8 Jun 2017 16:54:58 +0000 (09:54 -0700)]
Fixed an issue where the notification could stay userlocked

When collapsing the shade while draging down (using fingerprint)
notifications would stay userlocked and would appear in a small
height instead of their regular size.

Test:  runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/StatusBarWindowViewTest.java
Change-Id: Ibd97a6ce063bc2fcd76f11e010e781a61bd76b5f
Fixes: 36469584

7 years agoMerge "Move QS cell indicator back into mobile data tile" into oc-dev
Jason Monk [Thu, 8 Jun 2017 16:35:21 +0000 (16:35 +0000)]
Merge "Move QS cell indicator back into mobile data tile" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 8 Jun 2017 16:13:11 +0000 (09:13 -0700)]
Import translations. DO NOT MERGE

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

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 8 Jun 2017 16:03:09 +0000 (09:03 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Ensure only test print services enabled - framework" into oc-dev
TreeHugger Robot [Thu, 8 Jun 2017 15:55:05 +0000 (15:55 +0000)]
Merge "Ensure only test print services enabled - framework" into oc-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 8 Jun 2017 14:49:22 +0000 (07:49 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Fix unexpected DatePicker validation" into oc-dev
TreeHugger Robot [Thu, 8 Jun 2017 14:36:07 +0000 (14:36 +0000)]
Merge "Fix unexpected DatePicker validation" into oc-dev

7 years agoMerge "Revert "Temporarily enable screen wakelock logging in WM"" into oc-dev
Wale Ogunwale [Thu, 8 Jun 2017 14:33:03 +0000 (14:33 +0000)]
Merge "Revert "Temporarily enable screen wakelock logging in WM"" into oc-dev

7 years agoMerge "Fixed a bug where the navigation notification would flicker" into oc-dev
Selim Cinek [Thu, 8 Jun 2017 14:07:14 +0000 (14:07 +0000)]
Merge "Fixed a bug where the navigation notification would flicker" into oc-dev

7 years agoDelete legacy "wifi interface name guessing" behaviour
Erik Kline [Thu, 8 Jun 2017 08:48:48 +0000 (17:48 +0900)]
Delete legacy "wifi interface name guessing" behaviour

Now that Wi-Fi always passes us the AP interface name (and mode)
we no longer need to guess which interface on which we're supposed
to be starting IP serving (either tethering or local-only hotspot).

Test: as follows
    - built
    - flashed
    - booted
    - TetheringTest passes
Bug: 32163131
Bug: 62343300

Change-Id: I6019410ee5adff4929690d35ba09294765fcd6a4

7 years agoMerge "Overall improvement on Autofill javadocs for autofillable APIs." into oc-dev
Felipe Leme [Thu, 8 Jun 2017 05:21:02 +0000 (05:21 +0000)]
Merge "Overall improvement on Autofill javadocs for autofillable APIs." into oc-dev

7 years agoMerge "Update Android ID (SSAID) to exclude package name in generation." into oc-dev
Mark Rathjen [Thu, 8 Jun 2017 04:43:56 +0000 (04:43 +0000)]
Merge "Update Android ID (SSAID) to exclude package name in generation." into oc-dev

7 years agoMerge "Fix AeModeAndLock test cases. Bug: 36103813" into oc-dev
Yuchen He [Thu, 8 Jun 2017 04:32:31 +0000 (04:32 +0000)]
Merge "Fix AeModeAndLock test cases. Bug: 36103813" into oc-dev

7 years agoMerge "Avoid background getTotalTimeLocked misreporting" into oc-dev
Adam Bookatz [Thu, 8 Jun 2017 02:43:14 +0000 (02:43 +0000)]
Merge "Avoid background getTotalTimeLocked misreporting" into oc-dev

7 years agoEnsure only test print services enabled - framework
Svetoslav Ganov [Thu, 8 Jun 2017 01:50:02 +0000 (18:50 -0700)]
Ensure only test print services enabled - framework

Test: cts-tradefed run cts-dev -m CtsPrintTestCas

bug:62232727

Change-Id: I1050272586d1c03dc1b1dfdb8b10e258912a249b

7 years agoMerge changes Iea24e5a1,If71385bc into oc-dev
TreeHugger Robot [Thu, 8 Jun 2017 01:40:03 +0000 (01:40 +0000)]
Merge changes Iea24e5a1,If71385bc into oc-dev

* changes:
  expand who can uninstall an instant app
  Final changes to protect the API surface

7 years agoMerge "Confirm a11y shortcut service for correct user" into oc-dev
Phil Weaver [Thu, 8 Jun 2017 01:37:43 +0000 (01:37 +0000)]
Merge "Confirm a11y shortcut service for correct user" into oc-dev

7 years agoFixes the animation and state when docking a task by drag
Matthew Ng [Mon, 5 Jun 2017 21:06:32 +0000 (14:06 -0700)]
Fixes the animation and state when docking a task by drag

There was 3 issues in this bug.

First the wrong stack id was used to defer and continue updating bounds
that broke a lot of the animation. This was fixed by using the recents
stack id instead of home.

Secondly, the wrong transit was passed into AppTransition.java getting
the wrong animation for recents to be docked, defering surface layouts
ensures that the correct transition is gained in that transaction.

Lastly, remove the starting window for the docked-by-drag-from-recents
transition because it was causing the window container to freeze its
bounds causing clipping issues and 2 flickers (where it appears over
the thumbnail) during the animation. Added a TODO to fix it later.

Test: go/wm-smoke
Bug: 34099271
Change-Id: Iaf0dffe5c2f5108c9946c9ea23c6e3fd6a49c34d

7 years agoFix NPE in MtpDocumentsProviderTests
Daichi Hirono [Thu, 18 May 2017 03:54:25 +0000 (12:54 +0900)]
Fix NPE in MtpDocumentsProviderTests

Previous patch ag/2250238 broke MtpDocumentsProviderTests since
ServiceIntentSender's constructor refers the context argument which is
null in the tests.

The CL adds a test version of the constructor which does not use the
context argument in it.

Bug: 38363487
Test: MtpDocumentsProviderTests
Change-Id: I68a1d8cb6997499e5069c33f70fd0f675aaad77c
(cherry picked from commit c5949bd39c788e98edd9862c7ac12e822a906ad5)

7 years agoFixed a bug where the navigation notification would flicker
Selim Cinek [Tue, 6 Jun 2017 00:50:19 +0000 (17:50 -0700)]
Fixed a bug where the navigation notification would flicker

Change-Id: Id68ba339407287d67d8db888515389e79e09ece3
Fixes: 62339936
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/NotificationCustomViewWrapperTest.java

7 years agoMerge "Passing callingUid to internal methods" into oc-dev
TreeHugger Robot [Thu, 8 Jun 2017 01:00:47 +0000 (01:00 +0000)]
Merge "Passing callingUid to internal methods" into oc-dev

7 years agoFix AeModeAndLock test cases.
Yuchen He [Fri, 12 May 2017 01:49:22 +0000 (18:49 -0700)]
Fix AeModeAndLock test cases.
Bug: 36103813

Change-Id: Ie2e9938f6ae607f5fced5048c5ff5e41e4f7836b
(cherry picked from commit e256bc9f66c6812f02326432ed22f7adca47cc9c)

7 years agoMerge "Add timeout to StrictMode flash." into oc-dev
Jeff Sharkey [Thu, 8 Jun 2017 00:32:30 +0000 (00:32 +0000)]
Merge "Add timeout to StrictMode flash." into oc-dev

7 years agoPrioritize reused activity's stack over computed stack.
Bryce Lee [Wed, 7 Jun 2017 23:54:11 +0000 (16:54 -0700)]
Prioritize reused activity's stack over computed stack.

It is possible that an activity in one stack may be reused in
another. For example, if an activity is started from a launcher
intent, but then is started from a home intent (from a
ResolverActivity). We currently do not move the activity, leading
to a inconsistency as the window manager proceeds to position the
task in the focus stack.

This changelist addresses the issue by using the reused activity's
stack rather than the computed stack.

Change-Id: Ie8a099e57e05a20b247bd0c97df8cda69e17c1bb
Fixes: 62402289
Test: go/wm-smoke

7 years agoMerge "Update KernelUidCpuFreqTimeReader to handle uid removals." into oc-dev
Sudheer Shanka [Thu, 8 Jun 2017 00:08:40 +0000 (00:08 +0000)]
Merge "Update KernelUidCpuFreqTimeReader to handle uid removals." into oc-dev

7 years agoMerge "Fixed an issue where the icons had the wrong color" into oc-dev
Ian Pedowitz [Thu, 8 Jun 2017 00:00:16 +0000 (00:00 +0000)]
Merge "Fixed an issue where the icons had the wrong color" into oc-dev

7 years agoMerge "Keyguard: Increase clock size" into oc-dev
Adrian Roos [Wed, 7 Jun 2017 23:54:00 +0000 (23:54 +0000)]
Merge "Keyguard: Increase clock size" into oc-dev

7 years agoFix crash when deleting task
Winson Chung [Wed, 7 Jun 2017 23:53:03 +0000 (16:53 -0700)]
Fix crash when deleting task

- There are several code paths from the loaders (which run on a background
  thread) which post the call to notify an update on the task which was
  loaded. Not all of these are cleared when a task is unbound, and can
  result in a notifyTaskDataLoaded() after the task is unbound. For now,
  just ensure that the TaskView is bound to the Task before updating.

Bug: 62194807
Test: Have not been able to repro, just ensure that recents thumbnails still
      load

Change-Id: Id9301025275f4b14a2832f7f6c1ebd5a1ce124ea

7 years agoMerge "Revert "Coordinate configuration changes and window frame size."" into oc-dev
Bryce Lee [Wed, 7 Jun 2017 23:23:17 +0000 (23:23 +0000)]
Merge "Revert "Coordinate configuration changes and window frame size."" into oc-dev

7 years agoMerge "Remove Wifi Badges from platform." into oc-dev
TreeHugger Robot [Wed, 7 Jun 2017 23:19:04 +0000 (23:19 +0000)]
Merge "Remove Wifi Badges from platform." into oc-dev

7 years agoMerge "DO NOT MERGE: Kill Wifi Badging in OC." into oc-dev
TreeHugger Robot [Wed, 7 Jun 2017 23:18:07 +0000 (23:18 +0000)]
Merge "DO NOT MERGE: Kill Wifi Badging in OC." into oc-dev

7 years agoRevert "Coordinate configuration changes and window frame size."
Bryce Lee [Wed, 7 Jun 2017 23:01:56 +0000 (23:01 +0000)]
Revert "Coordinate configuration changes and window frame size."

This reverts commit afb45bba8379df530182dae882ec70329423dcfe.

Bug: 32839232
Fixes: 62424393
Change-Id: Ifaa0176e18100ec85b8c81268a26fb16ffe9b5f3

7 years agoPassing callingUid to internal methods
Todd Kennedy [Tue, 6 Jun 2017 16:15:46 +0000 (09:15 -0700)]
Passing callingUid to internal methods

Sometimes callers want to clear the calling identity [to avoid permission
calls]. In this case, allow passing the original calling identity to
internal methods.

Test: Manual; create profile account and observe launcher still works cross profile
Test: bit FrameworksServicesTests:com.android.server.pm.ShortcutManagerTest{1..10}
Change-Id: I73f8ad4b2dc1895227c3fcb14f3f1f18f600562f
Fixes: 38349978

7 years agoFixed an issue where the icons had the wrong color
Selim Cinek [Wed, 7 Jun 2017 22:51:29 +0000 (15:51 -0700)]
Fixed an issue where the icons had the wrong color

The color of the icons was taken from the ambient view
and wasn't updated when dark changed.

Change-Id: I472e76ff9d4d92500faae5517f10bdeb2658936d
Fixes: 62423352
Test: runtest -x packages/SystemUI/tests/src/com/android/systemui/statusbar/ExpandableNotificationRowTest.java

7 years agoexpand who can uninstall an instant app
Todd Kennedy [Wed, 7 Jun 2017 21:46:02 +0000 (14:46 -0700)]
expand who can uninstall an instant app

More than just those with the ACCESS_INSTANT_APP
permission should be able to uninstall instant apps.
Any uid that can see instant apps [that includes
the shell and some others] should be able to
uninstall them.

Change-Id: Iea24e5a1cdb369bdf29e7cf5db7977db63faedfc
Fixes: 62406346
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest

7 years agoMerge "Update strings for modem restricted state." into oc-dev
TreeHugger Robot [Wed, 7 Jun 2017 21:42:33 +0000 (21:42 +0000)]
Merge "Update strings for modem restricted state." into oc-dev

7 years agoMerge "Also inherit FLAG_FORCE_DRAWS_STATUS_BAR_BACKGROUND" into oc-dev
TreeHugger Robot [Wed, 7 Jun 2017 21:40:00 +0000 (21:40 +0000)]
Merge "Also inherit FLAG_FORCE_DRAWS_STATUS_BAR_BACKGROUND" into oc-dev

7 years agoMerge "Fixed a flicker of group notifications" into oc-dev
Selim Cinek [Wed, 7 Jun 2017 20:47:47 +0000 (20:47 +0000)]
Merge "Fixed a flicker of group notifications" into oc-dev

7 years agoMerge "Run explicit GC to clear references to bitmaps earlier." into oc-dev
TreeHugger Robot [Wed, 7 Jun 2017 20:46:15 +0000 (20:46 +0000)]
Merge "Run explicit GC to clear references to bitmaps earlier." into oc-dev

7 years agoAdd timeout to StrictMode flash.
Jeff Sharkey [Wed, 7 Jun 2017 20:34:38 +0000 (14:34 -0600)]
Add timeout to StrictMode flash.

Consider an app that requests that a StrictMode border be shown, and
then immediately crashes.  We'd end up showing the bars indefinitely,
which is a terrible UX.

This CL enqueues a second message to tear down the bars if nobody
asks for them to be taken down within 1 second.

Test: manual app that crashed after showing violation bars
Bug: 37787765
Change-Id: I45d2078d0dcaa94e8f24087d028f5f06d12c4349

7 years agoKeyguard: Increase clock size
Adrian Roos [Wed, 7 Jun 2017 19:18:05 +0000 (12:18 -0700)]
Keyguard: Increase clock size

Test: observe that keyguard clock looks slightly bigger now
Change-Id: Ic55582abb1cf82bf104afce7d1271e456c78aa1b
Fixes: 62105028

7 years agoMerge "Notify registered packages of visible accounts change when authenticators...
Jian Sun [Wed, 7 Jun 2017 20:31:00 +0000 (20:31 +0000)]
Merge "Notify registered packages of visible accounts change when authenticators get uninstalled." into oc-dev

7 years agoAvoid background getTotalTimeLocked misreporting
Bookatz [Wed, 7 Jun 2017 19:30:07 +0000 (12:30 -0700)]
Avoid background getTotalTimeLocked misreporting

It has been discovered that for background values of
AggregatedWakelock, Sync, Job, and partial wakelocks,
the value of getTotalTimeLocked is wrong and often very
negative. getTotalDurationMsLocked, which should provide the exact same
value in all of these cases (since background data is never pooled),
does not have this problem. So while the source of the bug is sought
out, we should use getTotalDurationMsLocked instead of getTotalTimeLocked for
these data.

Bug: 62352334
Test: cts-tradefed run cts-dev -m CtsDumpsysHostTestCases -t android.dumpsys.cts.BatteryStatsDumpsysTest
Change-Id: I78e84368615578483ab8e9e5f0ee1d067491be08

7 years agoFinal changes to protect the API surface
Todd Kennedy [Fri, 2 Jun 2017 14:38:20 +0000 (07:38 -0700)]
Final changes to protect the API surface

This is it. The last set of changes to protect instant apps
from full apps.

Bug: 35871369
Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Test: Manual; install instant app and ensure it runs
Change-Id: If71385bcc9a5637590fbd99b0ffcd5ed8809509c

7 years agoMerge "Revert "Change default for group alert behavior"" into oc-dev
Julia Reynolds [Wed, 7 Jun 2017 20:12:21 +0000 (20:12 +0000)]
Merge "Revert "Change default for group alert behavior"" into oc-dev

7 years agoDO NOT MERGE: Kill Wifi Badging in OC.
Sundeep Ghuman [Tue, 6 Jun 2017 19:27:25 +0000 (12:27 -0700)]
DO NOT MERGE: Kill Wifi Badging in OC.

Speed labeling is turned on in O-DR hence this CL should not be merged
into master. Using the merged in tag below which implements speed
labeling (ag/2346102) to prevent this CL from being merged into upstream
branches which need scoring ui.

Merged-In: I0fd96da6a06dafd8c8ebb435a2725ab155bd26ed

Bug: b/35628911
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java

Change-Id: I5740f68be25d5ec297f1f7dc3b3e59203cec2eb5

7 years agoAlso inherit FLAG_FORCE_DRAWS_STATUS_BAR_BACKGROUND
Jorim Jaggi [Wed, 7 Jun 2017 19:38:19 +0000 (12:38 -0700)]
Also inherit FLAG_FORCE_DRAWS_STATUS_BAR_BACKGROUND

To make sure we won't cause SystemUI to draw the black status bar
background while the starting window is visible.

Test: Warm open chrome
Test: go/wm-smoke
Bug: 38136531
Change-Id: I8dfc0926cafef9d41e78a637523316ac46ce05df

7 years agoMerge "Better error message for AVD" into oc-dev
Doris Liu [Wed, 7 Jun 2017 19:31:09 +0000 (19:31 +0000)]
Merge "Better error message for AVD" into oc-dev

7 years agoMerge "Remove old FUSE bypass now that we have sdcardfs." into oc-dev
Jeff Sharkey [Wed, 7 Jun 2017 19:03:54 +0000 (19:03 +0000)]
Merge "Remove old FUSE bypass now that we have sdcardfs." into oc-dev

7 years agoMove QS cell indicator back into mobile data tile
Jason Monk [Wed, 7 Jun 2017 17:02:47 +0000 (13:02 -0400)]
Move QS cell indicator back into mobile data tile

Remove it from the header and drop it back in its old location.

This reverts commit 10b4c8a4ab3fc1fd55e5a636066e210ad17cf92b.

Test: runtest systemui
Fixes: 62331189
Change-Id: I087589c256894e0972656619e665b6a16536ce6c

7 years agoMerge "always adjust per-user application info" into oc-dev
Todd Kennedy [Wed, 7 Jun 2017 18:40:53 +0000 (18:40 +0000)]
Merge "always adjust per-user application info" into oc-dev

7 years agoMerge "Fix IndexOutOfRange in dumpsys content." into oc-dev
Makoto Onuki [Wed, 7 Jun 2017 18:33:19 +0000 (18:33 +0000)]
Merge "Fix IndexOutOfRange in dumpsys content." into oc-dev

7 years agoMerge "Fixed an issue where USER_ALL notifications were showing" into oc-dev
Selim Cinek [Wed, 7 Jun 2017 18:13:25 +0000 (18:13 +0000)]
Merge "Fixed an issue where USER_ALL notifications were showing" into oc-dev

7 years agoMerge "Make DND tile primary toggle remember favorite zen" into oc-dev
Jason Monk [Wed, 7 Jun 2017 17:17:43 +0000 (17:17 +0000)]
Merge "Make DND tile primary toggle remember favorite zen" into oc-dev

7 years agoUpdate strings for modem restricted state.
Sanket Padawe [Tue, 6 Jun 2017 22:12:04 +0000 (15:12 -0700)]
Update strings for modem restricted state.

Test: manual
Bug: 37377132
Change-Id: Iace44143623034c0255d7cceff839a4712972ee2

7 years agoMerge "Clear native shader when Paint shader changes" into oc-dev
John Reck [Wed, 7 Jun 2017 16:42:43 +0000 (16:42 +0000)]
Merge "Clear native shader when Paint shader changes" into oc-dev

7 years agoMerge "Use correct timebase in fg service notifications." into oc-dev
Daniel Sandler [Wed, 7 Jun 2017 14:56:41 +0000 (14:56 +0000)]
Merge "Use correct timebase in fg service notifications." into oc-dev

7 years agoReplace fonts of unknown origin
Clara Bayarri [Wed, 7 Jun 2017 14:35:55 +0000 (15:35 +0100)]
Replace fonts of unknown origin

There are fonts that we are not sure where they came from,
replace with fonts we created ourselves.

The res/font/ folder does not build with gradle when there is
a ttx file in it, so fonts there have been copied from elsewhere
in the tree and contain copyright and licensing inside the font.
There is also a new readme in the root folder for the test projects
using these to point this out.

Bug: 37726227
Test: bit FrameworksCoreTests:android.content.res.FontResourcesParserTest
Change-Id: I43364abb9d466e9673902246b0d7c3043af619c1

7 years agoRevert "Change default for group alert behavior"
Julia Reynolds [Wed, 7 Jun 2017 14:12:09 +0000 (14:12 +0000)]
Revert "Change default for group alert behavior"

This reverts commit 8f7828ebe7fc6d87e0de112cfda2823fd5818cb2.

Mutes sound on legacy apps that use their summaries to make sound

Change-Id: I635b1428ee247c0b7753f58343637e64da1c981d

Fixes: 62387153

7 years agoMerge "Fixed NPE in TaskStack.stepAppWindowAnimation" into oc-dev
Wale Ogunwale [Wed, 7 Jun 2017 13:45:02 +0000 (13:45 +0000)]
Merge "Fixed NPE in TaskStack.stepAppWindowAnimation" into oc-dev

7 years agoMake DND tile primary toggle remember favorite zen
Jason Monk [Wed, 7 Jun 2017 13:15:54 +0000 (09:15 -0400)]
Make DND tile primary toggle remember favorite zen

Test: manual
Change-Id: I2b589dbabf4bd7704d4df968ecbd986604e3b757
Fixes: 37794901

7 years agoMerge "Change Android default icon b/35314247 Test: manual" into oc-dev
TreeHugger Robot [Wed, 7 Jun 2017 07:50:14 +0000 (07:50 +0000)]
Merge "Change Android default icon b/35314247 Test: manual" into oc-dev

7 years agoMerge "Actually wait until the display is ready." into oc-dev
TreeHugger Robot [Wed, 7 Jun 2017 07:22:52 +0000 (07:22 +0000)]
Merge "Actually wait until the display is ready." into oc-dev

7 years agoMerge "Vibrator: Allow priority vibrations in low-power mode for accessibility."...
TreeHugger Robot [Wed, 7 Jun 2017 06:33:03 +0000 (06:33 +0000)]
Merge "Vibrator: Allow priority vibrations in low-power mode for accessibility." into oc-dev

7 years agoMerge "Fix crash in test" into oc-dev
TreeHugger Robot [Wed, 7 Jun 2017 04:12:44 +0000 (04:12 +0000)]
Merge "Fix crash in test" into oc-dev

7 years agoMerge "Better handle non-recommended use and warn against it in JavaDoc" into oc-dev
Doris Liu [Wed, 7 Jun 2017 03:43:07 +0000 (03:43 +0000)]
Merge "Better handle non-recommended use and warn against it in JavaDoc" into oc-dev

7 years agoBetter handle non-recommended use and warn against it in JavaDoc
Doris Liu [Tue, 6 Jun 2017 21:56:02 +0000 (14:56 -0700)]
Better handle non-recommended use and warn against it in JavaDoc

BUG: 62386748
Test: Follow repro steps in b/62358678. The issue is no
longer reproducible

Change-Id: Ic3cec7c4947296224edb5365d81988d4da7ee5e1

7 years agoVibrator: Allow priority vibrations in low-power mode for accessibility.
Tyler Freeman [Fri, 5 May 2017 00:23:35 +0000 (17:23 -0700)]
Vibrator: Allow priority vibrations in low-power mode for accessibility.

This is mainly for Wear devices that don't have speakers.

Bug: 37543478

Test: Manual:
1. Activate low power mode `adb shell dumpsys battery unplug && adb shell settings put global low_power 1`
2. Then see if Alarm/Timer will vibrate.
3. Send a Hangout Test notification, make sure it does NOT vibrate.

On phones there should be no change. Alarms will not vibrate.

Change-Id: Ia6dffa7e528886e7c84390dbb33b44f298c7afa4

7 years agoFixed a flicker of group notifications
Selim Cinek [Wed, 7 Jun 2017 01:07:47 +0000 (18:07 -0700)]
Fixed a flicker of group notifications

When replacing a supressed group with it's summary, the icon
would flicker. We're now suppressing icon animations of
replaced notifications.

Test: add notification and children 1 by 1 and observe no flickering
Change-Id: I79440e473296e766ab80832ce74f450aee1af8ea
Fixes: 38459207

7 years agoMerge "Don't report focusableViewAvailable on add" into oc-dev
Evan Rosky [Wed, 7 Jun 2017 01:02:13 +0000 (01:02 +0000)]
Merge "Don't report focusableViewAvailable on add" into oc-dev