Commit Graph

18660 Commits

Author SHA1 Message Date
TreeHugger Robot
632dc16bbb Merge "Import translations. DO NOT MERGE" 2016-11-16 07:25:36 +00:00
Bill Yi
8ec130dcfd Import translations. DO NOT MERGE
Change-Id: I434734cca2145f095b82b1978997f03225fcacc9
Auto-generated-cl: translation import
2016-11-15 15:17:47 -08:00
Jason Monk
630c5879d6 Merge "Protect against crash in fragment startup race" 2016-11-15 21:04:21 +00:00
Jason Monk
7a95288453 Protect against crash in fragment startup race
Because fragments can be hard.

Change-Id: I1eec2caf3729beaac2d36a97ba7cff422e546f44
Fixes: 32881893
Test: Look at device, verify no sysui crash dialog
2016-11-15 15:41:46 -05:00
TreeHugger Robot
252a44e867 Merge "Null check file.list() results." 2016-11-15 20:28:33 +00:00
Julia Reynolds
80d20c54e7 Merge "Volume slider should always show the proper level." 2016-11-15 19:23:33 +00:00
Andrew Sapperstein
fdc5ac4c50 Null check file.list() results.
If there are no files in "vendor/overlay", file.list() returns
null.

Test: manual
Change-Id: I65d0c5fae3293804efa1c18d02d640f1f95c2015
Fixes: 32832139
2016-11-15 10:45:06 -08:00
Julia Reynolds
705727e3b0 Remove 'until next alarm'. am: 5edde5f18a
am: 177a976a69

Change-Id: Ibc7fa4b34ea4822e61c78477007cef862dfe0127
2016-11-15 14:19:52 +00:00
Julia Reynolds
5f84c1941a Volume slider should always show the proper level.
Even if the phone is in vibrate mode.

Test: manual
Change-Id: Ie5a996ac2a43920b62aac0402e597a1babf3c289
2016-11-15 14:15:35 +00:00
Julia Reynolds
177a976a69 Remove 'until next alarm'.
am: 5edde5f18a

Change-Id: I0f247f52155f78cefe0d2e850e9d5f1ca65dfb42
2016-11-15 14:13:18 +00:00
TreeHugger Robot
c329ea3e48 Merge "Update usage of ActivityManagerNative." 2016-11-14 21:21:02 +00:00
TreeHugger Robot
ceb9ec6dbf Merge "2D recents: full screen view and semi-transparent dark background" 2016-11-14 19:35:09 +00:00
Sudheer Shanka
dc589ac82b Update usage of ActivityManagerNative.
- Remove references to ActivityManagerProxy.
- Add isSystemReady to ActivityManager.

Bug: 30977067
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test android.server.cts
      adb shell am instrument -e class com.android.server.am.ActivityManagerTest,com.android.server.am.TaskStackChangedListenerTest \
          -w com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Change-Id: I07390b6124fb1515821f5c0b37baf6ae74adc8fa
2016-11-14 11:27:12 -08:00
TreeHugger Robot
b439a4528a Merge "Import translations. DO NOT MERGE" 2016-11-14 18:33:34 +00:00
Julia Reynolds
5edde5f18a Remove 'until next alarm'.
Test: manual
Bug: 32773368
Change-Id: I03db93d9371327a8e32929ce7fda66729cfe4a82
2016-11-14 18:18:41 +00:00
Manu Cornet
d71ec6347a 2D recents: full screen view and semi-transparent dark background
This matches the newest mocks better than the previous version.

Bug: 32101881
Test: Locally on local Ryu device
Change-Id: I85769215a48b7a4f1e7b52bd7572eb48ca333471
2016-11-14 09:49:20 -08:00
TreeHugger Robot
357c6e5e5b Merge "Fixing issue where PIP did not stay minimized after rotation." 2016-11-12 04:59:13 +00:00
Bill Yi
86bd9692ce Import translations. DO NOT MERGE
Change-Id: I058edcc8c60b22fb11f0d37c9434f98be62c22a1
Auto-generated-cl: translation import
2016-11-11 18:59:36 -08:00
Winson Chung
d5a01599f7 Fixing issue where PIP did not stay minimized after rotation.
- Ensure that we reapply the minimized offset after applying the snap
  fraction to the rotated bounds
- Fixing small issue where we weren't bottom aligning the PIP when the
  visible IME changes size (but is not made invisible)
- Also fixing an issue where the touch gesture continually allowed
  swiping offscreen even after dragging the PIP a distance. Now, if no
  gesture handles the drag, then the default gesture will disallow
  offscreen dragging once it handles the move.
- Shrinking PIP slightly to fit proportions of screen.

Test: Enable minimization in SysUI tuner, put PIP into minimized state,
      rotate the screen.  This is not final UX and the CTS tests will
      be updated to reflect this behavior once it is final.

Change-Id: I15c851a0bcf5f867289bc5ad50d298f82a103308
2016-11-11 16:25:04 -08:00
Manu Cornet
9c8280da11 DO NOT MERGE - 2-dimensional Recents activity.
am: c13df1eb30

