Commit Graph

73161 Commits

Author SHA1 Message Date
Alison Cichowlas
2d89c243da Tron logging - Fix isValidValue to match its name, allow nulls.
Test: runtest --path frameworks/base/core/tests/coretests/src/android/metrics/LogMakerTest.java
Change-Id: I92567e1873c5178606ac88135b5934d760b4ec24
2017-01-25 10:56:33 -05:00
Nicolas Prévot
38c2395078 Merge "Allow DO to provision even if it has set disallow remove mp." 2017-01-25 11:42:05 +00:00
Filip Pavlis
a1dc8f6d71 Merge "Add getParent() on Preference." 2017-01-25 10:26:24 +00:00
Bartosz Fabianowski
6c9c5541ab Merge "Add device id attestation" 2017-01-25 08:11:09 +00:00
TreeHugger Robot
b81d978490 Merge changes from topic 'sensor_direct_report'
* changes:
  Sensor event direct report mode implementation
  Sensor event direct report mode support API
2017-01-25 05:08:46 +00:00
Bartosz Fabianowski
92e8cfd21d Add device id attestation
This adds a new public API for attesting the device's hardware ids
(e.g. serial number and IMEI).

Bug: 34597337
Test: CTS CtsKeystoreTestCases and GTS DeviceIdAttestationHostTest

Change-Id: I2e9c1b4f8eb24afa4a09c71c137ce33a6b87eb27
2017-01-25 04:47:15 +01:00
Peng Xu
fa2672b71d Sensor event direct report mode implementation
Implementation of sensor direct report API. In this verison, only
ashmem(MemoryFile) backed direct channel is implemented. Support
of HardwareBuffer class will come in a following CL.

Test: tested with demo app
Bug: 30985702
Change-Id: I29cae5cb2615c7a128fe203ed1545c03010ca4aa
2017-01-24 19:18:29 -08:00
TreeHugger Robot
482ebe9bad Merge "Implemented network score cache filtering." 2017-01-25 03:01:38 +00:00
Ying Wai (Daniel) Fan
896c7f8937 Merge "Correct the formula of battery capacity estimation." 2017-01-25 02:01:53 +00:00
TreeHugger Robot
58ac1310db Merge "Camera2: Combine API for deferred surface and shared surface" 2017-01-25 01:54:24 +00:00
Jeremy Joslin
ba24273401 Implemented network score cache filtering.
NetworkScoreCaches registered with a filter type will now only
receive updates that match their filter criteria.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 34127291
Change-Id: I3d5e6e57b6682707b0734259a2530658ad75dbb7
2017-01-24 17:33:47 -08:00
Ralph Nathan
9d3d90a22f Merge "Add FEATURE_EMBEDDED to PackageManager" 2017-01-25 01:32:54 +00:00
TreeHugger Robot
01e4eeb0e8 Merge "Added StackWindowContainerController" 2017-01-25 01:25:19 +00:00
Jason Long
b04c54fdb3 Merge "Define contract for AutoFillServiceInfo more precisely." 2017-01-25 01:21:43 +00:00
TreeHugger Robot
e84ad491c8 Merge "Add color mode to activity/window" 2017-01-25 01:20:28 +00:00
TreeHugger Robot
b7cab6a190 Merge changes from topic 'bisto-request'
* changes:
  Allow privileged app to set media key event listener
  Allow privileged app to set volume key long-press listener
2017-01-25 01:16:32 +00:00
Peng Xu
ccf0c8edea Sensor event direct report mode support API
Add direct report mode support API with stub implementation.

 * new SensorDirectChannel class to represent direct channel and
   hold related constants.
 * new methods in SensorManager to create/destroy direct channel
 * new method in SensorManager to config sensor report in direct
   channel
 * new methods in Sensor to expose direct report related capability
   of sensor.

Test: tested with demo app
Bug: 30985702
Change-Id: Ic03c67bea4ed0a728d3d783e95de6c59cf663cca
2017-01-24 16:54:05 -08:00
Romain Guy
4832745b84 Add color mode to activity/window
The color mode lets an application request a wide color gamut for
a specific window. This will also be used in the future to request
HDR. The color mode is currently either default (sRGB) or an undefined
wide gamut color space chosen by the platform. These attributes could
later be used to choose a specific color space if we deem this important
or useful.

This change also renames the various "colorimetry" attributes and
constants to "color mode" for consistency. These symbols were
added in O and can be safely renamed.

