Commit Graph

20756 Commits

Author SHA1 Message Date
Xiangyu/Malcolm Chen
8b36248dd3 Merge "Add APIs in SubscriptionManager for opportunistic subscriptions" 2018-08-14 22:09:45 +00:00
Jeff Sharkey
eb0fb4efba Merge "Start defining strongly-typed storage permissions." 2018-08-14 21:38:10 +00:00
Aurimas Liutikas
735dd9adaf Merge "Add @TestApi annotation to a few @hide APIs that were used in CTS." 2018-08-14 20:52:57 +00:00
Julia Reynolds
901bf28b5f The quietening part 2: rules
Apply some rules about what notifications are automatically
silenced.

Test: make ExtServicesUnitTests &&
adb install -r $OUT/testcases/ExtServicesUnitTests/ExtServicesUnitTests.apk &&
adb shell am instrument -w android.ext.services.tests.unit/android.support.test.runner.AndroidJUnitRunner
Bug: 111475013

Change-Id: Idf0434c0688b3249a9fc2d5aa655665e71e53249
2018-08-14 20:45:25 +00:00
TreeHugger Robot
b08079307c Merge "Making api isPackageSuspended public" 2018-08-14 18:41:29 +00:00
Steven Moreland
bc600d3282 Merge "Implementing support for HIDL native handles in Java" am: 1e1d8d2485 am: 6580802918
am: 4a6566440f

Change-Id: I649a10172d93beae9063ec2170e60aa4967ba0be
2018-08-14 10:16:06 -07:00
Jeff Sharkey
4aacd8b668 Start defining strongly-typed storage permissions.
We now have separate permissions that correspond to the various
MediaStore tables:

-- READ/WRITE_MEDIA_AUDIO
-- READ/WRITE_MEDIA_VIDEO
-- READ/WRITE_MEDIA_IMAGES

From a product point-of-view, Images and Videos will being treated as
a single permission group of "Visual" media in Q.  We're also defining
two other special permissions:

-- ACCESS_MEDIA_LOCATION: indicating that the app can see any
geographic location related metadata associated with media, such
as being stored in the EXIF data.  We're willing to grant this under
the unbrella of the larger "Visual" runtime permission group, but we
still want apps to request it for full disclosure of their intent.

-- WRITE_OBB: can be held by app stores that need to deliver OBB
files into app-specific sandboxes to keep legacy apps working.

Test: manual
Bug: 111801780, 110228267, 111789719, 111892833
Change-Id: If28247efdd7ac185ad3c6cbceda2e6346c26d032
2018-08-14 09:11:18 -06:00
TreeHugger Robot
b4fff5c90c Merge "New Autofill API: FillRequest.FLAG_COMPATIBILITY_MODE_REQUEST." 2018-08-13 23:50:49 +00:00
Aurimas Liutikas
80e4e18b8c Add @TestApi annotation to a few @hide APIs that were used in CTS.
CtsViewTestCases tests were using @hide APIs. This change makes some
of these APIs @TestApi, so CtsViewTestCases can just link againts test_current.

Test: make -j
Bug: 37778825
Change-Id: I685ab5f0d1d5fcb5557ce4d93fe4f55cc695ed3d
2018-08-13 16:13:37 -07:00
Malcolm Chen
e6bb077804 Add APIs in SubscriptionManager for opportunistic subscriptions
Bug: 92796390
Test: unittest
Change-Id: Id6d9454872e4d12a395cc568f7e2361c5b8c9a33
2018-08-13 14:55:56 -07:00
Suprabh Shukla
a89d7f87e1 Making api isPackageSuspended public
This allows apps to query suspended state of other apps.

Test: Builds, boots
existing tests:
atest GtsSuspendAppsTestCases

Bug: 112486945
Change-Id: I2c46f1d573df592ece06ef1dd5386338e1d21f00
2018-08-13 14:39:53 -07:00
Nirav Atre
9850dd9751 Implementing support for HIDL native handles in Java
This change implements the equivalent of the C++ native_handle_t type in
Java. Similar to the C++ type, the NativeHandle class wraps an arraylist
of FileDescriptor objects, along with a raw data stream (integer array).

