OSDN Git Service

android-x86/frameworks-base.git
7 years agomake MATCH_FACTORY_ONLY @SystemAPI
Todd Kennedy [Mon, 27 Mar 2017 23:20:37 +0000 (16:20 -0700)]
make MATCH_FACTORY_ONLY @SystemAPI

Bug: 35946061
Test: None; just added an annotation
Change-Id: I9e2046b62cb20c5b6651e91f833aff04d45d9800

7 years agoMerge "Fixed logic error with setting maxAspectRatio"
Wale Ogunwale [Mon, 27 Mar 2017 20:20:52 +0000 (20:20 +0000)]
Merge "Fixed logic error with setting maxAspectRatio"

7 years agoMerge "Fix status bar visibility initialization"
Jason Monk [Mon, 27 Mar 2017 20:20:22 +0000 (20:20 +0000)]
Merge "Fix status bar visibility initialization"

7 years agoMerge "MediaCas: rethrow MediaCas specific exception"
TreeHugger Robot [Mon, 27 Mar 2017 20:17:10 +0000 (20:17 +0000)]
Merge "MediaCas: rethrow MediaCas specific exception"

7 years agoMerge "Compute the focused window in display focus order"
David Stevens [Mon, 27 Mar 2017 19:59:53 +0000 (19:59 +0000)]
Merge "Compute the focused window in display focus order"

7 years agoMerge "Fixed issue with SCREEN_ORIENTATION_BEHIND not working correctly"
TreeHugger Robot [Mon, 27 Mar 2017 19:58:29 +0000 (19:58 +0000)]
Merge "Fixed issue with SCREEN_ORIENTATION_BEHIND not working correctly"

7 years agoMerge "Make CONNECTIVITY_USE_RESTRICTED_NETWORKS @SystemApi." am: a1e206a335 am:...
Lorenzo Colitti [Mon, 27 Mar 2017 19:27:43 +0000 (19:27 +0000)]
Merge "Make CONNECTIVITY_USE_RESTRICTED_NETWORKS @SystemApi." am: a1e206a335 am: 37afaac70d
am: d042c3f400

Change-Id: Ic8a35c9f2d9de0b36cb7ab3f8227f0bc298d672f

7 years agoMerge "Make CONNECTIVITY_USE_RESTRICTED_NETWORKS @SystemApi." am: a1e206a335
Lorenzo Colitti [Mon, 27 Mar 2017 19:21:19 +0000 (19:21 +0000)]
Merge "Make CONNECTIVITY_USE_RESTRICTED_NETWORKS @SystemApi." am: a1e206a335
am: 37afaac70d

Change-Id: Id576f61f3ac7d1de828c870ffaf4d6ab3e1e2568

7 years agoMerge "TextClassifier updates"
TreeHugger Robot [Mon, 27 Mar 2017 19:20:58 +0000 (19:20 +0000)]
Merge "TextClassifier updates"

7 years agoMerge "Make CONNECTIVITY_USE_RESTRICTED_NETWORKS @SystemApi."
Lorenzo Colitti [Mon, 27 Mar 2017 19:16:17 +0000 (19:16 +0000)]
Merge "Make CONNECTIVITY_USE_RESTRICTED_NETWORKS @SystemApi."
am: a1e206a335

Change-Id: I71fabdff9deb0f7ba40a545090bd09ddc66994a8

7 years agoMerge "Prevent cleaning up and resuming null activity when task is reparented."
Winson Chung [Mon, 27 Mar 2017 19:08:53 +0000 (19:08 +0000)]
Merge "Prevent cleaning up and resuming null activity when task is reparented."

7 years agoMerge "Make CONNECTIVITY_USE_RESTRICTED_NETWORKS @SystemApi."
Lorenzo Colitti [Mon, 27 Mar 2017 19:08:24 +0000 (19:08 +0000)]
Merge "Make CONNECTIVITY_USE_RESTRICTED_NETWORKS @SystemApi."

7 years agoMerge "Adding a comment specifying the timebase for emergency call time"
Michael Dooley [Mon, 27 Mar 2017 19:05:48 +0000 (19:05 +0000)]
Merge "Adding a comment specifying the timebase for emergency call time"

7 years agoMerge "Fix PiP dismissing on drag away from bottom and then fling"
TreeHugger Robot [Mon, 27 Mar 2017 18:59:41 +0000 (18:59 +0000)]
Merge "Fix PiP dismissing on drag away from bottom and then fling"

