Commit Graph

5494 Commits

Author SHA1 Message Date
Meng Wang
6ed110171e Merge "Do not use hidden telephony API PhoneConstants.PRESENTATION_*" am: 9636d7e3af am: 9e294c69d3
am: 40a2f98c71

Change-Id: Ie2426fd71273e2b48924e8c096b07409cfaed20e
2019-11-19 22:20:19 -08:00
Meng Wang
40a2f98c71 Merge "Do not use hidden telephony API PhoneConstants.PRESENTATION_*" am: 9636d7e3af
am: 9e294c69d3

Change-Id: Iddbe0533660d30d86ee932b481020b85eb91e176
2019-11-19 22:13:30 -08:00
Meng Wang
9e294c69d3 Merge "Do not use hidden telephony API PhoneConstants.PRESENTATION_*"
am: 9636d7e3af

Change-Id: Id83ddc2f1b6d686e6249132f0e32b5a109e180cb
2019-11-19 22:07:44 -08:00
Treehugger Robot
9636d7e3af Merge "Do not use hidden telephony API PhoneConstants.PRESENTATION_*" 2019-11-20 04:26:47 +00:00
Zoey Chen
7d4cb3c5d3 Merge "[Telephony mainline] Add SystemApi and NonNull annotation" 2019-11-20 04:23:26 +00:00
Meng Wang
91e4cc8a7c Do not use hidden telephony API PhoneConstants.PRESENTATION_*
Replaced with TelecomManager.PRESENTATION_*

Bug: 140908357
Test: make
Change-Id: Ib7c2531d69b14307e17ed5dd62f3aa8d56153330
2019-11-18 17:03:02 -08:00
zoey chen
fa86d5a012 [Telephony mainline] Add SystemApi and NonNull annotation
Bug: 143860012
Test: make
Change-Id: I619d6ba04cb28830e3995feb02ffcb592ff65818
2019-11-18 15:56:21 +08:00
Goven Liu
b75323eb34 Merge "[Wi-Fi] Add intent action & extra keys & result codes for add networks." 2019-11-18 04:33:17 +00:00
Robert Horvath
993e82eec7 Merge "Add setting to go to sleep after long user inactivity" 2019-11-15 15:05:15 +00:00
Alan Stokes
096757a77f Merge "Remove instant apps access to verifier consent setting." 2019-11-14 09:35:41 +00:00
Jeff Sharkey
97d3ca1e8f Merge changes from topic "legacycodez"
* changes:
  Progress towards splitting MediaProvider UID.
  Progress towards splitting MediaProvider UID.
2019-11-13 20:53:45 +00:00
Artur Satayev
79aff5c601 Merge "Add @UnsupportedAppUsage to test apis that are known to be used by apps." am: a98026f7aa
am: 59318bab67

Change-Id: Ic691d764839ecf34daa8b53aa92497e013c9a2a7
2019-11-13 10:40:54 -08:00
Artur Satayev
59318bab67 Merge "Add @UnsupportedAppUsage to test apis that are known to be used by apps."
am: a98026f7aa

Change-Id: Ia39fbc2200aa7262e4a05b0710b7a382bb01b276
2019-11-13 10:33:06 -08:00
TreeHugger Robot
bc7671b9fb Merge "Add @UnsupportedAppUsage to test apis that are known to be used by apps." 2019-11-13 15:46:27 +00:00
Alan Stokes
698eb16409 Remove instant apps access to verifier consent setting.
This setting should be private to GPP, and there should be no reason
for any app to access it.  And GPP is migrating away from this
relatively public setting, so it can't be relied upon.

Test: Builds
Bug: 135751498
Bug: 37119785
Change-Id: I839c2d67ae54b4df184ea7ee1c7aebee72c6e794
2019-11-13 15:44:00 +00:00
Artur Satayev
5a525851a8 Add @UnsupportedAppUsage to test apis that are known to be used by apps.
go/testapi-enforcement