Bug: 35098567
Test: Ran m, hidl_test (C++ and Java). Functionality tests are included
in a separate CL.

Change-Id: Ic53f9a49ae17ce5708577a586230126ab0e222c7
2018-08-13 14:31:17 -07:00
Julia Reynolds
196a2956b2 Merge "The quietening round 2 part 1" 2018-08-13 18:43:57 +00:00
Andy Chou
30ea9ba49e Merge "Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist" 2018-08-13 02:11:24 +00:00
Julia Reynolds
efcdff4528 The quietening round 2 part 1
Allow the notification assistant to block or silence
incoming notifications, or demote notifications after they
are posted

Also temporarily silence everything by default

Plus: bonus refactoring of the cancel notification runnable so I could
write just one of those tests :)

Bug: 111475013
Test: manual, runtest systemui-notification
Change-Id: Ifa04a21919f60d06080cd63e7d7747180b641308
2018-08-10 15:47:54 -04:00
Nathan Harold
a23c70a402 Update current.txt to fix inconsistencies
A couple minor signature changes seem to have
been missed, causing cruft to appear in API
changes by others. This is a little cleanup
to ensure that API updates are clean in
current.txt

Bug: 112441667
Test: compilation
Change-Id: I1d24ec53d180eb6451fef6d76cd22f1956bd7f7d
2018-08-09 17:39:53 -07:00
Phil Weaver
95743a4c20 Merge "Unhide View#getAccessibilityDelegate" 2018-08-09 23:14:56 +00:00
Hall Liu
245305c263 Merge "IMS: Adding support for TIR/TIP permanent provisioning" am: 1a622a4215 am: 24fd6dd4d6 am: 430b670546
am: 6fd2776ec7

Change-Id: I4b6626fb369ba38e32675fbb4128622452d62bf4
2018-08-09 16:07:42 -07:00
Hall Liu
1a622a4215 Merge "IMS: Adding support for TIR/TIP permanent provisioning" 2018-08-09 20:24:18 +00:00
andychou
629196f41a Add PreciseDisconnectCause for SIP status code 481 Transaction Does Not Exist
Add ImsReasonInfo.CODE_SIP_TRANSACTION_DOES_NOT_EXIST and
PreciseDisconnectCause.SIP_TRANSACTION_DOES_NOT_EXIST
It will map by PRECISE_CAUSE_MAP in ImsPhoneCallTracker.java

Bug: 78204171
Test: local build pass
Change-Id: Iaa9673e4fa9568078161231df1b06735b862ca09
2018-08-09 14:49:42 +08:00
Ashit Sood
51832a756a IMS: Adding support for TIR/TIP permanent provisioning
- Adding ProvisionStatus to ImsSsInfo

Test: Manual
Bug: 79133104
Change-Id: I26bdfc573a64aaba7d853c1f9cd592fa95e294c0
2018-08-08 21:27:38 -07:00
Ralph Nathan
3de75f42da Merge "Mark BluetoothClass#getClassOfDevice as TestApi" am: d5eff002eb am: 045247ec3a am: b9edd4fbc4
am: 07fe5664c5

Change-Id: I79e8943ff3ec4791b40eebdf991e71a0935e377b
2018-08-08 21:20:37 -07:00
Treehugger Robot
d5eff002eb Merge "Mark BluetoothClass#getClassOfDevice as TestApi" 2018-08-09 00:58:44 +00:00
Felipe Leme
1ff73729b8 Merge "Added new API to support multi-activity autofill workflows." 2018-08-08 19:03:49 +00:00
Felipe Leme
8d7f7f4f28 Added new API to support multi-activity autofill workflows.
For example, when an app uses one activity to enter username, another for
password.

Bug: 112051762

Test: atest MultiScreenLoginTest # new API
Test: atest CtsAutoFillServiceTestCases # to make sure it doesn't break anything
Test: m -j update-api

