309942 Commits

Author SHA1 Message Date
TreeHugger Robot
35035f6066 Merge "Add version of @UiThreadTest that works at class level" 2017-03-09 03:00:43 +00:00
Santos Cordon
2f22da701b Debugging code to CompatibilityDisplay.
Allows CompatibilityDisplay to function/be testable without relying on
VR.  This is DEBUG-only code and requires a DEUBG flag to be set to
true.

Change-Id: I2a97a7e31839b0c35864149cbfb75873e39e0959
2017-03-08 18:51:50 -08:00
Donghyun Cho
d5386fd4ef Merge "CEC: Add a method to control standby mode of the device" 2017-03-09 02:06:52 +00:00
TreeHugger Robot
7cf9be0246 Merge "Make Bitmap.get/setPixel[s] color space aware" 2017-03-09 02:06:10 +00:00
TreeHugger Robot
40101efd1a Merge "Audio focus: framework enforces ducking" 2017-03-09 01:53:03 +00:00
TreeHugger Robot
9042dddb24 Merge "Fix API checking for some" 2017-03-09 01:37:22 +00:00
Svetoslav Ganov
e83df48908 Avoid cross lock acquisition leading to deadlocks
Test: manual

bug:36007738

Change-Id: I3db09af07857435682754916849433a809547974
2017-03-08 17:32:42 -08:00
TreeHugger Robot
fe01038616 Merge "Updated javadoc for ACTION_MANAGE_EXTERNAL_SOURCES" 2017-03-09 01:22:00 +00:00
Chris Tate
eb4b104123 Merge "Shell can now fake battery presence" 2017-03-09 01:16:38 +00:00
Mathias Agopian
bc7d167985 Merge "fallout from getting rid of IGraphicBufferAlloc" 2017-03-09 01:15:48 +00:00
TreeHugger Robot
7f61163340 Merge "Provided an AutofillCallback API." 2017-03-09 01:13:14 +00:00
Eugene Susla
e70e6aa62c Support multiple filters per association request
By supporting multiple filters per one request we should be able to cover
multiple kinds of use cases such as:
 - Letting the user select from a list of devices of more then one medium
 type (e.g. Bluetooth and BLE)
 - Allowing to provide multiple criteria for any field (e.g. filtering by
 more than one service UUID)

Bug: 30932767
Test: Provide multiple filters and ensure that devices matching either are
shown in the list to choose from.
Ensure wifi SSIDs are shown in the list if wifi filter is provided
Change-Id: I6621da388e2bf4ed97c5af2692629a321d0b63c7
2017-03-08 16:52:14 -08:00
Romain Guy
ce217faddb Make Bitmap.get/setPixel[s] color space aware
Bug: 32984164
Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases --test android.graphics.cts.BitmapColorSpaceTest
Change-Id: Iee8c4abb264f0d2a44bae59788fbf4dcb2d0fdf7
2017-03-08 16:45:20 -08:00
Andy Hung
8810e9c0bc Merge "VolumeShaper: Update Builder methods and Object overrides" 2017-03-09 00:31:23 +00:00
TreeHugger Robot
25e72b35e8 Merge "Fix bug in error checking in GnssLocationProvider" 2017-03-09 00:30:00 +00:00
TreeHugger Robot
35fe82fd54 Merge "Throw at getPackageSizeInfoAsUser() callers." 2017-03-09 00:10:03 +00:00
Eino-Ville Talvala
4e79fe7db0 Fix API checking for some
Using AIDL constants in the definition of public API static ints seems
to confuse build tools sometimes.  Switch to just duplicating the
constants until that's worked out.

Test: Builds, at least for me!
Change-Id: I0fbe95bc0492eb8b39687f25a6c7e073fbb65dc4
2017-03-08 16:03:47 -08:00
George Mount
899ca3236d Fix stale data due to stopped loader.
Bug 33185424

When stopping an CursorLoader while data is being loaded,
the load task will be canceled. This CL marks the data as
changed if the cancel is called while the loader is stopped.

