Commit Graph

20561 Commits

Author SHA1 Message Date
Jake Wharton
4195507fee Un-@hide Handler.hasCallbacks.
You can post messages with an int or int+Object, query if they're posted, and cancel them. With a Runnable, however, prior to this change you could only post and cancel them.

Bug: 37015636
Test: existing
Change-Id: Icb9ba40ebb32fb962cec8a88e2222f68fe629057
2018-05-18 16:05:41 -04:00
Jeff Sharkey
8929b5245d Q.
Bug: 77588754
Test: builds, boots
Change-Id: Ib1d993fe2949f480a350acfa7e2b3cfdc7abd257
2018-05-15 19:35:56 +00:00
Jeff Sharkey
ca46c6beea Merge "Let tests enumerate all transports/capabilities." into pi-dev am: 8e6445a1a5
am: 75299cffec

Change-Id: If07e77c92046807235229a4f67ee087bdd7bccf1
2018-05-15 08:37:39 -07:00
Jeff Sharkey
8e6445a1a5 Merge "Let tests enumerate all transports/capabilities." into pi-dev 2018-05-15 15:17:30 +00:00
Jeff Sharkey
a5ee62f356 Let tests enumerate all transports/capabilities.
This gives them a way to collect all included values without
resorting to manual probing of each newly added value.

Bug: 16207332
Test: atest com.android.cts.net.HostsideVpnTests
Change-Id: I35ca412512dc8515b44d5518e1ca4caa5bdc678f
2018-05-14 17:17:33 -06:00
Hall Liu
f2a443dbac Merge "Add CallAudioState ctor as TestApi" into pi-dev am: 785a93f61a
am: b5e999f3fd

Change-Id: I65395b8dc270ce503271bf7800f6d1ed46a2c9f2
2018-05-14 14:40:45 -07:00
Hall Liu
c1d95aad1a Add CallAudioState ctor as TestApi
Needed for CTS testing

Bug: 79528185
Test: CTS
Change-Id: Iad154257a93cc776d5800527e46e777fd6c88220
2018-05-11 17:14:58 -07:00
Nader Jawad
a792a95b8d Merge "Update Drawable API to expose getOpticalBounds method as well as the Insets class" 2018-05-09 23:38:20 +00:00
fionaxu
f88ba11def Merge "add install action for carrier id to system API" into pi-dev am: 689866352b
am: 907f3cd76b

Change-Id: If16f5f96067f100ecd207164fcd29764414a218f
2018-05-09 16:22:54 -07:00
TreeHugger Robot
689866352b Merge "add install action for carrier id to system API" into pi-dev 2018-05-09 22:47:40 +00:00
Nader Jawad
5d678b6486 Update Drawable API to expose getOpticalBounds method as well as
the Insets class

Updated all Drawable implementations to remove the @hide annotation

Fixes: 78942648
Test: Re-run CtsGraphicsTestCases and updated Drawable CTS tests to
verify getOpticalBounds implementations

Change-Id: Id9b6bbbe15173e310bbf44184b4678fb29ef1cd8
2018-05-09 10:51:36 -07:00
android-build-team Robot
2ec88c4050 Merge "Allow to influence how loadSafeLabel works" 2018-05-09 15:28:33 +00:00
android-build-team Robot
46985f328b Merge "Provide method to read AppOpsManager._NUM_OP" 2018-05-09 00:19:31 +00:00
fionaxu
2776ed56b8 add install action for carrier id to system API
Bug: 79426800
Test: Manual
Change-Id: Icd3e9ae527dc17ab5762aa57df596f058de08d5b
2018-05-08 15:25:40 -07:00
Fyodor Kupolov
d368f403de Merge "Make SQLiteDebug @TestApi" 2018-05-08 19:11:03 +00:00
Dianne Hackborn
5cb741a42b Merge "Make android:cantSaveState an optional feature." into pi-dev am: 330dd0b244
am: 5e2cf45571

Change-Id: Id8c89fa40853b41e19359540aa00c0aaaaf34f91
2018-05-08 11:43:18 -07:00
Philip P. Moltmann
a6f5c70b91 Allow to influence how loadSafeLabel works
Also remove all references to old loadSafeLabel method to prevent
proliferation of old method via copy+paste.

The implementation assumes that there are three cases:
- Short labels that don't have anything wrong with them
- Labels that are fine, but are a little too long
- Intentionally bad label that try to break stuff and slow things down.

In the first two cases no characters are marked for removal, in the
third case we have an implementation that does not use a lot of memory
and has linear performance when there are a lot of bad characters.

Test: gts-tradefed run gts-dev -m GtsContentTestCases
Bug: 77964730
Change-Id: I3feb17b2a12018cd5407c88fe3603f2ebbc9d14e
2018-05-08 11:27:41 -07:00
Dianne Hackborn
330dd0b244 Merge "Make android:cantSaveState an optional feature." into pi-dev 2018-05-08 17:59:32 +00:00
Tyler Gunn
4d2e130fdf Merge "Make TelecomManager#endCall a public API." into pi-dev am: 872a039ab3
am: aae778c669

