Commit Graph

31393 Commits

Author SHA1 Message Date
TreeHugger Robot
632dc16bbb Merge "Import translations. DO NOT MERGE" 2016-11-16 07:25:36 +00:00
TreeHugger Robot
ef6d44bf7e Merge "Import translations. DO NOT MERGE" 2016-11-16 05:59:06 +00:00
Bill Yi
a5e23567bc Import translations. DO NOT MERGE
Change-Id: I8ac518af567b4e189fbd9749482bb3e11d2dfecd
Auto-generated-cl: translation import
2016-11-15 20:21:13 -08:00
TreeHugger Robot
325fd657b9 Merge "Fixed obsolete comment." 2016-11-16 04:07:11 +00:00
Sudheer Shanka
bae5ca1490 Merge "Rename MountService to StorageManagerService." 2016-11-15 23:34:15 +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
Sudheer Shanka
2250d56a0b Rename MountService to StorageManagerService.
Bug: 30977067
Test: Existing tests pass
Change-Id: Ieac0f11c2b249dcd60441b14c1f391e6f8131d42
2016-11-15 12:43:37 -08: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
Felipe Leme
326336d14c Fixed obsolete comment.
Bug:32906084
Test: not needed
Change-Id: I0c79e4ffb66405a30d3c83d2e7654cbef413f6e1
2016-11-15 11:24:42 -08: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
Peter Qiu
6966f450a2 Merge "osu: remove calls to deprecated APIs" am: e9514808d7 am: 30874ed6ed
am: 0a5b88e286

Change-Id: Ifb54b8061a70851a8989fae30466f87822e05943
2016-11-15 04:30:20 +00:00
Peter Qiu
0a5b88e286 Merge "osu: remove calls to deprecated APIs" am: e9514808d7
am: 30874ed6ed

Change-Id: I43093bf243cb249ad892bdf94ea9781ca734e239
2016-11-15 04:23:21 +00:00
Peter Qiu
30874ed6ed Merge "osu: remove calls to deprecated APIs"
am: e9514808d7

Change-Id: If7c31b7d901ef8cc8561b7f0933d803498105e75
2016-11-15 04:15:59 +00:00
Peter Qiu
28a3d44536 osu: remove calls to deprecated APIs
The hidden APIs WifiManager#addPasspointManagmentObject and
WifiManager#addPasspointManagementObject will removed, so remove
all callsites.

The OSU app is still under developement and is not included
in any device builds.  However, it is being built by the Treehugger
for generic AOSP builds.

So fix it to allow the API removal CLs to be submitted.

Bug: 32509661
Test: None
Merged-In: Ic405695ee8edfd0c08b831834797f163fe445595
Change-Id: If418c64e69f1836575257b9d5b2f5c4373050a31
2016-11-15 02:12:57 +00:00
TreeHugger Robot
3e06ae7be2 Merge "osu: remove calls to deprecated APIs" 2016-11-15 01:35:44 +00:00
TreeHugger Robot
a2e469037e Merge "Group injected tiles together based on package name." 2016-11-15 01:34:58 +00:00
Peter Qiu
21c1514891 osu: remove calls to deprecated APIs
The hidden APIs WifiManager#addPasspointManagmentObject and
WifiManager#addPasspointManagementObject will removed, so remove
all callsites.

The OSU app is still under developement and is not included
in any device builds.  However, it is being built by the Treehugger
for generic AOSP builds.

So fix it to allow the API removal CLs to be submitted.

Bug: 32509661
Test: None
Change-Id: Ic405695ee8edfd0c08b831834797f163fe445595
2016-11-14 15:40:24 -08:00
Fan Zhang
fc76ab3cbf Group injected tiles together based on package name.
During grouping, tiles are sorted based on package name, and their own
priority value. However if the package is Settings itself, the ordering
is not changed.

Before sort: [pkg1, 100], [pgk2, 120], [pkg1, 130]
After sort: [pkg1, 1], [pkg1, 2], [pkg2,3]

This is necessary to make sure settings app have the overall control of
ordering of all dynamic tiles. When each app define their priority, they
don't have access to the global vision of what other settings are on
screen so it's possible different app define conflicting orderings.
Settings app is the only reasonable place to rank them properly.

Bug: 32827787
Test: RunSettingsLibRoboTests
Change-Id: I38de55530e61da9de7532ef6a7ee97ef89aca9d9
2016-11-14 15:37:49 -08:00
Garfield Tan
368d703d7d Merge "Add internal support to convert a file system path to document URI." 2016-11-14 23:37:12 +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
TreeHugger Robot
93dd397c59 Merge "Import translations. DO NOT MERGE" 2016-11-14 18:30:10 +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
TreeHugger Robot
d3637b9781 Merge "Refactored Shell to use IDumpstateListener." 2016-11-12 03:16:17 +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
Felipe Leme
fa26a0ed08 Refactored Shell to use IDumpstateListener.
BugreportProgressService used to poll system properties to get the
progress of the underlying dumpstate process, but now dumpstate provides
a IDumpstateListener and IDumpstateToken binder objects for the same
purpose.

Test: BugreportReceiverTest passes
Test: manual verification

BUG: 31636879

Change-Id: I81d551781a511cb1cc218a27452875b0bb267f7a
2016-11-11 15:50:21 -08: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
Bill Yi
f8ecafb3b8 Import translations. DO NOT MERGE
Change-Id: Ifd00f43f3bdd7b9d7fc39098ae5008cad7aec84d
Auto-generated-cl: translation import
2016-11-11 12:59:39 -08: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