Change-Id: Idfcea35ba54b69e780bb9159055ea296dd9f14a9
2016-11-12 00:06:49 +00:00
Manu Cornet
058c4a2abd Fix a bug where the wrong task was selected coming from home
The following behavior was buggy: Home -> toggle recents -> toggle
recents again.

This reverts to using the same model (task stack where older tasks are
first) as other Recents, and only reversing the order when placing
views on screen. Then the same logic as existing Recents implementation
can be used.

Bug: 32101881
Test: Tested behavior locally on Ryu. Existing tests should cover.
Change-Id: I52899af4581921902cd781dee707caea694d27e8
2016-11-11 14:07:08 -08:00
Manu Cornet
a68684d66a Merge "Move the 'next launch target' logic into the task stack" 2016-11-11 21:02:11 +00:00
Manu Cornet
c13df1eb30 DO NOT MERGE - 2-dimensional Recents activity.
This is a simple first version in the spirit of small, incremental CLs.
It is fully functional but the following will come in later changes:

* Split screen support
* Potential animations
* Alt-tab behavior
* Relayout on orientation changes

The new activity is only started when a specific system property is set.

Test: Tested new activity behavior on local Ryu. Added tests for layout logic.
Bug: 32101881
Merged-In: I550f6e7ea0de3937dbf80e5f0294676cfe567d47
Change-Id: I46a537646e98b312d831510e1d331948888ae5ce
2016-11-11 12:57:07 -08:00
Manu Cornet
26eec78179 Move the 'next launch target' logic into the task stack
For better reusability in other flavors of Recents.

Bug: 32101881
Test: Behavior is covered by existing automated tests.
Change-Id: Ibe39cbae0b5973210cad478a9c5ab75280ee0ac2
2016-11-11 10:30:17 -08:00
Manu Cornet
1c714db4d0 Allow fallthrough taps on Recents background to go Home
In some cases the recents view isn't entirely occupied by task views.
Taps on the empty space should take the user home, which was mostly
supported except for this small missing part.

Bug: 32101881
Test: Locally on Ryu device.
Change-Id: I264202397f7408608aa444a421765715fb1e74ba
2016-11-11 09:28:34 -08:00
Jason Monk
3713151425 Merge changes I52007c69,I6503947e,Icf677f4a,I2ae7ed61
* changes:
  Unit testing for fragments.
  Plugin fragment support
  Move QS to a fragment
  Fragments in SysUI!
2016-11-11 16:38:57 +00:00
Jason Monk
bd199a2b93 Merge "android.provider.Setting test utilities" 2016-11-11 16:28:39 +00:00
Jason Monk
8852905b0b Unit testing for fragments.
Set up a base class for testing fragments that will generate the host
and run the fragment through some lifecycle checks to make sure it
does ok with standard lifecycle.

Fragment tests will also automatically check for any sort of leaks
related to bindings, receivers, or other callbacks in sysui. This
requires changing the statusbar.policy classes with callbacks to
have a common interface.

Lastly also fixes a few lifecycle bugs in QS found from the above
tests.

Bug: 32609190
Test: runtest systemui
Change-Id: I52007c696c2fd41914bba4ba9d8055f2b564a7d8
2016-11-11 11:20:10 -05:00
Jason Monk
f4e019aaad Plugin fragment support
Allows fragments to be easily switched over to plugins and a provides
a convenient base class for plugins to use that makes sure the layout
inflater and context point at the plugin's and not sysui's.

Bug: 32609190
Test: runtest systemui

Change-Id: I6503947e980f66ddcd826f6ca9a92b591ce0eb1e
2016-11-11 11:19:52 -05:00
Jason Monk
0ceef21187 Move QS to a fragment
There is now a bit too much of the view/layout logic touching the
fragment, but sort out that later and get something over to fragments
for now.

Bug: 32609190
Test: Manual
Change-Id: Icf677f4a70e6b92892a0fc27a0e673940ebc7a73
2016-11-11 11:19:16 -05:00
Jason Monk
bbac121e44 Fragments in SysUI!
Add system to add fragments to sysui windows for better code
modularity and testability.

Bug: 32609190
Test: Manual
Change-Id: I2ae7ed6133aff3fc5cdbdb3ec89d55183b7ac797
2016-11-11 11:19:15 -05:00
Jason Monk
e97892844a android.provider.Setting test utilities
Add a way to fake values for settings in tests. Since the content
provider is cached in the NameValueCache, there is one static
FakeSettingsProvider that passes through all values to the
real SettingsProvider by default. Values that are required for
the test can be acquired and locked for the duration of the test
easily.

Test: runtest systemui
Change-Id: Ibc31ac8509fb31a22c522358a9c1bae6ec63553b
2016-11-11 09:52:17 -05:00
Jason Monk
97a06a12ed Add switchable theme to tuner
Allows option in tuner to switch between system theme overlays
if multiple exist. Requires a restart to take effect.

