311940 Commits

Author SHA1 Message Date
Winson Chung
bd04196f8d Updating to new aspect ratio limits.
Bug: 35949789
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: Id47bdee0903744efb6aa3200691cd7817463aa13
2017-03-27 12:17:39 -07:00
Lorenzo Colitti
37afaac70d Merge "Make CONNECTIVITY_USE_RESTRICTED_NETWORKS @SystemApi."
am: a1e206a335

Change-Id: I71fabdff9deb0f7ba40a545090bd09ddc66994a8
2017-03-27 19:16:17 +00:00
Winson Chung
a2a3b1d7b5 Merge "Prevent cleaning up and resuming null activity when task is reparented." 2017-03-27 19:08:57 +00:00
Lorenzo Colitti
a1e206a335 Merge "Make CONNECTIVITY_USE_RESTRICTED_NETWORKS @SystemApi." 2017-03-27 19:08:25 +00:00
Michael Dooley
ff4b0fdb43 Merge "Adding a comment specifying the timebase for emergency call time" 2017-03-27 19:05:53 +00:00
TreeHugger Robot
1eee2a52b5 Merge "Fix PiP dismissing on drag away from bottom and then fling" 2017-03-27 18:59:45 +00:00
TreeHugger Robot
5e01870015 Merge "Unbind from service on app killed and dedup association requests" 2017-03-27 18:43:37 +00:00
TreeHugger Robot
81ff6ee47a Merge "Register functor draw correctly" 2017-03-27 18:36:28 +00:00
Jason Monk
b03314dad8 Merge "Clean up and cover more QS metrics" 2017-03-27 18:24:22 +00:00
David Stevens
4693956388 Compute the focused window in display focus order
A WindowContainer's children are sorted so the focused child is at the
end of the list, so RootWindowContainer needs to iterate from end to
start when looking for the focused window.

Bug: 36590788
Test: DisplayContentTests#testFocusedWindowMultipleDisplays
Change-Id: I56e6b7d2054bc1e74b54a4f99706a08d278fa2e1
2017-03-27 11:07:22 -07:00
Wale Ogunwale
5e5a68dc06 Fixed issue with SCREEN_ORIENTATION_BEHIND not working correctly
If an app specifies SCREEN_ORIENTATION_BEHIND, then use the orientation
of the app behind it regardless of the visibility state of the app
behind.

Fixes: 35281868
Test: bit FrameworksServicesTests:com.android.server.wm.WindowContainerTests
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests
Test: bit FrameworksServicesTests:com.android.server.wm.TaskStackTests
Change-Id: Ieba4e4bb1a7f47cd6f082491d37fcabcf5bd5199
2017-03-27 11:02:54 -07:00
TreeHugger Robot
735ed9b940 Merge "Fixed check for null Anchor." 2017-03-27 18:02:26 +00:00
Sudheer Shanka
deeb08fdcb Uncomment a test.
It was commented earlier because of a crash. Since that issue has been
fixed, uncomment the test.

Bug: 27803922
Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services
Change-Id: I5f2b1b0bffe032633f42c8c34ed8a7ae5a3dfc10
2017-03-27 10:57:01 -07:00
TreeHugger Robot
af4bb6864f Merge "Remove task activities from LRU list when task is reparented." 2017-03-27 17:51:19 +00:00
Kang Li
1eb2708865 Merge "Move retention length of users' chooser selections to SystemProperties, to meet CDD requirement." 2017-03-27 17:39:02 +00:00
mike dooley
912174233d Adding a comment specifying the timebase for emergency call time
Test: none
Bug: 35767700
Change-Id: Idac16da57d0a9f21804f9c515974d269c012796a
2017-03-27 17:29:33 +00:00
Wale Ogunwale
0cb70ac40f Fixed logic error with setting maxAspectRatio
Ignore maxAspectRatio values less than 1.0 and set it to 0 which
means use device aspect ratio.

Change-Id: Ib2c76f6232e3f7521a1a4565d7c0c9e1de9c9eac
Fixes: 36606641
Test: cts/.../run-test CtsAppTestCases android.app.cts.AspectRatioTests
2017-03-27 17:27:59 +00:00
TreeHugger Robot
bfc4d59bf8 Merge "Replace possibly-expensive size() == 0 with isEmpty()" 2017-03-27 17:15:25 +00:00
Mady Mellor
2fbdd3bfde Fix PiP dismissing on drag away from bottom and then fling
Adds two flags to watch for movement outside of the starting area of the
gesture, one for dismissing and one for minimizing.

