Commit Graph

73326 Commits

Author SHA1 Message Date
Chris Wren
58047b9451 add a comparator for LogMaker
Tests need to be able to compare partial log structures.

Bug: 34705522
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics
Change-Id: I4e26e43f5f5ea3fbba5a2a2a9563982c7260671b
2017-01-27 08:28:45 -05:00
Andrii Kulian
fc8f82bc6b Allow showing content on virtual displays when locked
This adds new flag to virtual display that changes its
behavior when keyguard is shown, but can be dismissed without
entering credentials. This can be applied only to private
virtual displays.

Bug: 34280365
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testVirtualDisplayHidesContentWhenLocked
Test: #testShowWhenLockedVirtualDisplay
Test: #testShowWhenLockedPublicVirtualDisplay
Change-Id: I9c19d36295e62f59bd1db1352af707d54ea51667
2017-01-27 00:14:06 -08:00
TreeHugger Robot
e852d6731b Merge "Fix issues with launching activities on virtual displays" 2017-01-27 05:44:37 +00:00
TreeHugger Robot
e682445698 Merge changes from topic 'session_refactoring'
* changes:
  Adds autofill save ui
  Moar AutoFill Framework refactoring...
2017-01-27 03:46:36 +00:00
Andrii Kulian
4acfd858a4 Fix issues with launching activities on virtual displays
- Virtual displays might have hdr capabilities not initialized,
  which lead to exception when checking.
- Dynamic stacks were mistakenly considered an invalid launch stack.

Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I20356d6e25cf9e5fa4a3d7bd3699a8e82a73f21a
2017-01-26 19:43:13 -08:00
Doris Liu
6ba5ed322c Use listener to determine whether an Animator has ended
BUG: 34736819
Test: ran cts test for ValueAnimator and AnimatorSet
Change-Id: Ia1070f83833940cb09d26243f5873751d9ca2a38
2017-01-26 19:23:22 -08:00
TreeHugger Robot
11c80cf32b Merge "Lifecycle guarantees for target fragments" 2017-01-27 02:45:17 +00:00
TreeHugger Robot
903f98e37f Merge "Expose Java side for parenting SurfaceControl" 2017-01-27 02:43:52 +00:00
TreeHugger Robot
18c9dc53d2 Merge "StrictMode detectAll() based on target API level." 2017-01-27 01:41:35 +00:00
TreeHugger Robot
416903e7c4 Merge "Unhide ApplicationInfo.volumeUuid." 2017-01-27 01:34:40 +00:00
TreeHugger Robot
8dc7ccc6e1 Merge "Push mapping from file extension to GID." 2017-01-27 01:03:11 +00:00
Adam Powell
ab209a63a2 Lifecycle guarantees for target fragments
Ported from frameworks/support change id
I824eb312fbdfd6b548fe94aa2cd5b03afbaa97c7

When a target fragment was set using Fragment#setTargetFragment, all
bets were off, especially when restoring from instance state. Order of
lifecyle initialization was undefined meaning that two bugs could
occur, both of which manifested as the target fragment was not
initialized by the time the referring fragment's onCreate ran. One
could happen if the target fragment is on the back stack, the other
could happen if the target fragment was ordered unfortunately in
FragmentManager implementation details. (!)

Fix both by guaranteeing that any target fragment gets pushed forward
to at least the CREATED state before we dispatch any lifecycle events
for the referring fragment.

Add some sanity checks that try to keep developers from setting target
fragments across different FragmentManagers or from creating target
cycles, both of which are bad ideas.

Bug: 33653458
Test: CTS FragmentLifecycleTest
Change-Id: If624d4665d29e205d37b9b384322e64d6d6d3615
2017-01-27 00:52:26 +00:00
Android Build Merger (Role)
766f462763 Merge "Add a flag to enable/disable the diskstats logging service. am: 88e45dcd1f am: 2297fd2946" 2017-01-27 00:50:06 +00:00
Daniel Nishi
6321bdce18 Add a flag to enable/disable the diskstats logging service. am: 88e45dcd1f
am: 2297fd2946

Change-Id: I15391057ae632e36f05231a1d188dd01c1e5da90
2017-01-27 00:49:10 +00:00
Makoto Onuki
2c631ab46d Merge "Cache isManagedProfile()." 2017-01-27 00:49:09 +00:00
Daniel Nishi
2297fd2946 Add a flag to enable/disable the diskstats logging service.
am: 88e45dcd1f

Change-Id: Ie822eea68dc0a02c8fad1a838ff9bf23f738106f
2017-01-27 00:42:54 +00:00
TreeHugger Robot
56ff000782 Merge "Disable RescueParty in debug/lab environments." 2017-01-27 00:14:27 +00:00
Jeff Sharkey
6112860c5c Unhide ApplicationInfo.volumeUuid.
Apps need it to interact with the new StorageStatsManager APIs.

