Commit Graph

316538 Commits

Author SHA1 Message Date
Tyler Freeman
319a34ae87 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
2017-06-06 18:12:50 -07:00
TreeHugger Robot
d0ba2cd40b Merge "Fix crash from non-default sims in QS" into oc-dev 2017-06-01 19:08:11 +00:00
Lucas Dupin
4a7d0772a5 Merge "Avoid pixel rounding issue during animation" into oc-dev 2017-06-01 18:08:34 +00:00
Selim Cinek
1e2340da3a Merge "Fixed an issue where the shade would jump" into oc-dev 2017-06-01 17:44:57 +00:00
Selim Cinek
a7a39ea187 Merge "Fixed an issue where the panel could be stuck tracking" into oc-dev 2017-06-01 17:40:48 +00:00
Daniel Nishi
bfa8b3d542 Merge "Fix an NPE when FileCollector runs." into oc-dev 2017-06-01 17:30:00 +00:00
TreeHugger Robot
689f41e871 Merge "Handle not having main window in createThumbnailAppAnimator." into oc-dev 2017-06-01 17:14:21 +00:00
Jorim Jaggi
1e93ad44bc Merge "Remove starting window logging" into oc-dev 2017-06-01 16:54:21 +00:00
Andrii Kulian
e871c01bd0 Merge "Create ActivityDisplay if its registered in DisplayManager" into oc-dev 2017-06-01 16:51:04 +00:00
Ivan Podogov
a30fdcb687 Merge "Fix setRequestedOrientation() freeze on Android Wear." into oc-dev 2017-06-01 15:06:33 +00:00
Bryce Lee
e6c25d4a6f Handle not having main window in createThumbnailAppAnimator.
A recent code change associated the SurfaceControl with the main
window owner id. However, it is possible for the an AppWindowToken to
not have a main window. This case is handled later in the method.

This CL restores the original behavior of using the calling uid in
the cases no main window is present.

Change-Id: I8255be9e0d68adc75fda0947c64f869b7eeb76c9
Fixes: 62096254
Test: go/wm-smoke
2017-06-01 08:04:21 -07:00
Jason Monk
fcd97ce795 Fix crash from non-default sims in QS
Test: runtest systemui
Change-Id: Icdb063589258a6b4bd94634cc9f41f788a7d2299
Fixes: 62209034
2017-06-01 11:00:00 -04:00
TreeHugger Robot
94ea9bb571 Merge "Dump info about all RemoteViews in a Notification." into oc-dev 2017-06-01 14:29:48 +00:00
Ivan Podogov
c6467172e5 Fix setRequestedOrientation() freeze on Android Wear.
In ag/1460784 and ag/1551198, logic of
ActivityManagerService.updateConfigurationLocked
(now updateDisplayOverrideConfigurationLocked) was changed a bit:
before those CL's, with (changes == 0) we were still calling
mWindowManager.setNewConfiguration(mGlobalConfiguration)
(which is now mWindowManager.setNewDisplayOverrideConfiguration).
Now, when there was a call to Activity.setRequestedOrientation, the
window becomes frozen and waiting for configuration, which is never sent
since there are no changes detected (which we don't know in advance when
freezing the window). This is important for watches, since they have
"square" screens, and resources configuration for them doesn't change
after requesting landscape orientation, i.e. display rotates 90 degrees,
yet the layout stays portrait. As a result, device becomes frozen.

This CL only moves mWindowManager.setNewDisplayOverrideConfiguration
call outside of the (changes == 0) check to restore the old logic.

