Commit Graph

109031 Commits

Author SHA1 Message Date
Alex Johnston
e9a5ccd42f Merge "Replace setAutoTimeRequired and getAutoTimeRequired with setAutoTime and getAutoTime" 2019-12-04 16:59:19 +00:00
Fabian Kozynski
fc94a3523c Merge "Remove all Privacy chip classes." 2019-12-04 16:34:58 +00:00
TreeHugger Robot
63330e6859 Merge "Fix SurfaceControl#captureLayers docs" 2019-12-04 16:25:50 +00:00
Automerger Merge Worker
9c965a575a Merge "Add SystemApi to setActiveDevice in BluetoothAdapter" am: 52df59acb3 am: 9c8e9bcc68
Change-Id: I8bd8be4848dbab16882dbf368a8faa886635cd89
2019-12-04 15:56:19 +00:00
Automerger Merge Worker
026bd122de Merge "Add a manual path for setting time zone" am: 7fcab2dba8 am: 57aaf1d427
Change-Id: I8a7113adfe3d420be6e3a99fb504859fc2f387ed
2019-12-04 15:54:54 +00:00
Automerger Merge Worker
3a9ace7b43 Merge "Camera: Avoid removing valid repeating requests" am: 0e7782c87b am: 468c1263cf
Change-Id: I5fec062950b09211988c3b784c1608dcfbaae191
2019-12-04 15:54:17 +00:00
Rahul Sabnis
9c8e9bcc68 Merge "Add SystemApi to setActiveDevice in BluetoothAdapter" am: 52df59acb3
am: 3d59aefb50

Change-Id: Ib5db2cced863edb9e60c81d80dea6102273e69bc
2019-12-04 07:44:01 -08:00
Neil Fuller
57aaf1d427 Merge "Add a manual path for setting time zone" am: 7fcab2dba8
am: 076cd7aa3a

Change-Id: I03abce9eca7c3fa031a4a0b103cb0063ea4bb85b
2019-12-04 07:42:57 -08:00
Emilian Peev
468c1263cf Merge "Camera: Avoid removing valid repeating requests" am: 0e7782c87b
am: a491caf3fb

Change-Id: Ia6e5cfabdea60d3dffb018f15b4fa1a4224a153c
2019-12-04 07:42:25 -08:00
Alex Johnston
8c50338cfd Replace setAutoTimeRequired and getAutoTimeRequired with setAutoTime and getAutoTime
* Deprecate setAutoTimeRequired and getAutoTimeRequired.
* Added new API methods setAutoTime and getAutoTime.
* DPCs are recommended to combine these new APIs together with the DISALLOW_CONFIG_DATE_TIME
  restriction to prevent the user from changing auto time settings.
* The new methods can also be called by the WP PO (COPE mode).

Bug: 138709470
Test: Manual testing with testdpc and the set auto time toggle
      atest com.android.server.devicepolicy.DevicePolicyManagerTest
      atest com.android.cts.devicepolicy.MixedProfileOwnerTest#testSetAutoTime

Change-Id: I6f93b2a28e3ef0e1e97c9c414ce65d4e753c1bf3
2019-12-04 14:02:58 +00:00
Bernardo Rufino
ee7d195f03 Merge "Add MANAGE_APP_OVERLAY_PERMISSION intent action" 2019-12-04 10:42:34 +00:00
Paul Chang
5c179c5627 Merge "Add requestBugreport system API in BugreportManager." 2019-12-04 08:46:22 +00:00
Ryan Lin
3c71e504dc Merge "Added ACTION_PRESS_AND_HOLD" 2019-12-04 06:12:56 +00:00
Paul Hu
d1fa427d41 Merge "Replace the permission of internal connectivity checks" 2019-12-04 05:52:01 +00:00
paulhu
a6af6b6c2a Replace the permission of internal connectivity checks
A number of connectivity checks that protect system-only methods
check for CONNECTIVITY_INTERNAL, but CONNECTIVITY_INTERNAL is a
signature|privileged permission. We should audit the permission
checks, and convert checks that protect code that should not be
called outside the system to a signature permission. So replace
all CONNECTIVITY_INTERNAL to other proper permissions.

Bug: 32963470
Test: atest FrameworksNetTests NetworkPolicyManagerServiceTest
Change-Id: I8f2dd1cd0609056494eaf612d39820e273ae093f
2019-12-04 11:45:51 +08:00
ryanlwlin
7b122e8f1c Added ACTION_PRESS_AND_HOLD
This action is used to do support distinct behaviour depends on how long
it's pressed and hold. The view declares this action should not expose
ACTION_LONG_CLICK.

