Commit Graph

20780 Commits

Author SHA1 Message Date
Sergey Vasilinets
0de0eca772 Deprecate Activity.onStateNotSaved
This callback is no longer accurate, because it is basically
onPreResume(), but onSaveInstance isn't related to Pause/Resume
at all. In addition, this callback was added for framework fragments
and they are deprecated

bug: 113134425
Test: no logic changes
Change-Id: I8f961846b52032d9760d5050a2d8ee5ec57c49cd
2018-08-23 19:38:30 -07:00
TreeHugger Robot
83b8a73508 Merge "[Magnifier-45] Add #show(float,float,float,float)" 2018-08-23 12:25:40 +00:00
Jack Yu
5e36e00e9f Merge "Added a new carrier config for data connection failed radio restart" am: 2947e54c3d am: 5afeed5084
am: d4ad9a38ff

Change-Id: I120bdfe99dc90dcdddf052a672fa05bbc0d1b212
2018-08-22 21:18:25 -07:00
TreeHugger Robot
4023679645 Merge "Follow up with one more API that slipped in." 2018-08-23 01:03:50 +00:00
TreeHugger Robot
d1ac6015a6 Merge "Revert the DISMISSAL_NOT_DISMISSED to previous value." 2018-08-23 00:34:21 +00:00
Jack Yu
2947e54c3d Merge "Added a new carrier config for data connection failed radio restart" 2018-08-22 23:42:36 +00:00
Aurimas Liutikas
edd94db896 Follow up with one more API that slipped in.
Bug: 113054005
Test: make update-api
Change-Id: Ifed056820a386382ff4b34e62bbbc959e810ad29
2018-08-22 15:49:32 -07:00
Jack Yu
69c8dbb9eb Merge "Added qualified networks services" am: 63de9eabec am: f02b6d6679
am: 507bdec1ab

Change-Id: If60c3165dab5316c17cfe7ba0e5e7d8dab782636
2018-08-22 15:44:55 -07:00
Michael Wright
3f4d546525 Revert the DISMISSAL_NOT_DISMISSED to previous value.
This is existing API and can't be changed.

Bug: 113071843
Test: make update-api
Change-Id: Ib6b1002f29ba35d7a2ca8c26cac61344dae9f43f
2018-08-22 23:41:02 +01:00
Jack Yu
3399f3644d Added a new carrier config for data connection failed radio restart
Added a new carrier config that can trigger modem restart when
receiving specific setup data fail cause code.

Test: Telephony sanity tests
Bug: 111774203
Change-Id: I39d648117f778a4548a3d50e624dbd841956c6cc
2018-08-22 14:16:47 -07:00
Jack Yu
63de9eabec Merge "Added qualified networks services" 2018-08-22 20:18:11 +00:00
Aurimas Liutikas
78567088a8 Run update-api to catch up missing api changes.
Bug: 113054005
Test: make update-api
Change-Id: I96897492f4c98d34132d74b55b953c66e3680971
2018-08-22 13:12:34 -07:00
Jack Yu
a3ab5750a4 Added qualified networks services
Added the qualified networks service, which is a base
class for vendor's qualified network service to extend.
The service is to update frameworks the available
networks for data setup for each APN type.

Test: Manual
Bug: 73659459
Change-Id: I7238aeac8e48be2a17245de77239b242703bcb7e
2018-08-21 17:57:57 -07:00
Felipe Leme
37f837222e New Autofill Save UI API to switch visibility of views.
Test: atest \
      OnClickActionTest VisibilitySetterActionTest CustomDescriptionUnitTest

Fixes: 112709898