7 years agoMerge "Unbind from service on app killed and dedup association requests"
TreeHugger Robot [Mon, 27 Mar 2017 18:43:29 +0000 (18:43 +0000)]
Merge "Unbind from service on app killed and dedup association requests"

7 years agoMerge "Register functor draw correctly"
TreeHugger Robot [Mon, 27 Mar 2017 18:36:23 +0000 (18:36 +0000)]
Merge "Register functor draw correctly"

7 years agoMerge "Clean up and cover more QS metrics"
Jason Monk [Mon, 27 Mar 2017 18:24:16 +0000 (18:24 +0000)]
Merge "Clean up and cover more QS metrics"

7 years agoCompute the focused window in display focus order
David Stevens [Fri, 24 Mar 2017 20:04:00 +0000 (13:04 -0700)]
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

7 years agoFixed issue with SCREEN_ORIENTATION_BEHIND not working correctly
Wale Ogunwale [Sat, 25 Mar 2017 00:36:38 +0000 (17:36 -0700)]
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

7 years agoMerge "Fixed check for null Anchor."
TreeHugger Robot [Mon, 27 Mar 2017 18:02:21 +0000 (18:02 +0000)]
Merge "Fixed check for null Anchor."

7 years agoMerge "Remove task activities from LRU list when task is reparented."
TreeHugger Robot [Mon, 27 Mar 2017 17:51:15 +0000 (17:51 +0000)]
Merge "Remove task activities from LRU list when task is reparented."

7 years agoMerge "Move retention length of users' chooser selections to SystemProperties, to...
Kang Li [Mon, 27 Mar 2017 17:38:57 +0000 (17:38 +0000)]
Merge "Move retention length of users' chooser selections to SystemProperties, to meet CDD requirement."

7 years agoAdding a comment specifying the timebase for emergency call time
mike dooley [Thu, 9 Mar 2017 20:58:42 +0000 (12:58 -0800)]
Adding a comment specifying the timebase for emergency call time

Test: none
Bug: 35767700
Change-Id: Idac16da57d0a9f21804f9c515974d269c012796a

7 years agoFixed logic error with setting maxAspectRatio
Wale Ogunwale [Mon, 27 Mar 2017 16:16:38 +0000 (09:16 -0700)]
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

7 years agoMerge "Replace possibly-expensive size() == 0 with isEmpty()"
TreeHugger Robot [Mon, 27 Mar 2017 17:15:20 +0000 (17:15 +0000)]
Merge "Replace possibly-expensive size() == 0 with isEmpty()"

7 years agoFix PiP dismissing on drag away from bottom and then fling
Mady Mellor [Wed, 22 Mar 2017 00:45:00 +0000 (17:45 -0700)]
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

7 years agoTextClassifier updates
Abodunrinwa Toki [Fri, 24 Mar 2017 21:43:13 +0000 (21:43 +0000)]
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

7 years agoFixed check for null Anchor.
Felipe Leme [Mon, 27 Mar 2017 16:33:23 +0000 (09:33 -0700)]
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

7 years agoFix status bar visibility initialization
Jason Monk [Fri, 24 Mar 2017 15:26:35 +0000 (11:26 -0400)]
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

7 years agoClean up and cover more QS metrics
Jason Monk [Thu, 16 Mar 2017 15:53:40 +0000 (11:53 -0400)]
Clean up and cover more QS metrics

Change-Id: I4ab5e54398024c8b16ca8223f0639aadcdef4377
Fixes: 34801532
Test: runtest systemui

7 years agoMerge "WatchDog: dump hal pids when killing a process."
TreeHugger Robot [Mon, 27 Mar 2017 16:35:55 +0000 (16:35 +0000)]
Merge "WatchDog: dump hal pids when killing a process."

7 years agoMerge "Only change bounds if new activity is being added to InTask"
Yorke Lee [Mon, 27 Mar 2017 16:34:29 +0000 (16:34 +0000)]
Merge "Only change bounds if new activity is being added to InTask"

7 years agoMerge "Fix font golden image using Oracle JDK"
TreeHugger Robot [Mon, 27 Mar 2017 15:57:16 +0000 (15:57 +0000)]
Merge "Fix font golden image using Oracle JDK"