Change-Id: I9deb321220ca1a058c88ac1dd36cfddd07b25152
2018-05-07 21:38:04 -07:00
Tyler Gunn
872a039ab3 Merge "Make TelecomManager#endCall a public API." into pi-dev 2018-05-08 04:01:35 +00:00
Fyodor Kupolov
6fe565e441 Make SQLiteDebug @TestApi
Test: CtsDatabaseTestCases
Bug: 77543575
Change-Id: Ied9948e962fb7a81e56be0360cb94b0c318ad14d
2018-05-07 16:13:08 -07:00
Dianne Hackborn
c8e4fad862 Make android:cantSaveState an optional feature.
This doesn't make sense on things like watches and appliances,
so make this an optional feature that the device must enable.
If the feature is not set, then the system will ignore
the app's request.

Bug: 76213401
Test: atest CtsAppTestCases:ActivityManagerProcessStateTest
Change-Id: I91abf9d86ec14fa632e3bcc83c4a3febade5d2e4
2018-05-07 15:01:57 -07:00
Philip P. Moltmann
2457681ec0 Provide method to read AppOpsManager._NUM_OP
So it can be changed without api breakage.

Fixes: 79204487
Test: atest android.permission.cts.AppOpsTest#testAllOpsHaveOpString
Change-Id: I7eb6d36e07108879dfd20b0432dd67925842631b
2018-05-07 12:48:36 -07:00
Rose Liu
6de5ddc64f Merge "Add @SystemApi to related VR functions that will be used by VrCore Services." 2018-05-04 17:20:52 +00:00
Dianne Hackborn
e04f13d9ea Add app op for Bluetooth scans
Bug: 78480444
Test: manual
Change-Id: I5a88abc8f26e7505ebfbd76137f13f75be6e5ff9
2018-05-03 12:02:32 -07:00
rongliu
55492665f8 Add @SystemApi to related VR functions that will be used by VrCore
Services.

We added them to grey list, but it would be better to make them proper
SystemApi.

Bug: 74430927
Test: Run VR app, not seeing VR related "Accessing hidden field" log.

Change-Id: I9e6ec7eb35244fbac4f6448721458efbee65a887
2018-05-02 17:40:47 -07:00
android-build-team Robot
3bbebdd3c7 Merge "Fix issue #78230210: Strobe: Need separate runtime permission group for READ_CALL_LOG and WRITE_CALL_LOG" into pi-dev am: 06defc2a31
am: 0bd5e9860c

Change-Id: Ie58474a88d616afd698bc1e124262f89bdfa07f1
2018-05-02 14:04:25 -07:00
Tyler Gunn
e1aa26c744 Make TelecomManager#endCall a public API.
A broad category of apps such as wearable companion apps and call blocking
apps rely on the ability to reject a ringing call.
Previously this was achieved using a broken TelephonyManager API which
lacked permission checks.
To support these applications, removing the @hide attribute on the existing
TelecomManager#endCall API so that apps with the existing
ANSWER_PHONE_CALLS permission can reject ringing calls and end ongoing
calls.  Logically if an app has permission to answer a call, it should be
able to end it.

Test: Created test app to verify API permission checks.
Test: Added new CTS tests to cover this API.
Bug: 78290258
Change-Id: Ic6527969793ebe05eb9c5fa8205558ae788ea572
2018-05-02 13:23:48 -07:00
Daniel Santiago Rivera
a1b06eba14 Add setter and getter for Toolbar's collapse icon.
Bug: 78187236
Test: make java
Change-Id: Id0faacaa95c8c4ee54b3dec66e3b16e589ebd370
2018-05-02 18:17:55 +00:00
Dianne Hackborn
ed23b9b12c Fix issue #78230210: Strobe: Need separate runtime permission group for READ_CALL_LOG and WRITE_CALL_LOG
Bug: 78230210
Test: manual
Change-Id: Ie5a0ab3dffd40dc44f7aa5deb81b42fbc2dbd406
2018-05-01 14:00:34 -07:00
Nader Jawad
4f614c8864 Removed the @hide annotation on various StateListDrawable APIs to better
match the API surface exposed in ColorStateList.

Removed the @hide annotation for the following StateListDrawable APIs:
--getStateCount
--getStateSet
--getStateDrawable
--getStateDrawableIndex

Fixes: 30325322
Test: Re-ran StateListDrawable CTS tests and added tests to verify each
of the newly exposed APIs

Change-Id: If93a017b6cf690fc38381a234bf3bd19d0bfc675
2018-04-27 22:06:14 +00:00
android-build-team Robot
8d7b81e67f Merge "Expose APIs used by CtsPermissionTestCases" 2018-04-27 18:56:48 +00:00
Jake Wharton
c4afa0b5e1 Merge "Expose Parcel read/writeBoolean." 2018-04-27 12:52:52 +00:00
Gil O'Neil
220b47a10d Merge "Added test API to refresh the UICC Profile" into pi-dev am: 3e6ceafbaa
am: f0c09d6e0c