Test: CtsColorModeTestCases
Bug: 32984164
Change-Id: I4d4691dd12dbe3f3aa6a5cf893cff39aa16c739e
2017-01-24 15:55:09 -08:00
Badhri Jagan Sridharan
d979398983 Merge "Refactor UsbPortManager to use the binderised USB HAL" 2017-01-24 23:46:25 +00:00
Makoto Onuki
454a9777b8 Merge "Add client package name to WTF message" 2017-01-24 23:42:31 +00:00
Matthew Snider
c755fb64f6 Merge "Introducing clear package data intent" 2017-01-24 23:31:12 +00:00
Ralph Nathan
b8e0dee9af Add FEATURE_EMBEDDED to PackageManager
This CL adds FEATURE_EMBEDDED to PackageManager to identify Android
Things devices.

BUG: 34644059
Test: built using make update-api

Change-Id: Ife4430e4a445f6afdd969e94db5fe5c9098ee145
2017-01-24 15:30:50 -08:00
TreeHugger Robot
b878348382 Merge "Don't mark query+cancellationSignal final." 2017-01-24 23:26:24 +00:00
Wale Ogunwale
1666e317dc Added StackWindowContainerController
For linking ActivityStack in AMS to TaskStack window container in WMS.

Change-Id: I8b9eaef49e62854d59b22d27f80f5935a5a4d7fc
Bug: 30060889
Test: bit FrameworksServicesTests:com.android.server.wm.StackWindowContainerControllerTests
Test: bit FrameworksServicesTests:com.android.server.wm.TaskWindowContainerControllerTests
Test: Existing test pass and manual testing.
2017-01-24 15:23:37 -08:00
TreeHugger Robot
f070b4ef55 Merge "Snoozing API changes" 2017-01-24 22:52:43 +00:00
Vladislav Kaznacheev
18b317cf98 Merge "Revert "Remove View.setTooltip/getTooltip"" 2017-01-24 22:38:01 +00:00
TreeHugger Robot
13c8c869d2 Merge "Enabled backup/restore of Wifi Wakeup and Network Recommendations Settings." 2017-01-24 22:36:44 +00:00
Winson Chung
6d2fe9e96d Merge "Remove dependency on resizable activity to enter PiP." 2017-01-24 22:26:47 +00:00
Vladislav Kaznacheev
c56c7462ef Revert "Remove View.setTooltip/getTooltip"
This reverts commit 3da84b4e3c.

Change-Id: Ie6f29f6527d71f564906b4cc05b344823c73c3f2
2017-01-24 22:17:42 +00:00
Siyamed Sinir
3d9238ec63 Fix SpannableStringBuilder getSpans sort am: 051caedcaa
am: 1764efad93

Change-Id: I33b2f25901330e79bbc166a318f71d5124d0b332
2017-01-24 22:14:44 +00:00
Siyamed Sinir
7afe571bd7 Merge "Make SpannableStringBuilder.getSpans thread-safe" 2017-01-24 22:12:17 +00:00
Siyamed Sinir
1764efad93 Fix SpannableStringBuilder getSpans sort
am: 051caedcaa

Change-Id: I6d4a4d3b5810d47809458bcd1e1dce9567363da6
2017-01-24 22:08:56 +00:00
Shreyas Basarge
a393ff7dc7 Merge "API to select backup transport" 2017-01-24 22:02:28 +00:00
Evan Rosky
975911cda8 Merge "Add support for automatic focusability determination" 2017-01-24 21:49:07 +00:00
Steve McKay
0bb25299ca Don't mark query+cancellationSignal final.
Bug: 34517733
Test: None.
Change-Id: Iff281c676b928859c0e2e975d9f0cfabb36479d9
2017-01-24 13:46:15 -08:00
msnider
3c191b8bd9 Introducing clear package data intent
Clear data Intent can be called from any application and
executes in the PackageInstaller. The user will be asked
to verify that they truly want to clear package data via
an AlertDialog.

This was initially intended to be @SystemApi, but
conversations with API-Review led to it be public.

Test: Covered by a gts-test ag/1806256 and manually tested
by calling from com.android.vending (Play Store).

bug: 33017941
bug: 31008483