Bug: 37684680
Test: go/wm-smoke (on Pixel), manual (on Wear)
Change-Id: Idf1f5989173494d51437b9a66296b4cac82d15c2
2017-06-01 14:38:26 +01:00
Hugo Benichi
8bc542695c Merge "Prettify the captive portal sign-in activity" into oc-dev 2017-06-01 09:32:32 +00:00
TreeHugger Robot
878fc6a81c Merge "Update documentation of MediaCodec regarding partial frame." into oc-dev 2017-06-01 09:05:40 +00:00
TreeHugger Robot
87c727a169 Merge "Fix TimePickerDialog positive button clicks." into oc-dev 2017-06-01 08:02:51 +00:00
Charles He
5f3cab514b Merge "SystemUI: fix notification redaction logic." into oc-dev 2017-06-01 07:56:54 +00:00
Charles He
1a3bf132c8 Merge "SystemUI: fix incorrect redaction of profile notifications." into oc-dev 2017-06-01 07:56:30 +00:00
TreeHugger Robot
9e6519c7e1 Merge "Add BottomLabelLayout for battery graph" into oc-dev 2017-06-01 07:26:45 +00:00
TreeHugger Robot
c6372cceb1 Merge "Support multi-window on low-memory watches." into oc-dev 2017-06-01 07:19:46 +00:00
TreeHugger Robot
0f542b48fb Merge "Ensure null/empty phone number does not crash international number check." into oc-dev 2017-06-01 07:07:24 +00:00
TreeHugger Robot
944b0c73a4 Merge "Fix dequeus outside of frame drawing" into oc-dev 2017-06-01 06:11:35 +00:00
Jorim Jaggi
828829f22c Remove starting window logging
No evidence so far that the screen-on latency bug hasn't been
fixed yet. Thus, we can remove the logspam.

Test: Inspect logs
Change-Id: I891077b3b8edaa68c748eeef8ecc6469c8eb4a90
Fixes: 62049093
2017-05-31 22:14:44 -07:00
Hugo Benichi
a206649a6f Prettify the captive portal sign-in activity
- fuses url bar with activity header: url is now the subtitle
- url appears as text and not as editable content
- url only shows host name
- header style is the device default for Settings
- Material progress bar
- progress bar disappears at page load finished
- webview does not jump at page load finished

Bug: 62107381
Bug: 38197949
Test: tested by manually triggering the sign-in activity
Change-Id: Id75023acad04f444dbfc41de56814a09e70cc6f9
2017-06-01 12:37:49 +09:00
Doris Liu
9057f846ac Merge "Ensure start delay is properly scaled with duration scale" into oc-dev 2017-06-01 00:53:03 +00:00
Dongwon Kang
9464db6e5f Update documentation of MediaCodec regarding partial frame.
Test: documentation update
Bug: 62202844
Change-Id: Ie1e269e7e22206001a145e9c7ee6f92d7e8633e1
2017-05-31 16:37:13 -07:00
Adam Lesinski
ceb24e88cb Merge "BatteryStats: Acquire network stats without BatteryStatsImpl lock" into oc-dev 2017-05-31 22:37:09 +00:00
TreeHugger Robot
8837aff18b Merge "hotspot2: add/update javadoc for Passpoint APIs" into oc-dev 2017-05-31 22:29:06 +00:00
Aurimas Liutikas
553303fac1 Fix TimePickerDialog positive button clicks.
With my TimePickerDialog change to support keyboard based input I
accidentally broke TimePickerDialog#onClick as it was no longer being
called, instead it was calling TimeSetListener directly. This CL changes
the logic back to use onClick again.

Bug: 36042834
Test: Locally tested FitBit app.
Change-Id: I47d5563c99cc46eaaf2b1d4a96483d6825fc5805
2017-05-31 15:10:25 -07:00
Andrii Kulian
62e6f25173 Create ActivityDisplay if its registered in DisplayManager
Activity manager is notified asynchronously when new display is
created. Because of that someone may try to access or use it
before AM is aware of it, e.g. launch an activity to a just
create virtual display.
This CL guards the cases where we try to use a display by id in
AM and creates a new instance if needed.

Bug: 34262188
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testImmediateLaunchOnNewDisplay
Test: go/wm-smoke
Change-Id: Iab0871708145aa80ff252a0c764beb6a3b5dc42d
2017-05-31 15:05:54 -07:00
Erik Wolsheimer
9be3a06082 Support multi-window on low-memory watches.
On watches, multi-window is used to present essential system UI, and thus it
must be supported regardless of device memory characteristics.