7 years agoMerge "Store the number of saved networks in WifiTracker."
TreeHugger Robot [Mon, 27 Mar 2017 15:48:54 +0000 (15:48 +0000)]
Merge "Store the number of saved networks in WifiTracker."

7 years agoMerge "Add a new "virtual disk" feature."
Jeff Sharkey [Mon, 27 Mar 2017 15:22:47 +0000 (15:22 +0000)]
Merge "Add a new "virtual disk" feature."

7 years agoMove retention length of users' chooser selections to SystemProperties,
Kang Li [Sat, 25 Mar 2017 00:29:18 +0000 (17:29 -0700)]
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

7 years agoWatchDog: dump hal pids when killing a process.
Steven Moreland [Tue, 21 Mar 2017 19:52:16 +0000 (12:52 -0700)]
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

7 years agoMerge "TextClassifier cleanup."
TreeHugger Robot [Mon, 27 Mar 2017 14:51:08 +0000 (14:51 +0000)]
Merge "TextClassifier cleanup."

7 years agoMerge "Handle case where canvas is 0x0 for shadows"
Diego Perez [Mon, 27 Mar 2017 14:28:52 +0000 (14:28 +0000)]
Merge "Handle case where canvas  is 0x0 for shadows"

7 years agoMerge "Update settings to use latest IDs for zones" am: c75dbe9d9c am: 0f3235a167
Neil Fuller [Mon, 27 Mar 2017 14:23:37 +0000 (14:23 +0000)]
Merge "Update settings to use latest IDs for zones" am: c75dbe9d9c am: 0f3235a167
am: 2a3c633d49  -s ours

Change-Id: Ibc4d5dea60639ba1504290948de4675aaf6dbb17

7 years agoMerge "Update settings to use latest IDs for zones" am: c75dbe9d9c
Neil Fuller [Mon, 27 Mar 2017 14:17:33 +0000 (14:17 +0000)]
Merge "Update settings to use latest IDs for zones" am: c75dbe9d9c
am: 0f3235a167

Change-Id: I0a7c8e33d84995b36793b2ed3485f985bc251bc5

7 years agoMerge "Update settings to use latest IDs for zones"
Neil Fuller [Mon, 27 Mar 2017 14:12:35 +0000 (14:12 +0000)]
Merge "Update settings to use latest IDs for zones"
am: c75dbe9d9c

Change-Id: If3708653ad78fb38e57508c4d8fac9dd5bffc2c1

7 years agoMerge "Update settings to use latest IDs for zones"
Treehugger Robot [Mon, 27 Mar 2017 14:06:34 +0000 (14:06 +0000)]
Merge "Update settings to use latest IDs for zones"

7 years agoFix font golden image using Oracle JDK
Diego Perez [Mon, 27 Mar 2017 13:19:43 +0000 (14:19 +0100)]
Fix font golden image using Oracle JDK

Test: Fixes test
Change-Id: Ie90d55ee73d6342524ba2b8b267d190cb5218fc8

7 years agoMerge "add alert and reason enums"
TreeHugger Robot [Mon, 27 Mar 2017 13:01:34 +0000 (13:01 +0000)]
Merge "add alert and reason enums"

7 years agoMerge "Create NotificationChannels in SystemUI per-user"
TreeHugger Robot [Mon, 27 Mar 2017 12:55:02 +0000 (12:55 +0000)]
Merge "Create NotificationChannels in SystemUI per-user"

7 years agoUpdate settings to use latest IDs for zones
Neil Fuller [Thu, 23 Mar 2017 14:46:52 +0000 (14:46 +0000)]
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

7 years agoMerge "Update settings to use latest IDs for zones"
Neil Fuller [Mon, 27 Mar 2017 12:28:26 +0000 (12:28 +0000)]
Merge "Update settings to use latest IDs for zones"

7 years agoMerge "Updating font test after the TextView fix"
TreeHugger Robot [Mon, 27 Mar 2017 11:12:55 +0000 (11:12 +0000)]
Merge "Updating font test after the TextView fix"

7 years agoMerge "Add support for key-value packages to adb backup/restore."
Michal Karpinski [Mon, 27 Mar 2017 09:28:00 +0000 (09:28 +0000)]
Merge "Add support for key-value packages to adb backup/restore."