Change-Id: Ibeae6620303ba52cc2ebf0383756c9380d3fa013
2017-01-24 13:39:52 -08:00
Julia Reynolds
cf63ff1532 Snoozing API changes
- No one can snooze for an undetermined amount of time
- Only the assistant can unsnooze
- Listeners can retrieve a list of snoozed notifications

Test: runtest systemui-notification, cts verifier
Change-Id: Idfaee6d8bc15a5d41630f86f7e852468b07dc7d0
2017-01-24 16:18:52 -05:00
TreeHugger Robot
d3902a342e Merge "Introduce Fonts Content Provider" 2017-01-24 21:17:11 +00:00
John Reck
9e2a47d230 Merge "Revert "Destroy DisplayLists on time"" 2017-01-24 21:08:05 +00:00
Stephen Chen
42f5f29439 Enabled backup/restore of Wifi Wakeup and Network Recommendations Settings.
Bug: 34430370
Test: make
Change-Id: I8838eace4cac6a02d580d73a5700ca4e3f368bf6
2017-01-24 13:01:07 -08:00
TreeHugger Robot
f5c6893dd0 Merge "Remove View.setTooltip/getTooltip" 2017-01-24 20:56:08 +00:00
TreeHugger Robot
5a5afca936 Merge "Add versionCode" 2017-01-24 20:36:40 +00:00
Chris Wren
5e02bca5cb Merge "Move MetricsReader to SystemApi" 2017-01-24 20:21:09 +00:00
Andrew Sapperstein
e4910cc70a Add Settings.Global configs to high temp warning.
am: 63db9254cf

Change-Id: I63de4c9648158d8b19ed5d7eac1e75ca9b68d355
2017-01-24 20:08:42 +00:00
Makoto Onuki
3a2541e6da Add client package name to WTF message
Bug 34650921
Test: manual tests with GEL launcher with work profile
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest1 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest2 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest3 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest4 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest5 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest6 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest7 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest8 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest9 -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.pm.ShortcutManagerTest10 -w com.android.frameworks.servicestests

Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsShortcutHostTestCases -t 'android.content.pm.cts.shortcuthost.ShortcutManagerMultiuserTest#testManagedUser'
Test: cts-tradefed run cts --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t 'com.android.cts.devicepolicy.LauncherAppsProfileTest'
Change-Id: I68f72f0798b752690e4e8d32360fd1d15bedef31
2017-01-24 11:55:51 -08:00
Clara Bayarri
b0812a3049 Introduce Fonts Content Provider
This change exposes to developers the ability to request fonts
from a provider via Typeface.

Until further security is implemented, only system apps can
provide fonts.

Test: See topic for CTS change
Change-Id: Ic7d5e2648340ee561f4d4c2d73a673748d2af076
2017-01-24 19:32:09 +00:00
Shuzhen Wang
4bd7abe72a Camera2: Combine API for deferred surface and shared surface
- Unhide API to enable sharing surfaces via OutputConfiguration.
- Combine the APIs for deferred surface and shared surfaces so that
  same functions can be used for both use cases.
  1. setDeferredSurface becomes addSurface.
  2. finishDeferredConfiguration becomes finalizeOutputConfiguration.
- Better documentation on shared surface use cases.

Test: Camera CTS, and preview/video/capture with GCA
Bug: 33777818
Change-Id: I528b221492e07888a2da96658aaf8e7b9c4d1640
2017-01-24 11:05:15 -08:00
Todd Kennedy
316c2f2079 Add versionCode
We need to specify the version code to use when installing
splits since the version on the device might be different
from the latest on the server.

Bug: 25119046
Test: manual
Change-Id: I4ad21f9e5924fcf76a39780e6d98e8d7a1fef5d4
2017-01-24 11:01:27 -08:00
Jesse Hall
cb3cde5b5d Don't lower priority of EGL Init thread am: 37e63c705e
am: e8a5df8530

Change-Id: I5fe07a9c459e8be4e5ef19aca8d750eecfd44bb3
2017-01-24 18:59:00 +00:00
Winson Chung
d339538a67 Remove dependency on resizable activity to enter PiP.
- Removing the requirement for activities to have both the
  resizeableActivity and supportsPictureInPicture attribute
  to enter PiP.  The activity may still be resized when
  entering picture-in-picture.

Bug: 34256643
Test: android.server.cts.ActivityManagerPinnedStackTests
Change-Id: If6bd4721c53072e5518f554a8c7598705517c132
2017-01-24 10:56:33 -08:00