Test: I63b48210a25be72d13a2a6182eb1757cbe6a1949
Change-Id: Ibf9c5facdcc5160f6ed146c5fdd063549ac2a7a8
2017-03-08 15:29:27 -08:00
TreeHugger Robot
61c9bf957b Merge "Optimize ViewStructure for autofill by removing irrelevant nodes." 2017-03-08 23:21:54 +00:00
Dmitry Dementyev
8e4d22b85a Merge "Use LinedHashMap in AccountManagerService to return accounts in the order of database addition" 2017-03-08 23:21:01 +00:00
Mathias Agopian
2bd7d98fe8 fallout from getting rid of IGraphicBufferAlloc
Test: compiled & run
Bug: cleanup
Change-Id: I1590105d3abef985c2ae7c1a03cdf5fd2ec4bef9
2017-03-08 23:12:06 +00:00
TreeHugger Robot
62dd27ab3b Merge "Move lagging users over to new storage API." 2017-03-08 22:51:52 +00:00
Jeff Sharkey
e6306c485f Throw at getPackageSizeInfoAsUser() callers.
But only when targeting O; if they're old apps then log and pass
a soft failure message to their callback.

Test: builds, boots
Bug: 35749102
Change-Id: I6c6b5a37c23669e7b1ed3c30207bca610821eb1f
2017-03-08 15:25:38 -07:00
Scott Main
2ba0df0374 Merge "update uiautomator doclava build to use new location for templates as per: https://googleplex-android-review.git.corp.google.com/#/c/1524290/" 2017-03-08 21:59:13 +00:00
Selim Cinek
3660504f14 Merge "Fixed a bug where the scrim was distracting when pulling on HUN" 2017-03-08 21:52:59 +00:00
Mike Reed
97fa22998f switch to new SkPathEffect factories for Compose and Sum
Test: existing Paint tests exercise these factories

Change-Id: I38abd91203b06b1141dcb4fd96478f9e0a1d18ba
2017-03-08 21:47:14 +00:00
Tenghui Zhu
fd7e897193 Merge "Disable versioning for pathInterpolator when no-version-vectors is on." 2017-03-08 21:42:49 +00:00
Felipe Leme
d04a697ede Optimize ViewStructure for autofill by removing irrelevant nodes.
Test: CtsAutoFillServiceTestCases (with new tests) pass
Fixes: 35840787

Change-Id: Iaa2c1907c8383b4a820fd7204e67fa2d276ad2b8
2017-03-08 13:31:38 -08:00
Jeff Sharkey
4f459b85d4 Merge "Revert "Throw at getPackageSizeInfoAsUser() callers."" 2017-03-08 21:19:42 +00:00
Hiroshi Yamauchi
1e3db871e5 Fix the reset of boosted zygote thread priority.
This fixes the unexpected priority 112 of the daemon threads
(eg. HeapTaskDaemon). The problem was that when the zygote main
thread's priority is reset, it directly calls setpriority() and fails
to update the priority value in java.lang.Thread, which in turn causes
any threads created by the thread to unexpectedly inherit the boosted
priority. Calling java.lang.Thread.setPriority instead fixes.

Bug: 35801778
Bug: 28866384
Test: angler master userdebug boots and thread priorities checked.

Change-Id: I68a6ed7244a9067acc2749feca7f88422bf44b02
2017-03-08 13:17:02 -08:00
jackqdyulei
92681e8cfb Hook up screen brightness knob to DisplayPowerController.
This knob is designed to effectively tune the battery saver.

Bug: 34693888
Test: FrameworksServicesTests
Change-Id: I9fd7896f59fabd9baf649cdb12f01b1baaf4c34b
2017-03-08 13:15:19 -08:00
Wally Yau
0fd8e4af27 Merge "AC3/EAC3 MaxInputChannelCount support" 2017-03-08 21:12:00 +00:00
TreeHugger Robot
7e547fbe88 Merge "Replace AutoFillType by view constants." 2017-03-08 21:08:56 +00:00
TreeHugger Robot
932eb90eb4 Merge "Surrounding some field names with quotes to avoid breaking CSV assumptions." 2017-03-08 21:06:21 +00:00
Jeff Sharkey
60f95aa00a Move lagging users over to new storage API.
Over the last month we've been moving everyone over to the new
StorageStatsManager public APIs, but we missed these users.

The ApplicationsState changes are straightforward, but we had to
completely rewrite StorageMeasurement to use the new fast-path
quota APIs.