Bug: 139506603
Test: The API Builds, there is no executable code here.
Change-Id: Ic3cf37677dd8bee2faf22f2f57feef4c9bb7cc22
2019-12-04 10:30:58 +08:00
TreeHugger Robot
b69d57c685 Merge "Add JNI call for writing StatsEvent to statsd." 2019-12-04 01:43:06 +00:00
Jeffrey Huang
3c75f06378 Merge "Add UserManager#getUserHandles() as SystemApi" 2019-12-03 23:19:42 +00:00
TreeHugger Robot
315e256a9b Merge "Add comments to bucketing reasons." 2019-12-03 23:14:43 +00:00
TreeHugger Robot
7e19fcd447 Merge "Adding a non-blocking version of transfer." 2019-12-03 22:59:28 +00:00
Steven Thomas
82eed535ab Merge changes I4851c742,If399edd6
* changes:
  2) DM Generalization of Refresh Rates: Rename listener
  1a) DM: create Class to pass around Specs
2019-12-03 22:37:03 +00:00
Rahul Sabnis
3d59aefb50 Merge "Add SystemApi to setActiveDevice in BluetoothAdapter"
am: 52df59acb3

Change-Id: Ia8143d3581a67138a8e22d1b40aff37c288a799b
2019-12-03 13:55:18 -08:00
Treehugger Robot
52df59acb3 Merge "Add SystemApi to setActiveDevice in BluetoothAdapter" 2019-12-03 21:51:44 +00:00
TreeHugger Robot
b11f93129c Merge "Persist PiP size to be restored on re-entry" 2019-12-03 21:44:59 +00:00
Kweku Adams
d18f07301b Add comments to bucketing reasons.
Some of the names weren't fully self-explanatory so adding comments
helps future readers understand what each reason actually represents.

Bug: 145551233
Test: N/A
Change-Id: Ie517590968733e26e5e1b806f44379442a187e9c
2019-12-03 13:39:40 -08:00
Mady Mellor
c66597d520 Merge "Allow Shortcuts to be started on ActivityView" 2019-12-03 21:39:15 +00:00
Alex Buynytskyy
ea4fe39ad3 Adding a non-blocking version of transfer.
Along with blocking utility method.

Test: atest PackageManagerShellCommandTest
Bug: b/136132412

Change-Id: I4ff8504c54c989e4d6a18d53d8b015d9481b4781
2019-12-03 13:20:23 -08:00
Neil Fuller
076cd7aa3a Merge "Add a manual path for setting time zone"
am: 7fcab2dba8

Change-Id: I4a77a647a01fb5b274a5bf819b1e22d4ec7d8219
2019-12-03 12:28:24 -08:00
TreeHugger Robot
2d4862d4c9 Merge "Expose setFixedToUserRotation via IWindowManager." 2019-12-03 20:28:03 +00:00
Neil Fuller
7fcab2dba8 Merge "Add a manual path for setting time zone" 2019-12-03 20:17:09 +00:00
Emilian Peev
a491caf3fb Merge "Camera: Avoid removing valid repeating requests"
am: 0e7782c87b

Change-Id: Iee1a2277935c0b8a5f04ef9cd85ce7cfbd3415c9
2019-12-03 11:46:08 -08:00
Treehugger Robot
0e7782c87b Merge "Camera: Avoid removing valid repeating requests" 2019-12-03 19:31:49 +00:00
Jeffrey Huang
91027f8588 Add UserManager#getUserHandles() as SystemApi
Bug: 144953136
Test: atest UserManagerTest
Change-Id: I32965b9dc090c5686adb7e499fff022c7193c504
2019-12-03 11:30:55 -08:00
Daniel Colascione
fcfc34f4df Merge "Add property-invalidated cache" 2019-12-03 19:25:47 +00:00
Jack Yu
fe903fb842 Merge "Code clean up" 2019-12-03 19:10:34 +00:00
Peter Wang
a69b9fa4b0 Merge "[Telephony Mainline] Expose hidden APIs and consts" 2019-12-03 18:49:11 +00:00
Vishnu Nair
a8bff9707d Fix SurfaceControl#captureLayers docs
Fixes: 144514274
Test: docs
Change-Id: I31c80db594982174910974a6f385dae5f0e224ce
2019-12-03 18:23:14 +00:00
Garfield Tan
a3f19030ed Expose setFixedToUserRotation via IWindowManager.
With the parent CL that allows the topmost fullscreen activity to set
the display rotation when freeform windows are visible, OEMs may need
this method to easily regulate the display rotation behavior on external
displays, or primary displays when a keyboard is attached. Therefore
let's expose it to for SysUI to use it.