Bug: 133832325
Test: m
Change-Id: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
Merged-In: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
2019-11-13 15:05:56 +00:00
Julia Reynolds
6f08e137e5 Merge "Constants for NLS specific approval screens in Settings" 2019-11-13 14:02:39 +00:00
Artur Satayev
f0b7d0ba51 Add @UnsupportedAppUsage to test apis that are known to be used by apps.
go/testapi-enforcement

Bug: 133832325
Test: m
Change-Id: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
Merged-In: Ifc8db120640a1554dcbf1722e61e09c7ddc65dd6
2019-11-13 12:58:29 +00:00
Jeff Sharkey
ab0a97220a Progress towards splitting MediaProvider UID.
We're working towards making MediaProvider into a Mainline module,
which means it can no longer share the "android.media" UID built
into the OS.  The major reason for this is because they're signed
with separate keys, but a secondary reason is that we don't know what
database customizations an OEM has performed in their MediaProvider.

This initial pass introduces the APIs needed to support a "legacy"
MediaProvider that will be used to migrate data between the old and
new UID.  This legacy provider is implemented using the same code
as the modern provider, but hosted at the "media_legacy" authority.

Bug: 144247087
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: Ibc38a786799e138e9c3e31297c7066bab6843d89
2019-11-12 15:48:52 -07:00
Bernardo Rufino
cf4d35c664 Merge "Remove instructions for specifying package in ACTION_MANAGE_OVERLAY_PERMISSION" 2019-11-12 10:03:23 +00:00
Tyler Gunn
8468fd875d Merge "More telephony updates for mainline." am: 5be8504888
am: 0f0dfaca35

Change-Id: I77fdb0953ef799cbd44db16b797fef7386a71cd7
2019-11-11 19:50:28 -08:00
Tyler Gunn
0f0dfaca35 Merge "More telephony updates for mainline."
am: 5be8504888

Change-Id: Ifbe3370b075651738e26c613c914dfb8e5ab3338
2019-11-11 19:41:26 -08:00
Tyler Gunn
4857c1f9ef Merge "More telephony updates for mainline." 2019-11-11 19:22:46 +00:00
Tyler Gunn
00d737bd17 More telephony updates for mainline.
Add new TelecomManager#getDefaultDialerPackage which is multiuse aware;
this is used when showing the voicemail notification.
Remove some @hide methods from Conference; push these inline.
Move ConferenceParticipantConnection into frameworks/opt/net/ims since
it is just an IMS implementation detail.

Bug: 141576016
Test: Manual smoke test.
Test: Run unit tests.
Test: Run CTS tests.
Change-Id: I39b6955cb14cc1ca68b05c620c3d09a2cdfe30c9
2019-11-11 08:28:38 -08:00
Tyler Gunn
5567d7408c More telephony updates for mainline.
Add new TelecomManager#getDefaultDialerPackage which is multiuse aware;
this is used when showing the voicemail notification.
Remove some @hide methods from Conference; push these inline.
Move ConferenceParticipantConnection into frameworks/opt/net/ims since
it is just an IMS implementation detail.

Bug: 141576016
Test: Manual smoke test.
Test: Run unit tests.
Test: Run CTS tests.
Change-Id: I39b6955cb14cc1ca68b05c620c3d09a2cdfe30c9
Merged-In: I39b6955cb14cc1ca68b05c620c3d09a2cdfe30c9
2019-11-08 21:27:32 +00:00
Bernardo Rufino
e941d8c923 Remove instructions for specifying package in ACTION_MANAGE_OVERLAY_PERMISSION
Since we are removing such capability in the other topic CL. Check that
CL for rationale.

Test: Builds
Bug: 135920175
Change-Id: I9d1d5afb1d72270a81888bea3ec0bd6f2f4e9542
2019-11-08 17:43:38 +00:00
govenliu
4ab3e4e09d [Wi-Fi] Add intent action & extra keys & result codes for add networks.
For supporting the mechanism for apps to add saved networks to the device, need to:
1. Add one new intent action.
2. Define two extra keys for passing data to Settings APP and get result
back.
3. Define 3 result codes.