Change-Id: I66696ad33de00595f10e02f7e29aa33bc4442281
2018-04-26 16:55:08 -07:00
Gil O'Neil
f0c09d6e0c Merge "Added test API to refresh the UICC Profile" into pi-dev
am: 3e6ceafbaa

Change-Id: Icde39b92a744653f1fb71165df4dda8362deee8b
2018-04-26 16:36:18 -07:00
Jake Wharton
2ffa4314b0 Expose Parcel read/writeBoolean.
Previously the recommendation seemed to be to just call read/writeInt with a ternary, but if that isn't good enough for internal callers then it isn't good enough for external ones. Plus there's tons of StackOverflow questions and "me too"s on a 8-year-old bug. Boolean is sufficiently ubiquitous as a type to warrant a public method.

Bug: 36912353
Test: none
Change-Id: I7fac76d8ea8647b09b87befbcba41f3f0f2de1dc
2018-04-26 18:04:39 -04:00
Philip P. Moltmann
33115156f9 Expose APIs used by CtsPermissionTestCases
Test: atest CtsPermissionTestCases
Bug: 77604428
Change-Id: Ib5e9b678e98aab86dac90610ed071eb89f14fce9
2018-04-26 09:40:57 -07:00
goneil
f6c6e8efa7 Added test API to refresh the UICC Profile
Bug: 74016670
Test: GTS tests - vendor/xts/gts-tests/hostsidetests/simappdialog
Change-Id: I8f8ffdad8666d523172b035d24b96278d4d1a1ee
2018-04-25 18:19:42 -07:00
goneil
6eb25b8e57 Remove duplicate TelephonyManager class in test-current.txt
Bug: 78192245
Test: None
Change-Id: I8b93a86d1107ee56e662f3315b71a51e7dd62e9f
2018-04-25 14:21:44 -07:00
TreeHugger Robot
c078e6b6fc Merge "Add @TestApi to KeyEvent.actionToString(..)" 2018-04-25 16:12:56 +00:00
Siarhei Vishniakou
4c96a5e2cb Add @TestApi to KeyEvent.actionToString(..)
Currently, it is not possible to use KeyEvent.actionToString(..) in a
CTS test because that API is @hide. However, it would be useful to print
these actions when tests fail. Therefore, add the @TestApi annotation.

Bug: 77803694 36069459
Test: m cts-input-lib CtsHardwareTestCases (under development)
Change-Id: I2d23dbd101cef3f1c6c7a70c521a9dc219797615
2018-04-24 18:02:11 -07:00
Lorenzo Colitti
4d121ff87f Merge "Actually @hide unwanted capability methods." into pi-dev am: a09c06a6c1
am: dc86aaa112

Change-Id: I923e5377a1abe761217612452cbfdba752e53de2
2018-04-24 14:50:14 -07:00
Lorenzo Colitti
dc86aaa112 Merge "Actually @hide unwanted capability methods." into pi-dev
am: a09c06a6c1

Change-Id: I80a88123b16c54734306da7e5dc0670972041648
2018-04-24 14:43:06 -07:00
Lorenzo Colitti
a09c06a6c1 Merge "Actually @hide unwanted capability methods." into pi-dev 2018-04-24 21:20:25 +00:00
Lorenzo Colitti
19c0ccaa8c Actually @hide unwanted capability methods.
Bug: 77601789
Test: builds, boots
Test: make doc-comment-check-docs
Change-Id: I7a913b83ab5110047d187564b3a1b0bbe1631942
2018-04-24 13:12:56 +09:00
Jeff Sharkey
4cdf6e58ed Merge "Give CTS a way to force-poll network stats." into pi-dev am: 46e58e1b40
am: 77c7b732c4

Change-Id: I93be7a46fc345efc31e98975c65a287f2d344220
2018-04-20 14:07:19 -07:00
Jeff Sharkey
77c7b732c4 Merge "Give CTS a way to force-poll network stats." into pi-dev
am: 46e58e1b40

Change-Id: Id2252b803a33ddadfef71618b3b9106c93c5be2a
2018-04-20 13:51:02 -07:00
Jeff Sharkey
c3c8d16380 Give CTS a way to force-poll network stats.
Collecting network statistics is pretty heavy, which is why we're
throttling callers.  However, to keep CTS running fast, we provide a
way for tests to force a poll event, instead of making them wait for
the throttle timeout.

Bug: 77908520
Test: atest cts/tests/tests/app.usage/src/android/app/usage/cts/NetworkUsageStatsTest.java
Change-Id: Ia792f0cd495023366ff8c4839df54e7da2ae8331
2018-04-20 12:18:23 -06:00
TreeHugger Robot
951a9700ed Merge "Making app_standby_enabled a SystemApi" 2018-04-18 01:08:18 +00:00
Dan Gittik
e654ca92f4 Merge "Fixed power manager CTS test." into pi-dev am: 15d35c1274
am: 17ad53b40b

Change-Id: Ib805670acfae2c9b17afb07e6484906fae71f5ce
2018-04-17 04:02:45 -07:00