Change-Id: Ia95888901ab72f75938efb87103cd76f5ec8ce09
2018-08-07 11:36:20 -07:00
Adam Vartanian
34c44387e0 Merge "Add getter for X509 certificate" am: 38c9e614af am: 8547723200 am: b84bf6bc3d
am: d20922c8fa

Change-Id: I8ee33d3dcad120b3e86b4ecc40b005d10d205da8
2018-08-07 11:28:50 -07:00
Xin Li
e80b455065 Merge "Merge Android Pie into master" 2018-08-07 16:51:24 +00:00
Adam Vartanian
8547723200 Merge "Add getter for X509 certificate"
am: 38c9e614af

Change-Id: I8fa19741bded56170cca7e5bc74959eeaaa67455
2018-08-07 09:48:33 -07:00
Ralph Nathan
29335fdc9b Mark BluetoothClass#getClassOfDevice as TestApi
This method is being used the Android Things instrumentation test apk.

Bug: 111654175
Test: tests pass
Change-Id: Id3fcd2d89789868e50048542fd1dfe25d9986103
2018-08-06 15:21:30 -07:00
Makoto Onuki
c874f0ecf8 Merge "No longer keep track of contacts affinity (2/4)" 2018-08-06 16:07:07 +00:00
ykhung
61f5c2b81a Add @SystemApi annotation for Predictive Settings ringer gesture.
Fixes: 111573823
Test: manual test.

Change-Id: I469296c6283bb5e6fe9b8c0f6a1203e651cc33ee
2018-08-06 02:44:44 +00:00
Chad Brubaker
08dd510f3d Merge "Deprecate targetSandboxVersion=2" 2018-08-03 20:04:01 +00:00
Phil Weaver
91ecb31e8f Unhide View#getAccessibilityDelegate
Bug: 112153713
Test: Adding new CTS test
Change-Id: Ie06e266c2c66c3a3ae1a79322392bf04318665a7
2018-08-03 11:25:33 -07:00
Seigo Nonaka
ef855275fc Merge "Introduce FontFamily and its builder" 2018-08-02 23:41:44 +00:00
Makoto Onuki
a8f9c8af7e Merge "Rework slow-query log" 2018-08-02 23:15:20 +00:00
Makoto Onuki
aa2dd62c06 No longer keep track of contacts affinity (2/4)
Test: atest android.provider.cts.contacts
Test: atest ContactsProviderTests ContactsProviderTests2
Change-Id: I10e66441a9766947c7c14ae25022deadac5a9c7c
Bug: 111210683
2018-08-02 23:11:39 +00:00
Chad Brubaker
11ecd58309 Deprecate targetSandboxVersion=2
Most of the targetSandboxVersion=2 protections have moved to target O
MR1 or P, or were reverted, so move the remaining checks to isInstantApp
and remove the requirement for Instant Apps to target
targetSandboxVersion=2

Change-Id: I448a7565e26d4eafece1bdc657192117d790ff3a
Fixes: 111314398
Test: atest cts/hostsidetests/appsecurity/src/android/appsecurity/cts/EphemeralTest.java
2018-08-02 15:55:34 -07:00
Makoto Onuki
a761d2b354 Rework slow-query log
- Allow per-uid slow query log with "db.log.slow_query_threshold.UID"
- Add db.log.bindargs to enable bind args log in slow query log
 (debuggable build only)

Bug: 111210683
Test: setprop db.log.slow_query_threshold 0 -> slow query log enabled for all processes
Test: setprop db.log.slow_query_threshold.ACORE-UID 0 -> slow query log enabled for acore
Test: setprop db.log.bindargs 1  + setprop db.log.slow_query_threshold.ACORE-UID 0 + kill acore ->
  Bind args also logged

Change-Id: I3e85479e0c946308837b827f856016bc4fbe1ea3
2018-08-02 20:33:19 +00:00
Felipe Leme
eacd74de50 New Autofill API: FillRequest.FLAG_COMPATIBILITY_MODE_REQUEST.
Test: atest VirtualContainerActivityTest VirtualContainerActivityCompatModeTest
Test: m -j doc-comment-check-docs # and checked HTML