7 years agoMerge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces...
Joel Scherpelz [Mon, 27 Mar 2017 05:35:41 +0000 (05:35 +0000)]
Merge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces"" am: 63d26caa38 am: 84c2fb2070
am: c3e0dcf082

Change-Id: I9a48897312a785ea7e0338aa68c8bb4877a741e6

7 years agoMerge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces...
Joel Scherpelz [Mon, 27 Mar 2017 05:29:02 +0000 (05:29 +0000)]
Merge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces"" am: 63d26caa38
am: 84c2fb2070

Change-Id: I6601d7a30e3eabc3e3929a02f415ba620a2b5c28

7 years agoMerge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces""
Joel Scherpelz [Mon, 27 Mar 2017 05:24:09 +0000 (05:24 +0000)]
Merge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces""
am: 63d26caa38

Change-Id: I367506eee558dbd7abeeabf09716f7024c2e43d8

7 years agoMerge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces""
Joel Scherpelz [Mon, 27 Mar 2017 05:17:20 +0000 (05:17 +0000)]
Merge "Revert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces""

7 years agoRevert "Set accept_ra_rt_info_max_plen to 64 before enabling IPv6 interfaces"
Joel Scherpelz [Fri, 24 Mar 2017 02:39:14 +0000 (02:39 +0000)]
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

7 years agoMerge "Send storage broadcasts to manifest receivers."
TreeHugger Robot [Sun, 26 Mar 2017 21:59:19 +0000 (21:59 +0000)]
Merge "Send storage broadcasts to manifest receivers."

7 years agoMerge "Another buggy app is already targeting O."
TreeHugger Robot [Sun, 26 Mar 2017 21:56:46 +0000 (21:56 +0000)]
Merge "Another buggy app is already targeting O."

7 years agoSend storage broadcasts to manifest receivers.
Jeff Sharkey [Sun, 26 Mar 2017 20:34:47 +0000 (14:34 -0600)]
Send storage broadcasts to manifest receivers.

Bug: 35316141
Test: builds, boots
Change-Id: I50998416f189a7f7662ba59ad5a6b6cacf114cf2

7 years agoAnother buggy app is already targeting O.
Jeff Sharkey [Sun, 26 Mar 2017 20:15:19 +0000 (14:15 -0600)]
Another buggy app is already targeting O.

Bug: 36612878
Test: builds, boots
Change-Id: I161a58bf972a0af327fb216d041a7e46d33c0d2e

7 years agoAdd a new "virtual disk" feature.
Jeff Sharkey [Sun, 26 Mar 2017 05:14:06 +0000 (23:14 -0600)]
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

7 years agoMerge "Add logging constant for reset dashboard page."
TreeHugger Robot [Sat, 25 Mar 2017 18:17:14 +0000 (18:17 +0000)]
Merge "Add logging constant for reset dashboard page."

7 years agoMerge "Update AMS to use NetworkManagementInternal.isNetworkRestrictedForUid."
Sudheer Shanka [Sat, 25 Mar 2017 08:01:09 +0000 (08:01 +0000)]
Merge "Update AMS to use NetworkManagementInternal.isNetworkRestrictedForUid."

7 years agoMerge "Add NetworkManagementInternal.isNetworkRestrictedForUid."
Sudheer Shanka [Sat, 25 Mar 2017 08:00:35 +0000 (08:00 +0000)]
Merge "Add NetworkManagementInternal.isNetworkRestrictedForUid."

7 years agoMerge "MediaFrameworkTest: don't set surface if video format is unsupported"
Wonsik Kim [Sat, 25 Mar 2017 05:34:21 +0000 (05:34 +0000)]
Merge "MediaFrameworkTest: don't set surface if video format is unsupported"

7 years agoMerge "Target selection for Accessibility button"
TreeHugger Robot [Sat, 25 Mar 2017 04:04:10 +0000 (04:04 +0000)]
Merge "Target selection for Accessibility button"

7 years agoMerge "Prevent inclusion of null KeyphraseMetadata in info map."
TreeHugger Robot [Sat, 25 Mar 2017 02:50:32 +0000 (02:50 +0000)]
Merge "Prevent inclusion of null KeyphraseMetadata in info map."

7 years agoMerge "Revert "Enable Wifi Wakeup Setting by default.""
Guang Zhu [Sat, 25 Mar 2017 02:27:03 +0000 (02:27 +0000)]
Merge "Revert "Enable Wifi Wakeup Setting by default.""