Test: builds, boots
Bug: 34723750
Change-Id: I274d5bd425cd401e10647959ba18f9956628d810
2017-01-26 17:08:40 -07:00
Jeff Sharkey
0b558701d8 StrictMode detectAll() based on target API level.
Some apps are asking StrictMode to detectAll(), but we should only
trigger the violation types that they would expect based on their
target SDK level.  (This prevents us from starting to yell about
violations in new API levels that a developer never would have known
about.)

Test: builds, boots, older apps aren't triggered
Bug: 34735225
Change-Id: Idff1bfdf57c635b828236e34a24d55350b9fa556
2017-01-26 16:52:04 -07:00
Felipe Leme
bd00fef41c Moar AutoFill Framework refactoring...
* Encapsulated application-level auto-fill logic on AutoFillSession.
  Currently, Activity.java directly manages the IAutoFillCallback binder
  object used to auto-fill its views, but this logic need to be
  extended so Views can use it to draw the auto-fill bar.

* Pass auto-fill id and boundaries to requests
  So AutoFillUI can display its affordance in the right places.

* Uses a new auto-fill id on View (instead of reusing accessibility's).
  That allows moving the logic on whether a new request should be made or
  the existing UI moved to the service side.

* Split service methods in 2, for shell cmd and app
  And applied the right permission check on both.

* Removed CancelationSignal from onSaveRequest()
  Since it's not really needed.

* Etc...
  ¯\_(ツ)_/¯

BUG: 34637800
BUG: 31001899
Test: CtsAutoFillServiceTestCases passes
Test: manual verification

Change-Id: Ibd0cb2cfff6d0f6bb6b697a423ed5e89df687b82
2017-01-26 15:39:59 -08:00
Jeff Sharkey
f17e4cf1f9 Push mapping from file extension to GID.
An upcoming sdcardfs change will offer to automatically change the
GID of files on external storage based on the extension, but we need
to tell the kernel the mapping that we'd like to see.

This change pushes the current mappings used by installd when kernel
support is detected.

Test: builds, boots, works with old/new kernels
Bug: 34733702
Change-Id: I4a13b17f5a8e080a9bea51b01aa9f1cbf575e0ab
2017-01-26 16:23:55 -07:00
Amith Yamasani
dacf5e522e Merge "Add NPE check before stopping profiler" 2017-01-26 23:04:07 +00:00
Amith Yamasani
b1684439b5 Add NPE check before stopping profiler
During crash scenarios, stopProfiling() could be called early.

Change-Id: I6ef78a47e3431dd7c41198ec29d40ebef3928c6a
Fixes: 34744398
Test: N/A
2017-01-26 14:58:26 -08:00
Soonil Nagarkar
6c72a326bb Merge "Add background location throttling whitelist support." 2017-01-26 22:51:35 +00:00
Jeff Sharkey
cdee83a614 Disable RescueParty in debug/lab environments.
We need to strike a balance between rescuing devices of real users
in the field, while also not interfering with debugging or testing
use-cases.

This change uses "charging via USB" as a signal that the device is
under active development, or is in a lab environment.  We could try
checking for an adb connection, but UsbDebuggingManager isn't
started until much later in the boot, so BatteryManager is our best
chance of detecting this case.

Note that we continue to always recover "user" builds, and we never
recover "eng" builds.

Test: builds, boots, skips when plugged in over USB
Bug: 34722552
Change-Id: Ib095482a2ed84e8c5dfb3c71d5f9b88457c2b5e6
2017-01-26 15:29:42 -07:00
Daniel Nishi
88e45dcd1f Add a flag to enable/disable the diskstats logging service.
Bug: 34704947
Test: Service tests
Change-Id: I224cfb38682f1fd2bd33750b664bd3aacdaa4bde
2017-01-26 14:24:28 -08:00
Sunny Goyal
33d9bc529e Merge "Adding AppWidgetManager.isRequestPinAppWidgetSupported" 2017-01-26 22:22:55 +00:00
TreeHugger Robot
4e231da7fe Merge "Minor javadoc cleanup." 2017-01-26 22:18:05 +00:00
TreeHugger Robot
5c7700f8b7 Merge "Create Settings Flags to Disable Scoring UI changes." 2017-01-26 22:07:17 +00:00
Amith Yamasani
eea27893c1 Merge "Clear up /data/misc_ce/user folder on delete and reboot" 2017-01-26 20:57:59 +00:00
Doris Liu
1f6c3fb286 Merge "Work around a bug in an An app" 2017-01-26 20:56:51 +00:00
Jeff Schumacher
b3ecbe1fa1 Merge "Make ACTION_APP_NOTIFICATION_SETTINGS a @SystemApi" 2017-01-26 20:53:17 +00:00
Amith Yamasani
a28071306e Clear up /data/misc_ce/user folder on delete and reboot
Clean up the folder to avoid leaving residue behind when
a user is removed. This was causing issues with reusing
the userid. Also check on reboot for incomplete cleanup
and remove the folders.

Change-Id: Icd21d2669249d5f87032ef0fe95bad49537fa477
Fixes: 34736064
Test: Manual
2017-01-26 12:36:55 -08:00
Doris Liu
66c564e390 Work around a bug in an An app
An app has Animators (NoPauseAnimatorWrapper) that does not
check their listeners against null before cloning. The previous
implementation of AnimatorSet has masked this issue. But the
underlying bug should be fixed in this app.

For now, work around the bug by adding a listener to all the child
animators.

BUG: 34736819
Test: Manual

Change-Id: I968450aab62cf5d308e3b64e76dcf018178af67e
2017-01-26 12:21:20 -08:00
Sundeep Ghuman
e869d83ea8 Create Settings Flags to Disable Scoring UI changes.
When disabled, this will prevent badges from being shown in the status
bar or wifi picker as well as prevent access points in the picker from
being rearranged based on ranking scores.

Fix missing permission dropped from previous CL to run
NetworkControllerWifiTest and refactored tests to enable new setting.

Bug: 34712533
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java
and runtest --path
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/NetworkControllerWifiTest.java

Change-Id: I79c97f2205ebb70c0f7f5b1f66f7207055e5769b
2017-01-26 12:09:04 -08:00
TreeHugger Robot
ff73dd9c60 Merge "Splitscreen for minimized state that works with resizable launchers" 2017-01-26 20:07:07 +00:00
Pavlin Radoslavov
02e806550c Merge "Integration of the AAC codec for A2DP source" am: 22f97c83fb am: f23e80bb9b am: d364208388
am: 78798cc13d

Change-Id: Ic645f9ee2eb090fc805a25a1449642dad021db4e
2017-01-26 19:42:16 +00:00
TreeHugger Robot
5469b3d323 Merge "Add a hidden flag to control Settings UI" 2017-01-26 19:36:33 +00:00
TreeHugger Robot
325026dd5c Merge "allow clearing fields for LogMaker reuse" 2017-01-26 19:33:46 +00:00
Pavlin Radoslavov
78798cc13d Merge "Integration of the AAC codec for A2DP source" am: 22f97c83fb am: f23e80bb9b
am: d364208388

Change-Id: Ice6067732c4a94d30410a8f90cbea51b869539eb
2017-01-26 19:31:07 +00:00
Jeremy Joslin
8077e15563 Minor javadoc cleanup.
Test: none
Change-Id: Iaf1206767a6d0dc7a045a8fd6dc2a992ca6f3f1b
2017-01-26 11:30:37 -08:00
Pavlin Radoslavov
d364208388 Merge "Integration of the AAC codec for A2DP source" am: 22f97c83fb
am: f23e80bb9b

Change-Id: If2d85eba17f7ece5b3d19e3ee8fc86b7cf9bc062
2017-01-26 19:25:37 +00:00
Pavlin Radoslavov
f23e80bb9b Merge "Integration of the AAC codec for A2DP source"
am: 22f97c83fb

Change-Id: I22838db2b87f83a3832f78d74d08a6f988264284
2017-01-26 19:20:08 +00:00
TreeHugger Robot
6ee80f3a65 Merge "Change configuration's color mode based on the display's color mode" 2017-01-26 18:56:23 +00:00
Matthew Ng
e15352e516 Splitscreen for minimized state that works with resizable launchers
If a launcher is resizable, going to minimized mode (dock task and then
press home) would show a cropped height of the task at the top in a
minimized state and the fullscreen stack would show the home launcher
which takes the rest of the remaining height. If the launcher is not
resizable, it will default the original behavior.

To enable this in a launcher, add android:resizeableActivity="true" in
the AndroidManifest.xml in the <application/> tag.

Test: manual - rotating while minimized, minimizing using dragging task
or holding overview nav button, installing resizable launcher with a
non-resizable launcher
Fixes: 32504542
Change-Id: Idf4015b40f9bec81b70f146f0f2d7df8ccfb4cf0
2017-01-26 10:31:50 -08:00
TreeHugger Robot
9e77aefe9c Merge "[Frameworks] Add an 'am' cmd option to enable streaming in profiling." 2017-01-26 18:08:40 +00:00
Chris Wren
8b49873764 allow clearing fields for LogMaker reuse
Bug: 34705522
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics
Change-Id: I00a1ef279740c890ff8b059be97c4463c9f1af0e
2017-01-26 13:01:26 -05:00
songchenxi
825f69a5e6 Add a hidden flag to control Settings UI
This flag is to enable link to permission in location settings UI
Test: A new string value added

Bug: 34400189
Change-Id: Ie2adeba9634a0e2426b28683da09ad1765b25a3d
2017-01-26 09:33:26 -08:00
Pavlin Radoslavov
b33bd5bc2e Integration of the AAC codec for A2DP source
Test: A2DP streaming to AAC headsets
Bug: 30958229
Change-Id: I1b530f1c5c495b8231fd68bed788d4567096683d
2017-01-26 09:06:02 -08:00
Mady Mellor
3b10dcd2ca Update PIP minimize to edge gesture
Updates gesture to match prototype:
- If you fling towards the current edge the PIP is on it is minimized
- Dragging far enough to left or right edge minimizes PIP

Test: manual
Change-Id: I56664e16505b461ad37b181cbb89ee4c6e371aa2
2017-01-26 06:47:08 -08:00