Fixes: 112111649

Change-Id: I2390fd78e330c10b08394c50f14f88211e5f2d80
2018-08-02 11:22:10 -07:00
Seigo Nonaka
88930f1df4 Introduce FontFamily and its builder
This CL is a ground work of the new Typeface construction API and
nobody uses this class except for CTS now.
I'll add new builder in Typeface to be able to create Typeface
from this FontFamily.

Bug: 72665240
Test: atest FontFamilyTest
Test: CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases FrameworksCoreTests:android.text
    CtsWidgetTestCases:TextViewPrecomputedTextTest

Change-Id: I15d412c367037554d911fc9e20c0cfb44aefb89a
2018-08-02 11:04:44 -07:00
TreeHugger Robot
c4f2ec7b3a Merge "Allow NotificationAssistantService to suggest smart replies" 2018-08-02 13:03:48 +00:00
Tony Mak
c9acf67886 Allow NotificationAssistantService to suggest smart replies
If the apps has provided their own choices, they will be used, as opposed
to the "smart replies" from NAS.
Otherwise, smart replies will be applied to the notifications
with a freeform RemoteInput but without choices.

The smart reply model is not ready yet, so canned response is hardcoded
and it is disabled by default. To test it out, run
adb shell setprop persist.sys.smart_replies_experiment true
Also, to get rid of the target >= P SDK requirement, you may want to run:
adb shell settings put global smart_replies_in_notifications_flags enabled=true,max_squeeze_remeasure_attempts=3,requires_targeting_p=false

Test: atest SystemUITests
Test: atest frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/NotificationListenerServiceTest.java
Test:
1. adb shell setprop persist.sys.smart_replies_experiment true
2. adb shell settings put global smart_replies_in_notifications_flags enabled=true,max_squeeze_remeasure_attempts=3,requires_targeting_p=false
3. Send a message to myself, observe the hardcoded smart replies.

Bug: 111674540

Change-Id: Ia61a77faef7c4dcba0501abfec80e3e8cc7274e4
2018-08-02 11:39:35 +01:00
TreeHugger Robot
0c499ab71f Merge "Fixed FieldClassificationStrategy that gets data from the package info." 2018-08-01 20:28:06 +00:00
TreeHugger Robot
99334bf938 Merge "Encourage creating Binder tokens with a descriptor." 2018-07-30 15:31:28 +00:00
Martijn Coenen
d2c86ab546 Encourage creating Binder tokens with a descriptor.
Binder tokens (Binder objects without an attached interface) are used
a lot with Android. These tokens don't have an interface descriptor,
which means that proxies (references) to these tokens are impossible
to identify when looking at a heap dump.

To make that easier, introduce a new constructor for Binder that allows
the caller to specify a descriptor.

Bug: 109888955
Test: builds, boots
Change-Id: I18fd00483abc29edf87f84945323a10fe4f6cd42
2018-07-30 12:15:58 +00:00
Lucas Dupin
8f09a5057e Expose Ambient Wallpaper API
In P we introduced a private concept of AOD wallpapers, in Q
we're making it a public surface.

Bug: 111395593
Test: make
Change-Id: I4c406386f0ee15dc8734a24b040482b6cb807126
2018-07-30 10:42:06 +08:00
Seigo Nonaka
a1b12c82a1 Merge "Introduce Font and its builder class" 2018-07-29 03:16:22 +00:00
Phil Weaver
b5df055d34 Merge "Enhance a11y soft keyboard controller" 2018-07-27 23:43:32 +00:00
Jeff Sharkey
3ea5588f7c Merge "Support for appending "standalone" WHERE chunks." 2018-07-27 23:21:53 +00:00
TreeHugger Robot
afeca1dedf Merge "Add a frame commit callback test API" 2018-07-27 22:42:31 +00:00