Also change its name for consistency, especially to differentiate this
and mIgnoreRotateForApps in DisplayContent.

Bug: 144185986
Test: Command line can still set it.
Change-Id: Id1233869c30b66bde3550267dbb21a84076c223d
2019-12-03 10:09:52 -08:00
Dario Freni
28710b1290 Support privileged apps installed in APEX. am: 787471af48
am: 3fad35fa15

Change-Id: Idc501a4c77d6d3f13e7b416d98815d9b944c9202
2019-12-03 08:44:41 -08:00
Neil Fuller
f807b4c364 Merge "Add a new time zone detection service" am: 7d8a624085
am: 256f4df4b6

Change-Id: Ie1b28c5cea14a23beac2e70eb7878f7f09461d6c
2019-12-03 08:42:57 -08:00
Neil Fuller
2c6d510e45 Add a manual path for setting time zone
Add a mechanism for suggesting the "manual" time zone setting to the
TimeZoneDetectorStrategy, e.g. for the settings app to use. This
involves various changes / renames to TimeZoneDetectorStrategy to
introduce a distinction between 3 things:
1) General detection code, applicable for anything that changes device
time zone.
2) Phone detection code, applicable for setting the device time zone
from phone signals.
3) Automatic detection code, applicable for setting the device time zone
automatically (of which telephony signals is currently the only example,
but could be joined by new things in future).

Adds tests for the new ManualTimeZoneSuggestion and makes improvements
to the existing tests for PhoneTimeZoneSuggestionTest.

Test: atest android.app.timezonedetector
Test: atest com.android.server.timezonedetector
Bug: 140712361
Change-Id: I9c3a18e47b157cccabda74855e5c91b45fa93b92
2019-12-03 16:38:03 +00:00
Dario Freni
3fad35fa15 Support privileged apps installed in APEX.
am: 787471af48

Change-Id: I8503952e179d79cf574430040af31611fe90d7ad
2019-12-03 08:33:54 -08:00
Neil Fuller
256f4df4b6 Merge "Add a new time zone detection service"
am: 7d8a624085

Change-Id: Ic30cd636b4863a507dda0bdb05e982ee411d936f
2019-12-03 08:30:50 -08:00
TreeHugger Robot
0b97592811 Merge "[webview] Annotate API parameters as @Nullable or @NonNull" 2019-12-03 12:48:53 +00:00
Alan Stokes
a5ca0cc2c1 Merge "Delete PACKAGE_VERIFIER_ENABLE setting." 2019-12-03 12:22:19 +00:00
Dario Freni
c7a4eec435 Merge changes from topic "aosp-apk-in-apex"
* changes:
  DO NOT MERGE: Fixes NPE when preparing app data during init
  Support privileged apps installed in APEX.
  Support non-privileged APKs in APEX.
  Refactors initial directory scan to be dryer
2019-12-03 11:45:55 +00:00
Laís Minchillo
c1360b215e [webview] Annotate API parameters as @Nullable or @NonNull
Annotate WebView API parameters as either @Nullable or @NonNull. When a
method returns a nullable type, add this to the javadoc as well.

Deprecated methods were ignored.

Bug: 119254822
Test: none (only changes annotations, no change in logic)
Change-Id: I701108240fd5905e1085a9e8bcce44567e517892
2019-12-03 11:14:45 +00:00
Neil Fuller
7d8a624085 Merge "Add a new time zone detection service" 2019-12-03 08:40:07 +00:00
Jack Yu
21effc8643 Code clean up
Remove database version 1~11 support since the format hasn't changed
in the past 7 years.

Bug: 135956699
Test: Manual
Change-Id: I367124471f16073bb47a31c094d161d36969acc1
2019-12-02 23:38:26 -08:00
Muhammad Qureshi
f11130cfa0 Add JNI call for writing StatsEvent to statsd.
Bug: 143978873
Test: m -j
Test: flashes successfully
Test: DocumentsUI(a Mainline module) is able to successfully log to statsd
Change-Id: I9cdc6151d8feb29a712532e50f143af9d52c8d94
2019-12-02 23:25:47 -08:00