Test: Settings -> Tuner -> Other -> Theme
Change-Id: Iea43b9cbb67fd91c6008be594ad4cfd19c3f57ec
2016-11-11 09:01:20 -05:00
TreeHugger Robot
a4438c4977 Merge "Adding experiment for minimized pinned stack." 2016-11-11 00:54:13 +00:00
TreeHugger Robot
1c47a0bea6 Merge "Customize camera gesture vibrator pattern" 2016-11-11 00:43:54 +00:00
Oleksiy Avramchenko
f9fc128d7f Customize camera gesture vibrator pattern
Value for camera gesture vibrator pattern changes between versions, e.g.
it was changed from 1000 to 750 in 7.0, which seems arbitrary and OEMs do
not stick with this value, but change it according to their requirements.

This change allows the value to be customized using overlays.

Bug: 32789246
Change-Id: I19e59d1fa191657a8575c486008db3991b347fc5
2016-11-10 15:09:45 -08:00
Winson Chung
fa7053789f Adding experiment for minimized pinned stack.
- Also refactoring the PIP touch handling to be independent gestures

Test: Enable the setting in SystemUI tuner, then drag the PIP slightly
      offscreen. This is only experimental behaviour, and
      android.server.cts.ActivityManagerPinnedStackTests will be updated
      accordingly if we keep this behavior.

Change-Id: I5834971fcbbb127526339e764e7d76b5d22d4707
2016-11-10 23:09:17 +00:00
Akira Oshimi
4ad7ace5f7 Merge "Add null check before finish SystemUI Tuner's activity" am: 5bb91bacc3 am: 08978cd0fd am: 88ab92ce4c
am: c49702e4c0

Change-Id: I7d3c453536a272c969745ad2df4c9bf319efc19b
2016-11-10 20:24:23 +00:00
Akira Oshimi
c49702e4c0 Merge "Add null check before finish SystemUI Tuner's activity" am: 5bb91bacc3 am: 08978cd0fd
am: 88ab92ce4c

Change-Id: I6abd73d3ce02dd33dc95c6132b1ff8aa4b13015c
2016-11-10 20:18:09 +00:00
Akira Oshimi
88ab92ce4c Merge "Add null check before finish SystemUI Tuner's activity" am: 5bb91bacc3
am: 08978cd0fd

Change-Id: Ibd1b9ff4be577bf5ea5596342316ea2303d93b75
2016-11-10 20:12:34 +00:00
Akira Oshimi
08978cd0fd Merge "Add null check before finish SystemUI Tuner's activity"
am: 5bb91bacc3

Change-Id: I0e9d19f297c158ff0c6acd1aa6665e3459fa416b
2016-11-10 20:06:34 +00:00
Manu Cornet
c611398246 Merge "2-D recents: fix toggling behavior and orientation changes." 2016-11-10 15:21:01 +00:00
Akira Oshimi
8fbcb7630a Add null check before finish SystemUI Tuner's activity
SystemUI Tuner's activity changes to null when Multi-window's state is
changed after confirmation dialog about removing SystemUI Tuner is
shown. Then NullPointerException occurs by trying to finish the
activity to tap "REMOVE" button on the confirmation dialog.
So add null check before finish the activity.

Bug: 32786029
Test: manual - remove System UI Tuner on Multi-Window mode

Change-Id: I455d17c0c600eeb05c9dfb7d609d40307de2f855
2016-11-10 09:09:25 +00:00
TreeHugger Robot
186ea0f170 Merge changes I93b8ed74,I43decfee
* changes:
  Update callbacks when initializing to initial state
  UI Keyguard fixes
2016-11-10 08:26:56 +00:00
Jorim Jaggi
e8f321e749 Update callbacks when initializing to initial state
This fixes a bug where activity manager was not informed about the
lockscreen state if Keyguard was disabled and SystemUI crashed, so
we just displayed a black screen.

Test:
- Set no lockscreen
- Crash SystemUI

Change-Id: I93b8ed74dd12af6903ffdb05b59c78f2f12febb4
2016-11-09 23:54:01 -08:00
Jorim Jaggi
8d5a6e7ce3 UI Keyguard fixes
- Streamline the various keyguardDone paths. The keyguard will be
dismissed if and only if both the hide animation has run and the
Keyguard is ready for dismissal. This fixes a bug in which the
hide animation was not run.
- When we get an external dismiss call, make sure to collapse the
panel as well.
- When we execute an action and Keyguard is occluded, we execute
if after the Keyguard is gone so there are no weird transition
because Keyguard might get unoccluded.

Test: Manual for the above flows.

Bug: 30961403
Bug: 27422134
Change-Id: I43decfeec270c4ed628bd9479109150c57201dae
2016-11-09 23:54:00 -08:00
TreeHugger Robot
d6629e1d80 Merge "Import translations. DO NOT MERGE" 2016-11-10 04:56:07 +00:00
Bill Yi
294618f66d Import translations. DO NOT MERGE
Change-Id: If0da996cf52bec08bb2b154664908c76bee507bd
Auto-generated-cl: translation import
2016-11-09 14:35:41 -08:00
TreeHugger Robot
d7dde6b793 Merge "Keyguard: Fix screenTurnedOn trace tag" 2016-11-09 22:07:59 +00:00
Julia Reynolds
3775a39e39 Merge "Move notification channel from record to sbn." 2016-11-09 20:40:41 +00:00