7 years agoRevert "Enable Wifi Wakeup Setting by default."
Guang Zhu [Sat, 25 Mar 2017 02:26:24 +0000 (02:26 +0000)]
Revert "Enable Wifi Wakeup Setting by default."

Bug: 36385983
Bug: 32913119
Bug: 36604943

This reverts commit abb947ac24b316a188965c341599973a1f7a3de9.

Change-Id: I484534dd6c24f5b2c2839781fc6a71d9e976a859

7 years agoTarget selection for Accessibility button
Casey Burkhardt [Fri, 24 Mar 2017 17:07:20 +0000 (10:07 -0700)]
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

7 years agoAdd a default Surface to the VR Virtual Display.
Santos Cordon [Wed, 22 Mar 2017 00:05:36 +0000 (17:05 -0700)]
Add a default Surface to the VR Virtual Display.

Uses ImageReader as a do-nothing Surface to ensure the Virtual Display
gets passed through to SurfaceFlinger.

Without a Surface, the Virtual Display never makes it through the
android system to SurfaceFlinger. This change is needed to get the
Virtual Display recognized in the Flinger layers.

Test: 'setprop vr_virtualdisplay true' to enable virtual displays.
'setprop vr_debug_vd_receiver true' and shell restart for the test app.

Bug: 36491910
Change-Id: I2bf2cb4035dcf04484b7fb0bec61671864069335

7 years agoMerge "Make auto-fill UI robust"
Felipe Leme [Sat, 25 Mar 2017 00:36:38 +0000 (00:36 +0000)]
Merge "Make auto-fill UI robust"

7 years agoRegister functor draw correctly
Chris Craik [Sat, 25 Mar 2017 00:00:39 +0000 (17:00 -0700)]
Register functor draw correctly

Bug: 36602041
Test: existing tests still pass

Change-Id: I9f385da89e9e49e562031578a02f13a68697e0df

7 years agoAdd support for key-value packages to adb backup/restore.
Johan Toras Halseth [Fri, 3 Mar 2017 15:37:43 +0000 (15:37 +0000)]
Add support for key-value packages to adb backup/restore.

For adding CTS tests for packages having key-value backup agents, we add
support for key-value backups to the adb backup/restore command.
Previously, packages not supporting fullbackup would just be skipped on
this command. Now, by adding the -keyvalue flag to the adb backup command,
packages supporting key-value will also be added to the resulting
tarball. Similarly, if the tarball being supplied to adb restore
contains data from key-value packages, it will be restored.

This will later be utilized for writing CTS tests for such packages.

Test: adb backup -includekeyvalue -all && adb restore backup.ab

Change-Id: I7b4ccfb7072d01d29a888952145d7cce90a4f59e

7 years agoMerge "Update hidden WifiManager API."
TreeHugger Robot [Fri, 24 Mar 2017 23:48:05 +0000 (23:48 +0000)]
Merge "Update hidden WifiManager API."

7 years agoMerge "Use resolved ActivityInfo to set instant app installer"
TreeHugger Robot [Fri, 24 Mar 2017 23:13:56 +0000 (23:13 +0000)]
Merge "Use resolved ActivityInfo to set instant app installer"

7 years agoMerge "Collect background stats: bluetooth, wifi, sensors"
TreeHugger Robot [Fri, 24 Mar 2017 23:04:02 +0000 (23:04 +0000)]
Merge "Collect background stats: bluetooth, wifi, sensors"

7 years agoMerge "Fix companion device feature presence check"
TreeHugger Robot [Fri, 24 Mar 2017 22:58:11 +0000 (22:58 +0000)]
Merge "Fix companion device feature presence check"

7 years agoMerge "Added support for maxAspectRatio manifest attribute."
TreeHugger Robot [Fri, 24 Mar 2017 22:42:08 +0000 (22:42 +0000)]
Merge "Added support for maxAspectRatio manifest attribute."

7 years agoMerge "Restructure a11y shortcut settings"
Phil Weaver [Fri, 24 Mar 2017 22:31:12 +0000 (22:31 +0000)]
Merge "Restructure a11y shortcut settings"

7 years agoMerge "Remove "Allow persistent changes to the vendor overlay theme""
TreeHugger Robot [Fri, 24 Mar 2017 22:25:16 +0000 (22:25 +0000)]
Merge "Remove "Allow persistent changes to the vendor overlay theme""