Test: builds, boots, UI using StorageMeasurement works.
Bug: 36056120
Change-Id: If02177c95bf8c96ae4eceac4d631a168f99bef84
2017-03-08 13:57:29 -07:00
Keun-young Park
c09af775c6 Merge "log fs_stat from fs_mgr and mount_all time" 2017-03-08 20:56:17 +00:00
Jesse Evans
3c887cb581 Merge "Adds an explicit id for visibleToInstantApps attr" 2017-03-08 20:52:50 +00:00
TreeHugger Robot
e8914d2ba4 Merge "Do not disable Open Network Notifications setting on profile change." 2017-03-08 20:41:03 +00:00
TreeHugger Robot
a76876c48a Merge "Updating moveTaskToBack to handle PiP activities" 2017-03-08 20:38:08 +00:00
Brad Ebinger
5fe6fbcaad Merge "Return generic Binder on onBind" am: c6613f7206 am: 2a71bd5150
am: 2fca3afd4b

Change-Id: Ic668d9bb43f58f28c096083f89c6bec30cf9640a
2017-03-08 20:11:04 +00:00
Brad Ebinger
2fca3afd4b Merge "Return generic Binder on onBind" am: c6613f7206
am: 2a71bd5150

Change-Id: Ie447b8094ca9c483aac3886c795240301b5f2ace
2017-03-08 20:06:26 +00:00
Lei Yu
30d69eaf86 Merge "Add BatterySaverPolicy for power save mode" 2017-03-08 20:02:46 +00:00
Brad Ebinger
2a71bd5150 Merge "Return generic Binder on onBind"
am: c6613f7206

Change-Id: Ibc8cce3c63b93820f6bdd842e6a751233240874d
2017-03-08 20:02:03 +00:00
TreeHugger Robot
2277480ef2 Merge "Add metric for openProxyFileDescriptor." 2017-03-08 19:55:43 +00:00
Brad Ebinger
c6613f7206 Merge "Return generic Binder on onBind" 2017-03-08 19:53:26 +00:00
TreeHugger Robot
eb47ae261a Merge "TextClassifier: Introduce LocaleList in the API." 2017-03-08 19:50:20 +00:00
TreeHugger Robot
d11fbe34bd Merge "Add new constants to track successful contact queries Bug: 35803126,35873712 Test: No need to add any tests for this" 2017-03-08 19:49:41 +00:00
Matthew Ng
330757dffa Corrects the recents and home stacks position around docked state (1/2)
Since splitting home stack into home and recents, some problems where
the home stack would appear above when home stack is not visible. This
would cause home stack to be below docked stack and think home is
visible when it is not. Then docking an app would minimize the docked
stack and go into a wierd state when recents is resumed/launched.

When docked stack is used, it will verify that recents is created and
avoids seeing home stack as visible when below docked stack with at
least 1 stack in between. Whenever an app is docked, this will make sure
home stack is below recents.

This will fix some parts of the cts tests that use
"adb shell am stack move-task <taskId> 3 true" and avoid glitches with
the docked stack.

The following scenarios were tested:
- Boot and dock and app without starting recents
- Dock after launching an app (when recents already created)
- Toggle dock with "adb shell am stack move-task <taskId> 3 true" and
undocking multiple times
- Dock with long press recents

Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test
CtsServicesHostTestCases
android.server.cts.ActivityManagerDockedStackTests
Bug: 35351074, 35145587
Change-Id: I6ac25c64f7d1050ea2260631ff4c052fcca3f185
2017-03-08 11:47:36 -08:00
Jakub Pawlowski
6f45188e87 Merge "Bluetooth 5 Advertising API" am: 1bb08c25b8 am: fc3c9d0e9e
am: c162879c6a

Change-Id: I61382d466f28311b8ba5dd4ab120747eb0708501
2017-03-08 19:45:37 +00:00
Jakub Pawlowski
2ad15fd129 Merge "Bluetooth 5 PHY selection API" am: 104eeedb42 am: 4f6034160c
am: 3730cd9608  -s ours

Change-Id: I5d0dfea7068f123e544686d0522d06a3a1bbf095
2017-03-08 19:44:04 +00:00