Commit Graph

86881 Commits

Author SHA1 Message Date
Ricardo Loo Foronda
7075daa278 Merge "Docs: Fixed broken link to Traceview docs" into oc-mr1-dev am: 16a77c54ef
am: 223ba4c536

Change-Id: I431ffb4177174cba7258a3a6ad30cfbab130f269
2018-01-29 04:18:38 +00:00
Ricardo Loo Foronda
223ba4c536 Merge "Docs: Fixed broken link to Traceview docs" into oc-mr1-dev
am: 16a77c54ef

Change-Id: Ifb88d7364a377092509bb9a93def65ccca7dcf41
2018-01-29 04:11:43 +00:00
Ricardo Loo Foronda
16a77c54ef Merge "Docs: Fixed broken link to Traceview docs" into oc-mr1-dev 2018-01-29 04:04:09 +00:00
Ricardo Loo Foronda
8e2af19744 Merge "docs: Added a missing "be" in ACTION_CONNECTION_STATE_CHANGED" into oc-mr1-dev am: 1299d4b0a9
am: d5a62bebc3

Change-Id: Ie138a98a87f9f4fb895d2b9f834d43ac04866b86
2018-01-29 02:47:50 +00:00
Ricardo Loo Foronda
d5a62bebc3 Merge "docs: Added a missing "be" in ACTION_CONNECTION_STATE_CHANGED" into oc-mr1-dev
am: 1299d4b0a9

Change-Id: Ib2911651950048305b00df5f26ca5656e205bcee
2018-01-29 02:39:30 +00:00
TreeHugger Robot
eb68f65224 Merge "Comment more on component callback order for N+ OS" 2018-01-29 00:50:17 +00:00
TreeHugger Robot
206593e49c Merge "Add freeze period support in SystemUpdatePolicy" 2018-01-28 16:11:37 +00:00
TreeHugger Robot
231cb066ab Merge "Small fixes for TextClassifierImpl" 2018-01-27 23:39:52 +00:00
TreeHugger Robot
b443123538 Merge "Add throwIfParentInstance check to setMandatoryBackupTransport." 2018-01-27 18:09:33 +00:00
TreeHugger Robot
4c23c1b365 Merge "[Magnifier - 15] Fix magnifier window positioning" 2018-01-27 04:08:32 +00:00
TreeHugger Robot
8036428c56 Merge "Revert "Move A11y events throttling away from View(RootImpl)"" 2018-01-27 03:45:39 +00:00
TreeHugger Robot
4470d5eadb Merge "Clean up the procstats dump enums and change component to use message." 2018-01-27 02:33:21 +00:00
TreeHugger Robot
c7483a0e88 Merge "Document Vulkan 1.1 requirements for FEATURE_VULKAN_HARDWARE_VERSION" 2018-01-27 02:31:28 +00:00
Ruchi Kandoi
2b894394a5 Merge "Add UID and Service for Secure Element Application" am: b8b7589531
am: 8ee3204c58

Change-Id: I7c74f21e014fb7eb772e2d86cc278fd774ffb8c9
2018-01-27 01:59:46 +00:00
Ruchi Kandoi
8ee3204c58 Merge "Add UID and Service for Secure Element Application"
am: b8b7589531

Change-Id: Ib66be1532dd440b1161e6d2d727243fc6b9e614f
2018-01-27 01:52:33 +00:00
TreeHugger Robot
ce01bd906e Merge "Proto enums for DeviceIdleMode" 2018-01-27 01:18:20 +00:00
Treehugger Robot
b8b7589531 Merge "Add UID and Service for Secure Element Application" 2018-01-27 00:53:00 +00:00
Ruchi Kandoi
6149b0fa49 Add UID and Service for Secure Element Application
Bug: 64994044
Test: Boot; Check Service loaded.
Change-Id: I2f48ff204acd29b1a9f6819910aba5f8f3762977
2018-01-27 00:45:49 +00:00
Dmitry Dementyev
0f06d06125 Merge "Rename RecoveryController.getRecoveryData() to getKeyChainSnapshot." 2018-01-27 00:37:53 +00:00
Makoto Onuki
1f805b44ea Merge "Allow system jobs to be exempted from app-standby" 2018-01-27 00:31:42 +00:00
Pavlin Radoslavov
bc2e4a230b Merge "Add support for Multi-A2DP state machines per device" am: bb5318df8a
am: adf2239562

Change-Id: Ibe372b2ecda317e7970d6e681a4e2330e69782c1
2018-01-27 00:01:20 +00:00
TreeHugger Robot
c9c029c70b Merge "Add setting/experiment for time only mode for watch type devices." 2018-01-26 23:59:25 +00:00
Pavlin Radoslavov
adf2239562 Merge "Add support for Multi-A2DP state machines per device"
am: bb5318df8a