Bug: 37482466
Test: Manually, on a watch
Change-Id: I7929a090b7fd46de019d237ce771c82a6d7fd3f3
2017-05-31 15:00:45 -07:00
Bryce Lee
646038a3c3 Merge "Revert "Handle not having main window in createThumbnailAppAnimator."" into oc-dev 2017-05-31 21:46:19 +00:00
Tyler Gunn
438559e183 Ensure null/empty phone number does not crash international number check.
Add empty/null check for isInternationalNumber.

Test: Added unit tests.
Bug: 62162029
Change-Id: I779a1f78cbbe11adeefeca7fc83cfc1cfa431c61
2017-05-31 14:35:39 -07:00
Bryce Lee
7225427909 Revert "Handle not having main window in createThumbnailAppAnimator."
This reverts commit 6db4d15d72.

Bug:62096254
Reason for revert: Breaking the build due to test references to class

Change-Id: I6021c802d04a3a55a19f54fc94389957c8152ed9
2017-05-31 21:22:33 +00:00
Selim Cinek
7cb49d6f40 Fixed an issue where the shade would jump
When collapsing directly from the expanded quicksettings
the shade would jump when there were no notifications.

Test: manual
Merged-In: I9a85cd57e2f96970ad4ea78a8c679145b58d563a
Change-Id: I9a85cd57e2f96970ad4ea78a8c679145b58d563a
Fixes: 35996906
2017-05-31 21:21:28 +00:00
TreeHugger Robot
7db56af8f9 Merge "Do not add unnecessary prefix to dumpsys activity provider [NAME] --proto" into oc-dev 2017-05-31 21:07:08 +00:00
John Reck
32414eea3e Fix dequeus outside of frame drawing
Bug: 62213889
Test: Repro steps in bug
Change-Id: I8fc407b280ba82c669fc2bb03750cab139adb965
2017-05-31 14:02:50 -07:00
Daniel Nishi
e4bea2d769 Fix an NPE when FileCollector runs.
In some cases, the path for a VolumeInfo may be null. The previous
implementation assumed it was always non-null, however. This backs out
of the calculation early if we cannot find the files.

Change-Id: Icfe265be738c5ccb16917ef339b2b872f2057f07
Fixes: 38308873
Test: No observed phone crashes with a flashed build.
2017-05-31 13:56:52 -07:00
TreeHugger Robot
f296105e22 Merge "AAPT2: Update --no-version-vector list" into oc-dev 2017-05-31 20:49:02 +00:00
Adam Lesinski
f42c86660d Merge "AAPT2: Allow merging of Style attributes from overlays" into oc-dev 2017-05-31 20:48:06 +00:00
TreeHugger Robot
d8d9758363 Merge "Don't automatically autofill when manual request returned just 1 dataset." into oc-dev 2017-05-31 20:43:20 +00:00
Bryce Lee
fd5129b978 Merge "Handle not having main window in createThumbnailAppAnimator." into oc-dev 2017-05-31 20:39:34 +00:00
Peter Qiu
e5850517c4 hotspot2: add/update javadoc for Passpoint APIs
Add javadoc for getter/setter methods configuration classes.
Document exceptions with @throws tag.

Bug: 37907515
Test: build
Change-Id: Ied1842912f6710530bf77db4df5ef5d30a44b2a7
2017-05-31 13:16:50 -07:00
TreeHugger Robot
39e8819755 Merge "Added missing lock and clean up locked function that wasn't locked" into oc-dev 2017-05-31 19:53:16 +00:00
TreeHugger Robot
59e16c9eb9 Merge "AOD: Scale icon padding with the drawing size" into oc-dev 2017-05-31 19:45:01 +00:00
TreeHugger Robot
faba1835b4 Merge "Change default for group alert behavior" into oc-dev 2017-05-31 19:43:10 +00:00
TreeHugger Robot
25329fa14f Merge "Don't verify secondary setting on restore" into oc-dev 2017-05-31 19:40:44 +00:00
Joe Onorato
1dfd194f7d Merge "Track Partial wakelock time in background" into oc-dev 2017-05-31 19:26:59 +00:00
Joe Onorato
413b135244 Merge "Fix batterystat Counter misreporting when charging" into oc-dev 2017-05-31 19:26:59 +00:00