Bug: 136472483
Test: just add action, test case will be in Settings App side.
Change-Id: I7391a6b8d89bd4621aab833b2da2a981f7b8163b
2019-11-09 00:39:19 +08:00
Hall Liu
a49279775f Merge "Add new SystemApi methods for mainline" am: f363f3549e
am: 5925c3bb29

Change-Id: Id8457b55a6ba9bb837128110efd5ca1bfde2b825
2019-11-08 08:08:41 -08:00
Hall Liu
5925c3bb29 Merge "Add new SystemApi methods for mainline"
am: f363f3549e

Change-Id: I463ca5c1745b236e5771808e70d77edd744a3714
2019-11-08 07:57:39 -08:00
Robert Horvath
5560f38654 Add setting to go to sleep after long user inactivity
The European Commision prescribes an auto-standby feature for TV panels:
After some hours of inactivity, the device has to go from on-mode to
standby-mode or off-mode, or another condition not exceeding the
applicable requirements for standby-mode or for off-mode.

After a long time of no user activity the device should go to sleep,
even if wakelocks are held (eg. during video playback).

Test: 1. Set attentive timeout low, to 35s:
         `adb shell settings put secure attentive_timeout 35000`
      2. Play a YouTube video
      3. Observe warning dialog appearing after 5s
      4. Verify: Clicking a remote button or changing the setting higher hides
         the warning. Remote button press is consumed.
      5. Verify: After 35s of not pressing a button the device goes to sleep
      6. Verify: If "Stay awake" developer option is enabled, then
         warning is not displayed and device does not go to sleep after 35s
      7. Verify: No warning or sleep if setting is set to -1
Test: `atest frameworks/base/services/tests/servicestests/src/com/android/server/power/PowerManagerServiceTest.java`
Bug: 137633812
Change-Id: I551b6cffc336437fb1c5a00b4102f68ae0e003e9
2019-11-08 15:18:28 +01:00
Hall Liu
d2f962a6db Add new SystemApi methods for mainline
Add new SystemApi methods for Telecom to call in lieu of the old @hide
methods. Also moved CallerInfo and CallerInfoAsyncQuery to Telecom
because there are no more users in Telephony.

Bug: 141576016
Test: CTS
Change-Id: I458ba6bcfc03db72c0419b0cab2f0d0adfa971d4
Merged-In: I458ba6bcfc03db72c0419b0cab2f0d0adfa971d4
2019-11-07 17:22:28 -08:00
Hall Liu
e2f17aad5e Add new SystemApi methods for mainline
Add new SystemApi methods for Telecom to call in lieu of the old @hide
methods. Also moved CallerInfo and CallerInfoAsyncQuery to Telecom
because there are no more users in Telephony.

Bug: 141576016
Test: CTS
Change-Id: I458ba6bcfc03db72c0419b0cab2f0d0adfa971d4
2019-11-07 13:34:11 -08:00
Julia Reynolds
a124aab432 Constants for NLS specific approval screens in Settings
Test: atest
Bug: 141689199
Change-Id: Ia6ded1774f135dd288e584b3da7141355df848a3
2019-11-06 12:38:50 -05:00
Edgar Wang
003ee4342d Merge "Add Tap Gesture for Aware Settings" into qt-qpr1-dev
am: e39c7bd211

Change-Id: I9f640b4c496297084934cb8036e011e675077f0c
2019-11-04 20:13:27 -08:00
Hui Yu
a86a36b184 Merge "Add process capability as a new dimension." 2019-10-31 23:11:21 +00:00
TreeHugger Robot
6807fa4c81 Merge "Clean up code for experiment of JIT'ing priv apps" 2019-10-31 21:05:57 +00:00
TreeHugger Robot
abc015499a Merge "DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master" into stage-aosp-master 2019-10-31 18:38:40 +00:00
Edgar Wang
5af0fd3316 Add Tap Gesture for Aware Settings
- Add new settings provider key for tap gesture.