Change-Id: I9fabffc6d7fdb3cb001b685618532f10000dd4ac
2018-01-26 23:53:17 +00:00
TreeHugger Robot
b4799807b6 Merge "Remove workaround for the ByteBuffer#put issue" 2018-01-26 23:44:42 +00:00
Yohei Yukawa
0308e6a216 Comment more on component callback order for N+ OS
This CL attempts to clarify that just having a ContentProvider does
not necessarily mean ContentProvider#onCreate() is always called
before Application#onCreate() on Android N and later devices because
of direct boot.

Fix: 67559645
Test: make -j doc-comment-check-docs
Change-Id: I33b7cda42146333f48fb445027f5d31f3c5af5b6
2018-01-26 15:10:42 -08:00
Steven Moreland
d4b40969d4 Merge changes from topic "hidl-system-api"
* changes:
  Add remaining missing HIDL SystemApi methods.
  HIDL: reportSyspropMethod -> enableInstrumentation
2018-01-26 23:09:15 +00:00
Rubin Xu
29b9a7d1f4 Add freeze period support in SystemUpdatePolicy
Freeze period is defined as a pair of calendar dates (recurring annually)
during which the system should block any incoming system updates, including
security patches. They are set on top of existing system udpate policy
types (automatic, windowed, postpone) such that outside the freeze
periods existing policy semantics will still apply. They are created to
allow admin to keep their device fleet from any destabilizing changes during
critical period of the year, for example during Christmas sales period.

Device Owner can set several freeze periods, although to prevent the device
from not receiving OTAs indefinitely, each single freeze period is
restricted to be at most 90 days, and adjacent freeze periods need to be at
least 60 days apart. To properly enforce these restrictions, any freeze
periods the device previously experienced is tracked by DevicePolicyManager
and are validated against any new policy. This is to deal with corner cases
such as the admin repeatedly set a short but overlapping freeze period on a
rolling basis, hence bypassing the 90-day freeze period restriction.

Test: runtest -c com.android.server.devicepolicy.SystemUpdatePolicyTest frameworks-services
Bug: 64813061
Change-Id: I2864192797dc194edd9c183b881da6cfe3fdba5e
2018-01-26 23:07:59 +00:00
TreeHugger Robot
d2e162890e Merge "Proto enum reference for App Transitions" 2018-01-26 22:12:26 +00:00
Makoto Onuki
959acb5273 Allow system jobs to be exempted from app-standby
This flag will allow the sync manager to exempt certain kind of sync requests.

- This will only exempt jobs from app-standby.

- EBS still won't exempt them. Battery saver cuts background network anyway, so
background syncs will still not work, and it didn't used to work pre-P either.

- Manual force-app standby still doesn't allow them to run.

Bug: 72443754
Test: Build and boot. The behavior shouldn't change since none uses the flag yet.
Test: atest CtsJobSchedulerTestCases
Change-Id: I806b97bb4b7da773479e878e6eccb792b03eadc1
2018-01-26 14:10:03 -08:00
TreeHugger Robot
c110e17bef Merge "incidentd: Adding privacy tag and expanding field." 2018-01-26 22:07:21 +00:00
TreeHugger Robot
618e86023f Merge "v3 APK verification: reset por signedData after verification." 2018-01-26 21:58:29 +00:00
Pavlin Radoslavov
080a0e781c Add support for Multi-A2DP state machines per device
* Update usage of A2dpService API calls that take BluetoothDevice
  as an additional argument
* Update the description for BluetoothA2dp.connect()

Exempt-From-Owner-Approval: De-facto owner of the relevant changes is
the Bluetooth team.
Bug: 69269748
Test: Manual
Change-Id: I190ed48ef65bbc8b88b45f84ebd6ab3d21cf0b4e
Merged-In: I190ed48ef65bbc8b88b45f84ebd6ab3d21cf0b4e
(cherry picked from commit 502af2192c)
2018-01-26 13:08:00 -08:00
Philip P. Moltmann
d3402ac90c Merge "Add logging to MemoryIntArray" 2018-01-26 20:49:08 +00:00
Dmitry Dementyev
b4fb987770 Rename RecoveryController.getRecoveryData() to getKeyChainSnapshot.
Bug: 72299798
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I1a530414d255867786142fa2e01e50469379e295
2018-01-26 11:55:50 -08:00
TreeHugger Robot
86356ec7a6 Merge "Get the themes outside of the resource lock" 2018-01-26 19:55:28 +00:00
Eugene Susla
72c510f1c4 Revert "Move A11y events throttling away from View(RootImpl)"
This reverts commit e4d31b3c10.

Fixes: 71904218
Test: presubmit
Change-Id: Id73bde1a0c11696cf561c84cde027cdca4c6a00f
2018-01-26 11:32:25 -08:00
Ruchi Kandoi
dcf4c6dc26 Add UID and Service for Secure Element Application
Bug: 64994044
Test: Boot; Check Service loaded.
Merged-In: I2f48ff204acd29b1a9f6819910aba5f8f3762977
Change-Id: I2f48ff204acd29b1a9f6819910aba5f8f3762977
(cherry picked from commit dfaf4bdd1e7e12caf9bb69c8facc38e879861baf)
2018-01-26 11:11:52 -08:00
Ben Gruver
fbf5892f15 Merge "Implement UI for warn-on-launch" 2018-01-26 18:44:11 +00:00
Chris Tate
55c84552cc Merge "Let the job scheduler know when the user interacts with an app" 2018-01-26 18:21:04 +00:00
Ricardo Loo Foronda
ac750a8a60 Docs: Fixed broken link to Traceview docs
Status: Ready for review.
Note: This is a Javadoc only change.