Test: - Have PiP at bottom of screen, drag to top and fling down (does not
        dismiss)
      - Have PiP at left or right edge of screen, drag PiP to opposite
        edge and fling to other side (no longer minimizes)
Bug: 35358628

Change-Id: I007e2c2c688254dbe1abaecdedc28e281278def8
2017-03-27 10:07:49 -07:00
Abodunrinwa Toki
d2d1399a62 TextClassifier updates
- Increase the size of the text sent as context to the classifier
- Pass regex match hints to the classifer

Test: Build still works. Regex hints logged correctly. The hints won't
matter until we've actually passed in this values to native code. Native
library test will be written and I've got a tracker bug to write more robust Java tests.

Bug: 35416389
Bug: 36584397

Change-Id: I29e56189b388b36dc0cc7a8bb13ef237ff55be7b
2017-03-27 17:53:24 +01:00
Felipe Leme
dd23777dfb Fixed check for null Anchor.
It was checking if the weak reference pointee was null, but not for a null
weak reference per se.

Fixes: 36643768
Test: manual verification
Test: CtsAutoFillServiceTestCases pass

Change-Id: I106dfd4a91ff1d45f8cb3141a992b06cbe460367
2017-03-27 09:44:07 -07:00
Jason Monk
60033fc070 Fix status bar visibility initialization
Make sure it starts up to everything showing and that the StatusBar
calculates the bar mades after it is attached.

There is still a bug where the behind scrim is showing during SUW,
but this fixes many of the issues besides that case.

Test: visual
Change-Id: I93314c607e374c97d5c06f936ef8b7e07e057648
Bug: 36407135
2017-03-27 12:41:32 -04:00
Jason Monk
8c09ac7435 Clean up and cover more QS metrics
Change-Id: I4ab5e54398024c8b16ca8223f0639aadcdef4377
Fixes: 34801532
Test: runtest systemui
2017-03-27 12:36:25 -04:00
TreeHugger Robot
e784f7a0a3 Merge "WatchDog: dump hal pids when killing a process." 2017-03-27 16:36:01 +00:00
Yorke Lee
82cff222db Merge "Only change bounds if new activity is being added to InTask" 2017-03-27 16:34:34 +00:00
TreeHugger Robot
48a153e570 Merge "Fix font golden image using Oracle JDK" 2017-03-27 15:57:21 +00:00
TreeHugger Robot
494b20c857 Merge "Store the number of saved networks in WifiTracker." 2017-03-27 15:49:00 +00:00
Jeff Sharkey
72ba815ca4 Merge "Add a new "virtual disk" feature." 2017-03-27 15:22:52 +00:00
Kang Li
2bdf134eff Move retention length of users' chooser selections to SystemProperties,
to meet CDD requirement.

bug: 33423136
Test: manual - shared images in Camera. More CTS and GTS tests to be
added.

Change-Id: I0e0c759bec11137e2290f4a43a92be8e97eef022
2017-03-27 08:19:41 -07:00
Steven Moreland
6b47c54a65 WatchDog: dump hal pids when killing a process.
Test: `adb shell am hang --allow-restart` -> Watchdog dumps
  hal traces (eventually)
Bug: 36414311
Change-Id: I5143cedf3e5ab4695d2507a29993e748f6de17d5
2017-03-27 08:06:54 -07:00
TreeHugger Robot
2858ad3a4b Merge "TextClassifier cleanup." 2017-03-27 14:51:13 +00:00
Diego Perez
06ed84f7b3 Merge "Handle case where canvas is 0x0 for shadows" 2017-03-27 14:28:56 +00:00
Neil Fuller
8df7558e13 Merge "Update settings to use latest IDs for zones" am: c75dbe9d9c am: 0f3235a167
am: 2a3c633d49  -s ours

Change-Id: Ibc4d5dea60639ba1504290948de4675aaf6dbb17
2017-03-27 14:23:37 +00:00
Neil Fuller
2a3c633d49 Merge "Update settings to use latest IDs for zones" am: c75dbe9d9c
am: 0f3235a167

