Commit Graph

5528 Commits

Author SHA1 Message Date
Jeff Sharkey
6697c2fe1c Merge changes from topic "matchz"
* changes:
  Add QUERY_ARG_RELATED_URI to aid media placement.
  Introduce QUERY_ARG_MATCH_* values for filtering.
2019-12-05 22:07:57 +00:00
SongFerng Wang
1e7dc81c59 Merge "ServiceState merges voice and data into a single value" 2019-12-05 06:36:18 +00:00
Zoey Chen
3fcd72ed0a Merge "[TelephonyMainline] Cannot remove AUTHORITY_URI from the public API." 2019-12-05 03:49:33 +00:00
SongFerngWang
2b1ea8dcaf ServiceState merges voice and data into a single value
The voice and data is the same for operator name at ServiceState.
So ServiceState merges voice and data into a single value.
- merge the voice and data OperatorAlphaLong,OperatorAlphaShort, and
OperatorNumeric.

Bug: 144663018
Test: Build pass.
      atest NetworkControllerDataTest (PASS)
      atest ServiceStateTest (PASS)
      atest TelephonyMetricsTest (PASS)
      atest ServiceStateProviderTest (PASS)

Change-Id: I67e4a822c792bf9a9e174146ef8d65d9927d7612
2019-12-04 21:06:20 +08:00
Bernardo Rufino
ee7d195f03 Merge "Add MANAGE_APP_OVERLAY_PERMISSION intent action" 2019-12-04 10:42:34 +00:00
zoey chen
9ffc6559a7 [TelephonyMainline] Cannot remove AUTHORITY_URI from the public API.
Bug: 143860012
Test: make
Change-Id: I952a5f20a1c34b3f1cabeb8c2bde6e2b85f4993d
2019-12-04 11:39:51 +08:00
Jack Yu
fe903fb842 Merge "Code clean up" 2019-12-03 19:10:34 +00:00
Alan Stokes
a5ca0cc2c1 Merge "Delete PACKAGE_VERIFIER_ENABLE setting." 2019-12-03 12:22:19 +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
Bernardo Rufino
8fefb94621 Add MANAGE_APP_OVERLAY_PERMISSION intent action
In order to support system use-cases, such as when the user wants do
revoke SYSTEM_ALERT_WINDOW (SAW) permission via notification, we are
introducing a new intent, MANAGE_APP_OVERLAY_PERMISSION (notice the
"APP_"), that directs the user to the app-specific screen to toggle SAW
permission.

The intent can only be started if the caller has INTERNAL_SYSTEM_WINDOW
permission, which sysui and the system have. This is verified in CTS.

In this change we also update usage in NotificationGutsManager and
AlertWindowNotification.

Test: Builds
Test: atest TestManageOverlayPermissionIntents
      (cts in one of the topic CLs)
Test: Let an app draw on top of other apps, via its notification go to
      settings, verify that the screen for controlling such capability
      for the app is dispayed.
Bug: 145198756
Bug: 135920175

Change-Id: Iba29e1eaee729268a4dec9561946f6ed74b36619
2019-12-02 15:36:40 +00:00
TreeHugger Robot
0e4a72c35f Merge "Move Bluetooth specfic APIs called in Settings to BT DatabaseManager" 2019-11-28 03:46:40 +00:00
Zongheng Wang
eadcbd8f8a Move Bluetooth specfic APIs called in Settings to BT DatabaseManager
To resolve merge conflict for aosp/1175775

Bug: 142004000
Test: Manual
Change-Id: I89b0ab44920b1deefe7523e5f19ed1c799c4c658
2019-11-27 14:21:11 -08:00
Meng Wang
472a065d93 Merge "Move android.provider.Telephony to frameworks/base/core" am: 4d0df870cd am: 9b84a44f04
am: fba2c8041a

Change-Id: I9aab1a8bfe10a2fd661e0bd19452b4a66f6e1a2f
2019-11-27 13:44:06 -08:00
Meng Wang
fba2c8041a Merge "Move android.provider.Telephony to frameworks/base/core" am: 4d0df870cd
am: 9b84a44f04

Change-Id: Ib87b7648cf7cc19b267770a6f1fd910f751c7ab8
2019-11-27 13:38:32 -08:00
Meng Wang
9b84a44f04 Merge "Move android.provider.Telephony to frameworks/base/core"
am: 4d0df870cd

Change-Id: I1015777c7fa0e5b67ea3d9da4c14036842b527aa
2019-11-27 13:31:23 -08:00
Meng Wang
6b2264a1cb Move android.provider.Telephony to frameworks/base/core
Bug: 145232482
Test: make
Change-Id: I49a9e8b1b5e3c99f0ed84638fc9f79202b0189b3
2019-11-27 11:06:43 -08:00
TreeHugger Robot
06d5a4946b Merge "Add Settings flag to turn notif history on/off" 2019-11-27 09:44:02 +00:00
TreeHugger Robot
4da9fbe356 Merge "Secure FRP : Add a secure bit to know when the device is in secure FRP mode." 2019-11-26 17:56:45 +00:00
Simranjit Singh Kohli
2cebd529f3 Secure FRP : Add a secure bit to know when the device is in secure FRP mode.
Bug: 141262900
Test: atest SettingsProviderTest
Change-Id: Iabc1f699d6afd6a1524b37f992314b9b20463bc2
2019-11-26 06:34:12 -08:00
Julia Reynolds
e43fac3f26 Add Settings flag to turn notif history on/off
Test: atest
Bug: 137396965
Change-Id: I63af12171c792305a16c6d72e809bf8f15cd215c
2019-11-25 12:24:22 -05:00
Alan Stokes
0f2b7fd29a Merge "Delete PACKAGE_VERIFIER_USER_CONSENT from Settings." 2019-11-25 13:41:49 +00:00
Dan Sandler
486ad0d659 Action chips in share sheet. (DO NOT MERGE)
am: 0d3e358628