Changes:
* Replaced "guide/developing/tools/traceview.html/ with
  "studio/profile/traceview.html"

Test: * Build with "make ds-docs -j16"
      * Staged content at go/dac-stage/reference/android/os/Debug.html
      * Ran linkchecker against staged content

Bug: 37640935
Change-Id: I0446c44a78ae7d1d9193e2fe08e059cdc90cac7a
2018-01-26 18:16:23 +00:00
Ricardo Loo Foronda
f710a2307a docs: Added a missing "be" in ACTION_CONNECTION_STATE_CHANGED
Status: Ready for writer review.
Note: This is a javadoc only change.

Test: Build the docs with "make ds-docs" and staged updated content.
Staged content:
go/dac-stage/reference/android/bluetooth/BluetoothAdapter.html#ACTION_CONNECTION_STATE_CHANGED

Bug: 69097875
Change-Id: Ibffea2373ded825558beaa669ae4daf3c0ff3d2f
2018-01-26 18:16:05 +00:00
TreeHugger Robot
7849ab7137 Merge "Revert "Add developer setting to set the default GPU renderer."" 2018-01-26 17:50:55 +00:00
Bookatz
8bdae8d682 Proto enums for DeviceIdleMode
Created an enums.proto that contains the device idle modes,
which is referenced by batterystats.

Note that, currently, batterystats is the origin of these
constants in the java code, and I have kept that as is.
Thus, batterystats references the enum.
Nevertheless, because the actual control of device idle
mode is DeviceIdleController.java, where these constants
will likely one day be moved, I have put the constants
in server/enums.proto (since DeviceIdleController is
in server, not os like BatteryStats).

Bug: 69478930
Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.HostAtomTests#testDeviceIdleModeStateChangedAtom
Change-Id: I6e66801ae8256aab423067f9a4b852a194564a8d
2018-01-26 17:26:20 +00:00
Makoto Onuki
83f489b583 Merge "Do not throttle EXEMPT apps on battery saver" 2018-01-26 16:43:08 +00:00
Dan Cashman
6dbf837a3a v3 APK verification: reset por signedData after verification.
During the proof-of-rotation additional attribute parsing, each
new certificate needs to be verified by the last.  When doing this
verification, the ByteBuffer position is advanced to its limit, but
it needs to be read again to extract the certificate.  Reset the
signedData ByteBuffer to its original position.

Bug: 64686581
Test: Builds, boots, v3 signed app with rotated cert installs.
Change-Id: Ie95e4c7e99e3cfb9a987638a0c641456af2f34d9
2018-01-26 08:36:31 -08:00
TreeHugger Robot
a5014f298c Merge "Remove @removed trySetQuietModeEnabled" 2018-01-26 16:14:04 +00:00
Tony Mak
7699a19d2b Remove @removed trySetQuietModeEnabled
Context:
Updated the API according to API council feedback. Marked it as
@Removed and keep it for a while for Launcher. But now Launcher
prebuilt is updated, we are safe to remove it.

Test: Build

BUG: 71818127

Change-Id: I33fec12addf7031bfbcd86bce9e636c31d0ea4d3
2018-01-26 16:13:44 +00:00
Mihai Popa
4b6ef9956b [Magnifier - 15] Fix magnifier window positioning
This CL fixes the positioning of the magnifier window when the magnified
view is attached to a window with non-zero insets in its surface. The
magnifier PopupWindow is a panel window attached to the magnified view's
window, so its positioning has to be computed relative to this window.
However, previously the coordinates were computed relative to the view's
surface.

Bug: 72417421
Bug: 63531115
Test: bit CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I27aebd210d7596316f48fc55bfd6a37934624916
2018-01-26 16:01:52 +00:00
Lenka Trochtova
629001203f Add throwIfParentInstance check to setMandatoryBackupTransport.
Throw SecurityException from setMandatoryBackupTransport if
in a parent instance.

BUG: 72332943
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled

Change-Id: Iff2367256ce372641fd5569ad27b32f0894597ce
2018-01-26 14:27:30 +00:00
Jan Althaus
b7f7d36977 Small fixes for TextClassifierImpl
- Incorrect nullable annotation for Options
- Bad model output validation (start==end would pass, causing crashes in
    TextSelection constructor.
- Fix for potential null pointer exceptions in intent label generation.
- Fixed missing label for adding to contacts

Test: Manually verified add contact intent
Change-Id: I4ce0fdd1b1826caa11050a0dc808c9f8b28f90c2
2018-01-26 13:52:47 +01:00