7 years agoMake auto-fill UI robust
Felipe Leme [Thu, 23 Mar 2017 03:24:00 +0000 (20:24 -0700)]
Make auto-fill UI robust

Now the autofill UI tracks the movement of the anchor view,
both real and virtual and while still preventing the filled
app from accessing the chooser UI. This was achieved by using
a popup window in the app process to determine the window
location and adding a window presenter interface to popup
window that controls the actual window addition, removal, and
update which is implemented by the system server.

Test: all autofill CTS tests pass

bug: 36392498
bug: 35708258
bug: 34943932
fixes: 36039182
fixes: 36493078

Change-Id: I0321913b2e2e759f4b17003bf85cb873e63a467c

7 years agoReplace possibly-expensive size() == 0 with isEmpty()
Mike Tsao [Fri, 24 Mar 2017 21:56:34 +0000 (14:56 -0700)]
Replace possibly-expensive size() == 0 with isEmpty()

Bug: 36596458
Change-Id: Ieb0ea65be056bb8ce0613280e6213c330fbf783c
Test: added ContentValuesTest

7 years agoMerge "AAPT2: Fix up file IO"
TreeHugger Robot [Fri, 24 Mar 2017 22:04:55 +0000 (22:04 +0000)]
Merge "AAPT2: Fix up file IO"

7 years agoMerge "Persist functions for oemOverride across reboot"
Badhri Jagan Sridharan [Fri, 24 Mar 2017 21:56:12 +0000 (21:56 +0000)]
Merge "Persist functions for oemOverride across reboot"

7 years agoMediaCas: rethrow MediaCas specific exception
Chong Zhang [Tue, 14 Mar 2017 17:05:36 +0000 (10:05 -0700)]
MediaCas: rethrow MediaCas specific exception

Translate ServiceSpecificException from aidl to CAS-specific
exceptions. Also, throw CAS specific exception for descramble().

bug: 22804304

Change-Id: I6d68c335c87fbb95fd8cc227e432eed4e5951550

7 years agoMerge "Enable Wifi Wakeup Setting by default."
Stephen Chen [Fri, 24 Mar 2017 21:27:08 +0000 (21:27 +0000)]
Merge "Enable Wifi Wakeup Setting by default."

7 years agoMerge "Checks if an adapter item is null before addint it to options."
Felipe Leme [Fri, 24 Mar 2017 21:26:25 +0000 (21:26 +0000)]
Merge "Checks if an adapter item is null before addint it to options."

7 years agoUnbind from service on app killed and dedup association requests
Eugene Susla [Tue, 14 Mar 2017 17:26:10 +0000 (10:26 -0700)]
Unbind from service on app killed and dedup association requests

1. Listen to calling package binder death stopping the scanning on that.
2. Don't restart scanning when a request with the same values was made.

Bug: 30932767
Test: 1.:
  - Using a test app start scanning and kill the app.
  - In debug mode ensure that DeviceDiscoveryService#stopScan gets triggered
2.:
  - Start scanning and rotate the device while device chooser is visible
  - Ensure no visible loss of state is happening
Change-Id: If126a2c963da90172a956fbd88e6b3dcd7ac8b01

7 years agoAdd logging constant for reset dashboard page.
Fan Zhang [Fri, 24 Mar 2017 20:44:51 +0000 (13:44 -0700)]
Add logging constant for reset dashboard page.

Change-Id: I526bdd71dad46510a205ed7f540914e83f779224
Fix: 36458355
Test: builds

7 years agoAdded support for maxAspectRatio manifest attribute.
Wale Ogunwale [Mon, 20 Mar 2017 15:56:38 +0000 (08:56 -0700)]
Added support for maxAspectRatio manifest attribute.

- Allows an app to specify the maximum aspect ratio it supports.
- Support for overriding configuration and bounds at the activity
record and app window token level.

Test: cts/.../run-test CtsAppTestCases android.app.cts.AspectRatioTests
Test: bit FrameworksServicesTests:com.android.server.wm.WindowContainerTests
Test: bit FrameworksServicesTests:com.android.server.wm.WindowFrameTests
Bug: 36505427
Bug: 33205955
Bug: 35810513
Change-Id: Ib2d46ed0c546dd903d09d6bb7162a98bd390ba81

