Commit Graph

20537 Commits

Author SHA1 Message Date
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
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
Dan Gittik
17ad53b40b Merge "Fixed power manager CTS test." into pi-dev
am: 15d35c1274

Change-Id: I375d0d77520a707cc76064a93def15faa5f8ddb1
2018-04-17 03:50:58 -07:00
Dan Gittik
26b030d829 Fixed power manager CTS test.
Added an annotation necessary to allow the power manager CTS test to
access the non-public method nap.

Test: adb install -r \
      out/host/linux-x86/cts/android-cts/testcases/CtsOsTestCases.apk
      adb shell am instrument -e class android.os.cts.PowerManagerTest \
      -w android.os.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: Ida939f074654bef351e2b8fd563c8463431ce9c6
Fixes: 77907164
2018-04-16 18:50:10 +01:00
Wale Ogunwale
605007578e Finalizing P SDK am: 3da5f3b2dd
am: fc89e7f17a

Change-Id: I85aaa6fb6de6cc76a2ac004c7e575737537401fc
2018-04-14 16:04:49 -07:00
Wale Ogunwale
fc89e7f17a Finalizing P SDK
am: 3da5f3b2dd

Change-Id: Id5002a3fc4d35352a4ace67e794c1a52e21c496c
2018-04-13 14:18:27 -07:00
Michael Wright
4cf175b4ed Merge "Revert "Fixed power manager CTS test."" into pi-dev am: ca1dcfb23e
am: ad93f44a3e

Change-Id: I84dc34980d768ee8807c4d9b045a1971dfdbff03
2018-04-13 11:11:05 -07:00
Michael Wright
ad93f44a3e Merge "Revert "Fixed power manager CTS test."" into pi-dev
am: ca1dcfb23e

Change-Id: Ie748557c6940961635cdd929238f1bd2070e8804
2018-04-13 10:59:47 -07:00
Dan Gittik
b5abef7867 Merge "Fixed power manager CTS test." into pi-dev am: 62444d4950
am: 33ca88a1fc

Change-Id: I3ed21dbc86c56ab1a9182607bb7bba7bbc73229e
2018-04-13 10:36:35 -07:00
Michael Wright
ca1dcfb23e Merge "Revert "Fixed power manager CTS test."" into pi-dev 2018-04-13 17:33:15 +00:00
Michael Wright
4d6b454b45 Revert "Fixed power manager CTS test."
This reverts commit 48fed61da3.

Reason for revert: m checkbuild failing
Bug: 77907164

Change-Id: I7f75dafc049581a7a5393c3cf0108c488eecaf48
2018-04-13 17:32:11 +00:00
Dan Gittik
33ca88a1fc Merge "Fixed power manager CTS test." into pi-dev
am: 62444d4950

Change-Id: I96d0acccf64a86a241178241dc6fc9b069f29ac8
2018-04-13 10:21:15 -07:00
TreeHugger Robot
62444d4950 Merge "Fixed power manager CTS test." into pi-dev 2018-04-13 16:59:28 +00:00
Dan Gittik
48fed61da3 Fixed power manager CTS test.
Added an annotation necessary to allow the power manager CTS test to
access the non-public method nap.

Test: adb install -r \
      out/host/linux-x86/cts/android-cts/testcases/CtsOsTestCases.apk
      adb shell am instrument -e class android.os.cts.PowerManagerTest \
      -w android.os.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: I91e591be608f5040bc035a203d7e94c83d50bf15
Fixes: 77907164
2018-04-13 15:43:20 +01:00
Chen Xu
4045587689 Merge "A test api to override carrier information" am: 420ab92b0b am: 700b21d7cd
am: f3c9cb2a03

Change-Id: I28cd884a6184fa7a9c3f8fc733195b5672745bcb
2018-04-12 20:59:11 -07:00
Chen Xu
f3c9cb2a03 Merge "A test api to override carrier information" am: 420ab92b0b
am: 700b21d7cd

Change-Id: Id71dd0534b784d757bde6cd8ca88f3eb35aaf007
2018-04-12 20:39:57 -07:00
Jeff Sharkey
d2a25e66e0 Merge "Remove poorly defined notification APIs." into pi-dev am: 36efb71088
am: d6e49befda

Change-Id: I6689556635b2ee8e56aca7325596e32efdc7311b
2018-04-12 17:23:57 -07:00
Wale Ogunwale
3da5f3b2dd Finalizing P SDK
Bug: 77588754
Test: builds
Change-Id: Ic06cad790a3dc53d012a7c43dfac911fc6dc61e7
2018-04-12 15:26:31 -07:00
fionaxu
780b62b3b5 A test api to override carrier information
This API should only be used for testing purpose e.g., CTS/GTS/SL4A
By overriding carrier information, we could force a particular carrier id,
carrier's config, but also any country or carrier overlays to be loaded
when using a test SIM with a call box.

Bug: 72332597
Test: atest CtsTelephonyTestCases:CarrierIdentificationTest

Change-Id: Icd5804375ef9334c9f6c382cc6a774b9c9c15213
(cherry picked from commit 5b509b81a0)
Merged-in: 5b509b81a0
2018-04-12 22:19:15 +00:00
Hall Liu
bd6bf7cbe8 Merge "Make setServiceId a TestApi" 2018-04-12 20:41:44 +00:00
Suprabh Shukla
a55b2ad70e Making app_standby_enabled a SystemApi
So system apps do not have to use a string constant and maintain it to
match the constant defined in Settings.

Test: Builds, boots, existing tests pass.

Fixes: 73156686
Change-Id: I2ff9d2cce6a477b2fcc81378496abef04798dd2b
2018-04-12 20:35:41 +00:00
Jeff Sharkey
1df7ee5757 Remove poorly defined notification APIs.
They were rushed in at the last second, and feedback from stakeholders
reveals they're not ready for prime time.

Bug: 77851691
Test: builds, boots
Exempt-From-Owner-Approval: SDK finalization
Change-Id: I96f6c80610627878a29543b345419924774a60e0
2018-04-12 18:27:08 +00:00
Wale Ogunwale
cbb04c868d Merge "Clean up APIs before declaring API 28." into pi-dev am: fb10508cfa
am: b129fadef8

Change-Id: I9b8414b89138651f3b3132789cae59ad6780dbb6
2018-04-12 05:45:08 -07:00
Wale Ogunwale
fb10508cfa Merge "Clean up APIs before declaring API 28." into pi-dev 2018-04-12 12:19:56 +00:00
Phil Weaver
85be2cdda9 Merge "Move accessibilityHeader from TextView to View" into pi-dev am: 99a238adf1
am: d3adf76761

Change-Id: I7c3045b0a4da4aa9e8d9060d02ec0dafd67f6f33
2018-04-11 20:23:53 -07:00
Phil Weaver
99a238adf1 Merge "Move accessibilityHeader from TextView to View" into pi-dev 2018-04-12 03:07:57 +00:00