Bug: 138296598
Test: atest & manual

Change-Id: Icf0073ded0063ba5ed128bd3e3ea7d28a9336715
Merged-In: Ib76327b37a415512145a150a4b0e176a6cb114d7
2019-11-01 00:50:49 +08:00
Ivan Chiang
3bc64a128b Merge "Update java doc for correct rotation of thumbnail from Q" 2019-10-31 09:57:14 +00:00
Phil Weaver
22c2c46b88 Merge "a11y: don't crash the system when illegal component name encounted" am: f4d1789b81 am: 411b523373
am: 015fe4ff3e

Change-Id: Id23f04ae4bd5c3c622e64525a89303bb79ba24ec
2019-10-30 19:07:09 -07:00
Phil Weaver
015fe4ff3e Merge "a11y: don't crash the system when illegal component name encounted" am: f4d1789b81
am: 411b523373

Change-Id: Idb8ffd83b4d8b89ebba52ad6fe5e7037ac61b4b7
2019-10-30 18:59:00 -07:00
Phil Weaver
f4d1789b81 Merge "a11y: don't crash the system when illegal component name encounted" 2019-10-31 01:29:30 +00:00
Hui Yu
2696932100 Add process capability as a new dimension.
Add new attribute capability to ProcessRecord, it represents what this
process is allowed to do. Capability is a separate dimension for
process state (ProcState).

In OomAdjuster.java, capabilities can be passed from client to service.

Add PROCESS_CAPABILITY_FOREGROUND_LOCATION to represent the capability
that can access location while-in-use.

For permission such as foreground location access, AppOpsService
checks for FOREGROUND_LOCATION capability, also checks if the process
is in one of the foreground process states, if both conditions meet,
the locaton operation is allowed.

Remove PROCESS_STATE_FOREGROUND_SERVICE_LOCATION.

Bug: 136274596
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest
atest CtsAppTestCases:ActivityManagerApi29Test
atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/AppOpsServiceTest.java
Change-Id: Ie1c8e670fb0789208b753eb49b7e2fce6a2f211f
2019-10-30 18:23:24 -07:00
TreeHugger Robot
639701e8cb Merge "Fix for race condition when loading fonts from font provider" 2019-10-30 23:04:07 +00:00
Xin Li
6f48900f50 DO NOT MERGE - qt-qpr1-dev-plus-aosp-without-vendor@5915889 into stage-aosp-master
Bug: 142003500
Change-Id: If5056a73ede668b0048ca107b686413695e5b3b6
2019-10-30 14:33:01 -07:00
Jeff Sharkey
2cbafa9c8d Merge "Reconcile MediaStore with MediaMetadataRetriever." 2019-10-30 18:50:01 +00:00
Matt Pape
33f91f59fb Merge "Move namespace/prefix logic to Settings.Config." 2019-10-30 14:36:38 +00:00
TreeHugger Robot
94cc0ba959 Merge "Add Tap Gesture for Aware Settings" 2019-10-30 10:17:13 +00:00
Ivan Chiang
c5c74e61be Update java doc for correct rotation of thumbnail from Q
Before Q, the thumbnail has wrong rotation, the developers need
to rotate it to correct rotation manually. As of Q, we provide
the correct rotation of the thumbnail.

Test: m -j
Bug: 142601201
Change-Id: I9c472f47b2bd0c3191ff55d1eb8d21303437dedd
2019-10-30 15:10:32 +08:00
Edgar Wang
32af83b2cb Add Tap Gesture for Aware Settings
- Add new settings provider key for tap gesture.

Bug: 142702985
Test: atest & manual
Change-Id: Ib76327b37a415512145a150a4b0e176a6cb114d7
2019-10-30 13:12:32 +08:00