311926 Commits

Author SHA1 Message Date
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
Jeff Sharkey
082f83bf0d Send storage broadcasts to manifest receivers.
Bug: 35316141
Test: builds, boots
Change-Id: I50998416f189a7f7662ba59ad5a6b6cacf114cf2
2017-03-26 14:34:51 -06:00
Jeff Sharkey
4498e03d2b Another buggy app is already targeting O.
Bug: 36612878
Test: builds, boots
Change-Id: I161a58bf972a0af327fb216d041a7e46d33c0d2e
2017-03-26 14:15:51 -06:00
Jeff Sharkey
e53e2d9576 Add a new "virtual disk" feature.
It's extremely difficult to test storage related logic on devices
that don't have physical SD card slots.  So to support better
debugging and testing, add a new "virtual disk" feature which mounts
a 512MB file through loop device.

Also move ParcelFileDescriptor.open() over to using Os.open() so
that it gets StrictMode treatment.

Bug: 34903607
Test: builds, boots, virtual disk works
Change-Id: I072a3a412cfcc8a2a3472919b7273a1ed794fd98
2017-03-25 23:26:21 -06:00
TreeHugger Robot
3dd6b5c4f3 Merge "Add logging constant for reset dashboard page." 2017-03-25 18:17:19 +00:00
Steve McKay
d39da943da Add honored args when auto-paging.
Increase test coverage.

Test: Improved!
Change-Id: Icba97c5e821e6cb60157e0c8a5b204d0d2813bc8
2017-03-25 07:43:37 -07:00
Sudheer Shanka
d292c15558 Merge "Update AMS to use NetworkManagementInternal.isNetworkRestrictedForUid." 2017-03-25 08:01:13 +00:00
Sudheer Shanka
c9d150dcbd Merge "Add NetworkManagementInternal.isNetworkRestrictedForUid." 2017-03-25 08:00:39 +00:00
Wonsik Kim
034799db2f Merge "MediaFrameworkTest: don't set surface if video format is unsupported" 2017-03-25 05:34:25 +00:00
TreeHugger Robot
1e8fd460fd Merge "Target selection for Accessibility button" 2017-03-25 04:04:16 +00:00
TreeHugger Robot
bf4d8d1238 Merge "Prevent inclusion of null KeyphraseMetadata in info map." 2017-03-25 02:50:36 +00:00
Guang Zhu
4373315a54 Merge "Revert "Enable Wifi Wakeup Setting by default."" 2017-03-25 02:27:06 +00:00
Guang Zhu
71934ecb19 Revert "Enable Wifi Wakeup Setting by default."
Bug: 36385983
Bug: 32913119
Bug: 36604943

This reverts commit abb947ac24b316a188965c341599973a1f7a3de9.

Change-Id: I484534dd6c24f5b2c2839781fc6a71d9e976a859
2017-03-25 02:26:24 +00:00
Casey Burkhardt
5e8b980c5d Target selection for Accessibility button
Allows for selecting a single accessibility service or feature
to be triggered by the accessibility button in the navigation bar

Bug: 34720082
Test: Manual
Change-Id: I320febede0398b1eff38a87d4db31fd7dfc53062
2017-03-24 19:17:12 -07:00
Amin Shaikh
3087e323ea Deprecate Setting that is no longer used.
Bug: 36526645
Test: make
Change-Id: I11cc75916c4721a8bfbe5e5f0b0f0e7baf0c4a90
2017-03-24 17:43:46 -07:00