Change-Id: I05d59ecbdd21d68e9056adeb361e5a9bdd3d2a43
2018-08-20 14:22:33 -07:00
TreeHugger Robot
b2484fa070 Merge "Add TestApi for CtsActivityManagerDeviceTestCases." 2018-08-20 13:30:18 +00:00
TreeHugger Robot
e9772c7fa3 Merge "Address comments from API council for Font/FontFamily" 2018-08-17 18:50:19 +00:00
Nan Zhang
eb973c97da Merge "Make SQLiteDebug @TestApi" 2018-08-17 16:53:11 +00:00
Fyodor Kupolov
6a82990b5f Make SQLiteDebug @TestApi
Otherwise, Metalava based android_test_current.jar doesn't contain
SQLiteDebug.class which caused build failure on:
out/target/common/obj/APPS/CtsDatabaseTestCases_intermediates/classes-full-debug.jar

Test: CtsDatabaseTestCases
Bug: 77543575
Change-Id: Ied9948e962fb7a81e56be0360cb94b0c318ad14d
Merged-In: Ied9948e962fb7a81e56be0360cb94b0c318ad14d
(cherry-picked from 6fe565e441)
Exempt-From-Owner-Approval: Cherry-picked a CL from git_master, and owner just agreed to use Exempt-From tag.
2018-08-17 16:32:17 +00:00
TreeHugger Robot
6e354f0a2c Merge "Parcel mCharacters in KeyEvent" 2018-08-17 14:09:07 +00:00
Seigo Nonaka
c937328ba6 Address comments from API council for Font/FontFamily
- Change Font/FontFamily final
- Introduce equals/hashCode to Font class
-- Add equals and hashCode to FontVariationAxis as well
- Rename FontFamily.getFontCount to FontFamily.getSize
- Change Font ctor not to throw IOException and throw that in build()
  instead.

Bug: 112303038
Test: atest CtsWidgetTestCases:EditTextTest
    CtsWidgetTestCases:TextViewFadingEdgeTest
    FrameworksCoreTests:TextViewFallbackLineSpacingTest
    FrameworksCoreTests:TextViewTest FrameworksCoreTests:TypefaceTest
    CtsGraphicsTestCases:TypefaceTest CtsWidgetTestCases:TextViewTest
    CtsTextTestCases FrameworksCoreTests:android.text
    CtsWidgetTestCases:TextViewPrecomputedTextTest
    CtsGraphicsTestCases:android.graphics.fonts

Change-Id: I079c99cfd579d07b6f3643e41415e58dc8b26492
2018-08-16 11:57:45 -07:00
Malcolm Chen
0ac24ef349 Add APIs in SubscriptionManager for opportunistic subscriptions
Bug: 92796390
Test: unittest
Change-Id: Id6d9454872e4d12a395cc568f7e2361c5b8c9a33
Merged-In: Id6d9454872e4d12a395cc568f7e2361c5b8c9a33
2018-08-15 17:01:44 -07:00
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
Mihai Popa
7433a07046 [Magnifier-45] Add #show(float,float,float,float)
The CL adds a new public API method for Magnifier, which allows the
decoupling between magnifier's content position and the position of the
magnifier window (where the content is magnified and copied).

Bug: 111672818
Test: manual testing
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I2799229bee7acfbd6236089487a5766f46605366
2018-08-10 15:21:09 +01: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
Siarhei Vishniakou
e481d33cc0 Parcel mCharacters in KeyEvent
Currently, the mCharacters field gets lost via IPC because it is not
written to Parcel during serialization. Add this field to the parcel.

The ACTION_MULTIPLE with KEYCODE_UNKNOWN signals usage of mCharacters.
But the mCharacters field isn't really used by the system.
So, deprecate this field.

Also deprecate ACTION_MULTIPLE, which doesn't really get used.

Bug: 111386868
Test: atest cts.KeyEventTest
Change-Id: Ie01b796a10f8b2dcc2bcfa15f71b17a7e917faa7
2018-08-08 18:59: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
lumark
793e056aa1 Add TestApi for CtsActivityManagerDeviceTestCases.
1) Use @TestApis for verify AM related functions to replace using command.
2) Remove "development" protection level for some @TestApis permissions.

Bug: 77988683
Bug: 80415658
Test: atest CtsActivityManagerDeviceTestCases
Change-Id: I4bb10b45a2269c9e871f38f219d3e92cb45eeb9d
2018-08-08 15:14:15 +08: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