Commit Graph

316521 Commits

Author SHA1 Message Date
Ivan Podogov
a30fdcb687 Merge "Fix setRequestedOrientation() freeze on Android Wear." into oc-dev 2017-06-01 15:06:33 +00: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
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
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
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
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
Joe Onorato
fe06de1fc2 Merge "Batterystats track background bad ble scan time" into oc-dev 2017-05-31 19:26:59 +00:00
Adam Lesinski
14ae39acbc BatteryStats: Acquire network stats without BatteryStatsImpl lock
Moves the network stats collection under a different lock to
prevent the main BatteryStatsImpl lock from being held while doing I/O.

Bug: 37645919
Bug: 38296815
Test: manual
Change-Id: I0d6b4a7b12b234939cb6eb3a32658b28f61dff4f
2017-05-31 11:55:52 -07:00
TreeHugger Robot
09f7dd5780 Merge "Don't call remoteFillService.destroy() until session is removed." into oc-dev 2017-05-31 18:51:01 +00:00
TreeHugger Robot
21999d2895 Merge "Always post AutofillManager operations in the UI thread." into oc-dev 2017-05-31 18:49:38 +00:00
Winson Chung
4e73123c52 Merge changes from topic 'hw_bitmap' into oc-dev
* changes:
  DO NOT MERGE Updating AnimationSpec and related internal APIs to use GraphicBuffer.
  Update code to draw into hardware bitmaps.
2017-05-31 18:46:59 +00:00
Hyunyoung Song
9d56bc1218 Do not add unnecessary prefix to dumpsys activity provider [NAME] --proto
Bug: 36904684
Test: builds, and tests succeed in the same topic branch

The test executes following
"dumpsys activity provider [launcher package name]/[provider name that implements workspace dump logging]
--proto"

In order to extract the proto binary from this stream, there cannot
be extra prefix added to each line. Hence, when "--proto" flag
is on, simply call the sub provider record's dump method.

This is following same pattern on other system service dump.
Having --proto flag also doesn't do any pretty printing.
e.g., dumpsys appwidget --proto.

Change-Id: I13712a45ce5b584123b3bd73c023df349fb86809
2017-05-31 11:38:50 -07:00
jackqdyulei
e1c381f0a1 Add BottomLabelLayout for battery graph
This layout will automatically become vertical if there is not
enought room for children.

Bug: 37329353
Test: RunSettingsLibRoboTests
Change-Id: I0f6870c4031446e967c239d207e76837b14ab097
2017-05-31 11:36:54 -07:00
TreeHugger Robot
42f81ee464 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-05-31 18:22:57 +00:00
TreeHugger Robot
8748505b32 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-05-31 18:17:48 +00:00
Doris Liu
2ac6547824 Ensure start delay is properly scaled with duration scale
BUG: 62126024
Test: CTS test in the same target branch
Change-Id: Ia396e69e053ccd90cdf37ac0b59c404c9952e497
2017-05-31 18:09:47 +00:00
Jorim Jaggi
f220d95f54 Merge "Check for null owner info" into oc-dev 2017-05-31 18:07:26 +00:00
Julia Reynolds
8f7828ebe7 Change default for group alert behavior
To alert for children but not the summary.

Bug: 62027641
Test: cts
Change-Id: Ie7978514be45be6b13c2ea3bd7ff898db352a1ed
2017-05-31 17:58:08 +00:00
Bryce Lee
6db4d15d72 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: Iad69fe383c2208c1db523c8b4601a8f927f9318a
Fixes: 62096254
Test: go/wm-smoke
2017-05-31 10:27:42 -07:00
Adam Lesinski
41ea44f63d AAPT2: Update --no-version-vector list
Keep in sync with AAPT. Since gradle is moving to use AAPT2
by default, updates to AAPT will no longer be necessary and
this will be the authoritative list until a more programmatic
solution presents itself.

Bug: 62211148
Test: manual
Change-Id: Id9232c9fb730c50e4850887fa0f5da82574ca900
2017-05-31 10:23:58 -07:00
Adam Lesinski
5924d8c9ab AAPT2: Allow merging of Style attributes from overlays
Previously style overlays would completely override an existing style.
To be compatible with AAPT, styles now merge with the overlay, allowing
the overlay's attributes and parent to take precedence.

Bug: 38355988
Test: make aapt2_tests
Change-Id: Id25c7240050a43e6a4a177c6e3d51e048d0cceb5
2017-05-31 10:09:06 -07:00