Change-Id: I0a7c8e33d84995b36793b2ed3485f985bc251bc5
2017-03-27 14:17:33 +00:00
Neil Fuller
0f3235a167 Merge "Update settings to use latest IDs for zones"
am: c75dbe9d9c

Change-Id: If3708653ad78fb38e57508c4d8fac9dd5bffc2c1
2017-03-27 14:12:35 +00:00
Treehugger Robot
c75dbe9d9c Merge "Update settings to use latest IDs for zones" 2017-03-27 14:06:35 +00:00
Diego Perez
25cbb6c009 Fix font golden image using Oracle JDK
Test: Fixes test
Change-Id: Ie90d55ee73d6342524ba2b8b267d190cb5218fc8
2017-03-27 14:20:31 +01:00
TreeHugger Robot
a56d9a1841 Merge "add alert and reason enums" 2017-03-27 13:01:39 +00:00
TreeHugger Robot
70f6f6faaf Merge "Create NotificationChannels in SystemUI per-user" 2017-03-27 12:55:08 +00:00
Neil Fuller
8bb9748442 Update settings to use latest IDs for zones
Various zones in timezones.xml were being identified by old
IDs. The settings picker and setup wizard uses the exact
ID when pre-selecting the user's current zone. Since the
autodetection uses the new IDs in places like Buenos
Aires users would not have the correct zone pre-selected
during setup.

Thanks to Marcio Ikeda of LG for the report.

Other legacy IDs found with:

for TZ in `grep 'id=' timezones.xml \
    | awk -F\" '{ print $2 }'`; do \
grep ${TZ} ~/Downloads/tzdata2016g/zone.tab > /dev/null; \
if (( $? != 0 )); then echo Bad: ${TZ}; fi; \
done

New IDs found using tzdata NEWS and "backward" file.

Test: Manual testing: selection of the zone in the settings
Bug: 36469833
(cherry picked from commit b4d003da66beb414e8e7fcec94a82a53027dbbfa)
Merged-In: I8c20494a48870cdc600854756061e86db730e14a
Change-Id: I829a70921eb13b763b5446820c87672615f2524d
2017-03-27 13:32:59 +01:00
Neil Fuller
8683062a48 Merge "Update settings to use latest IDs for zones" 2017-03-27 12:28:31 +00:00
TreeHugger Robot
42a872ac4a Merge "Updating font test after the TextView fix" 2017-03-27 11:13:01 +00:00
Michal Karpinski
aa870a4782 Merge "Add support for key-value packages to adb backup/restore." 2017-03-27 09:28:05 +00:00
Joel Scherpelz
b58609d7a6 Merge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces"" am: 63d26caa38 am: 84c2fb2070
am: c3e0dcf082

Change-Id: I9a48897312a785ea7e0338aa68c8bb4877a741e6
2017-03-27 05:35:41 +00:00
Joel Scherpelz
c3e0dcf082 Merge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces"" am: 63d26caa38
am: 84c2fb2070

Change-Id: I6601d7a30e3eabc3e3929a02f415ba620a2b5c28
2017-03-27 05:29:02 +00:00
Joel Scherpelz
84c2fb2070 Merge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces""
am: 63d26caa38

Change-Id: I367506eee558dbd7abeeabf09716f7024c2e43d8
2017-03-27 05:24:09 +00:00
Joel Scherpelz
63d26caa38 Merge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces"" 2017-03-27 05:17:22 +00:00
Joel Scherpelz
6a35f3c3e2 Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces"
On second thought, let's set accept_ra_rt_info_m**_plen in 
Netd (InterfaceController::initializeAll())

This reverts commit 25870a2c9effd7a7d31c0678c34a6e952b2d56a1.

Change-Id: I22b000623bb852e375385d4aae789d007e84ba3d
2017-03-27 00:54:41 +00:00
TreeHugger Robot
2e0d532317 Merge "Send storage broadcasts to manifest receivers." 2017-03-26 21:59:24 +00:00
TreeHugger Robot
89000cf644 Merge "Another buggy app is already targeting O." 2017-03-26 21:56:51 +00:00