Change-Id: I0df785ea4279811fe4f556f67dde8e3c6cef98b0
2019-11-25 05:28:10 -08:00
Rhed Jao
a7ac868de8 Merge "Accessibility shortcut improvement (4/n)" 2019-11-25 03:53:24 +00:00
Dan Sandler
0d3e358628 Action chips in share sheet. (DO NOT MERGE)
Move the Copy button to a new row of chips below the
(now larger) preview. Optionally, if a proximity-sharing
service is installed, show that chip as well.

Bug: 143229724
Fixes: 144290152
Test: atest SystemUITests frameworks/base/core/tests/coretests
Change-Id: I0d6457df85bc937f72ca97da6b4b84b634a90daf
2019-11-24 23:39:49 +00:00
Jeff Sharkey
6d520a4903 Add QUERY_ARG_RELATED_URI to aid media placement.
We normally have strict rules about where media can be created to
help ensure that the user's content stays organized.  (For example,
"image/jpeg" can only be placed inside DCIM/ or Pictures/.)

However, when inserting an SD card from another device, it's pretty
common to find media outside of these well-defined top-level
directories.  Apps have been able to read and write pre-existing
content in these locations, but this change now provides a way for
apps to create new media "adjacent" to this pre-existing content,
subject to the following rules:

-- The top level MIME type must be in agreement.
-- The relative path on the device must be in agreement.

When a developer wants to perform an insert() which would normally
be blocked, they can provide a QUERY_ARG_RELATED_URI to allow that
operation to succeed, if it meets the rules above.

Bug: 131643582
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I7d678ee733023f5c5b55b5d18cdcde5a20116312
2019-11-23 16:11:18 -07:00
Jeff Sharkey
0fa31f6950 Introduce QUERY_ARG_MATCH_* values for filtering.
The existing strategy of methods like setIncludePending() doesn't
scale well for callers to use multiple matching strategies.  For
example, callers are interested in these matching strategies:

MATCH_EXCLUDE: Ensure that any matches are excluded.
MATCH_INCLUDE: Ensure that any matches are included.
MATCH_ONLY: Return only exact matches.

The reason why we have this menu of options is because the underlying
fields have different default behavior.  For example, "trashed" items
are naturally excluded by default, but "favorite" items are naturally
included by default.

Callers only interesting in listing "trashed" items or "favorite"
items shouldn't need to perform their own inefficient Cursor diffing
logic, so we give them these flexible arguments.

Adjust MediaProvider internals to apply these matcher values to
all update() and delete() calls, in addition to query().

Bug: 143432502
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I0d4bc063b8ea5ac2a602fab43a62c2de7724ba34
2019-11-23 10:54:10 -07:00
TreeHugger Robot
72672006c8 Merge "Make Settings.Global.HIDE_ERROR_DIALOGS a TestApi" 2019-11-22 22:09:36 +00:00
Matt Pape
e6bc101c5f Merge "Add DeviceConfig.setProperties method for atomic writing." 2019-11-22 17:19:28 +00:00
Alan Stokes
1a23ebdf22 Delete PACKAGE_VERIFIER_ENABLE setting.
It is no longer used anywhere in the framework. (It is sometimes used
by GPP, but that's fine; they don't use this constant.)

Bug: 135751498
Test: Still builds
Test: atest SettingsProviderTest
Change-Id: I52244fa096e70349165d435493cc758acc52ad68
2019-11-22 15:43:36 +00:00
Alan Stokes
31eb159690 Delete PACKAGE_VERIFIER_USER_CONSENT from Settings.
It isn't used anywhere in the framework, except by incidentd - that
usage is also removed.

Any such setting is private to the verifier and not the business of
the framework.

Test: atest SettingsProviderTest
Test: Still builds
Bug: 135751498
Change-Id: Ia6424d8ce811560e4ba72ada003dc08475d5123e
2019-11-22 14:57:55 +00:00
Matt Pape
4bd0a6a259 Add DeviceConfig.setProperties method for atomic writing.
This method accepts multiple flags and overrides the values of all flags
in the provided namespace atomically. If any listeners are registered
for that namespace it will also trigger a callback with all of the flags
that were changed (added, updated, or removed).

Test: atest FrameworksCoreTests:DeviceConfigTest
      atest FrameworksCoreTests:SettingsProviderTest
      atest SettingsProviderTest:DeviceConfigServiceTest
Bug: 136135417

Change-Id: I2e496a3807493750ba8891dd6390055c919b5f45
2019-11-21 14:51:17 -08:00
Adrian Roos
1c2e9a19f8 DeviceConfig: Split android:window_manager into android and window_manager
The keys are split according to whether they affect the system as a whole,
or simply the inner workings of the window manager.

Also encapsulates WindowManagerConstants properly and adds testing.

Bug: 139735771
Test: atest WindowManagerConstantsTest
Change-Id: I67c96a2bdd3140fe2ff9c6832d2d69f2e57115e2
2019-11-20 13:29:26 +01:00
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
Vishnu Nair
6ce1e002d2 Make Settings.Global.HIDE_ERROR_DIALOGS a TestApi
Required to test ANR

Fixes: 144724475
Test: run cts -m CtsWindowManagerDeviceTestCases -t android.server.wm.AnrTests
Change-Id: I02ef51790a630c9cead7e66eca58d107d77e95db
2019-11-19 17:25:21 -08: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