7 years agoUse resolved ActivityInfo to set instant app installer
Fyodor Kupolov [Fri, 24 Mar 2017 18:38:16 +0000 (11:38 -0700)]
Use resolved ActivityInfo to set instant app installer

Previously we were only using the component name, which is not always
enough.

Now the resolved ActivityInfo is used and only 'flags'/'exported' and
'enabled' attributes are modified.

Test: Manual
Bug: 34751853
Change-Id: I32a2a2bd98cc5d73ab02ccfc100868b826bb8105

7 years agoMerge "Expose connection update callback (4/4)" am: 60865e4a8d am: 45487910b4
Jakub Pawlowski [Fri, 24 Mar 2017 20:46:59 +0000 (20:46 +0000)]
Merge "Expose connection update callback (4/4)" am: 60865e4a8d am: 45487910b4
am: ccff3be9d4

Change-Id: I621210ff8d2c0b203d86e6ad2a11402466724b97

7 years agoMerge "Expose connection update callback (4/4)" am: 60865e4a8d
Jakub Pawlowski [Fri, 24 Mar 2017 20:41:51 +0000 (20:41 +0000)]
Merge "Expose connection update callback (4/4)" am: 60865e4a8d
am: 45487910b4

Change-Id: I43cca913c52aac4bd3487f7450ef8167c19db0df

7 years agoFix companion device feature presence check
Eugene Susla [Fri, 24 Mar 2017 20:35:45 +0000 (13:35 -0700)]
Fix companion device feature presence check

There was a typo causing the feature to be falsely detected as not present.

Test: Ensure feature presence is now detected correctly
Bug: 30932767
Change-Id: I44d137e89546596058b272e8eeaccc0a1db21aef

7 years agoMerge "Expose connection update callback (4/4)"
Jakub Pawlowski [Fri, 24 Mar 2017 20:36:30 +0000 (20:36 +0000)]
Merge "Expose connection update callback (4/4)"
am: 60865e4a8d

Change-Id: I0f5301b195b697743d1fb552dac4af8e1fd1445c

7 years agoMerge "Expose connection update callback (4/4)"
Jakub Pawlowski [Fri, 24 Mar 2017 20:31:31 +0000 (20:31 +0000)]
Merge "Expose connection update callback (4/4)"

7 years agoCreate a metrics event for ag/1972563 (instant apps detail screen)
Antony Sargent [Thu, 23 Mar 2017 23:32:04 +0000 (16:32 -0700)]
Create a metrics event for ag/1972563 (instant apps detail screen)

Bug: 35098444
Test: Tests for functional changes are in ag/1972563

Change-Id: I17de46278c815c9b6b385b111ca6544aa456d133

7 years agoOnly change bounds if new activity is being added to InTask
Yorke Lee [Fri, 24 Mar 2017 20:09:35 +0000 (13:09 -0700)]
Only change bounds if new activity is being added to InTask

When going through the setTaskFromInTask code path, there are multiple
scenarios where an activity isn't actually added to the task.

This change makes it such that the task is only resized if an activity
is actually being added to the task make this more semantically similar
to setTaskFromReuseOrCreateNewTask, where the task is only resized if
it is a newly created task.

This is a cherry-pick of
I111353c76e623925af21a34e395e3d5eb9282e8f

Bug: 35945071
Test: manual - setTaskFromInTask doesn't change bounds if
no new activity is added.
Change-Id: I4b8330ce775ec46812f6095c170a690fdea77736

7 years agoUpdate AMS to use NetworkManagementInternal.isNetworkRestrictedForUid.
Sudheer Shanka [Wed, 22 Mar 2017 02:31:37 +0000 (19:31 -0700)]
Update AMS to use NetworkManagementInternal.isNetworkRestrictedForUid.

And add global setting WAIT_FOR_NETWORK_TIMEOUT_MS.

Bug: 27803922
Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services
      cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests
      runtest -c android.provider.SettingsBackupTest frameworks-core
      and manual

Change-Id: I6949cd517255670e2ce21ab2de24271082461b11

7 years agoMerge "Add theme Theme.DeviceDefault.Settings.Dialog.NoActionBar"
Lei Yu [Fri, 24 Mar 2017 20:01:22 +0000 (20:01 +0000)]
Merge "Add theme Theme.DeviceDefault.Settings.Dialog.NoActionBar"