Commit Graph

1142 Commits

Author SHA1 Message Date
Agatha Man
e8bc12076e Add CAR_DRIVING_STATE and CAR_CONTROL_AUDIO_VOLUME permissions to run am: 39ba8c9cc3 am: 2f457b142d am: 7be384568b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12142737

Change-Id: Ibdc0a9e0691826fbb30231b86d7523bd7899c22e
2020-07-17 18:12:55 +00:00
Agatha Man
7be384568b Add CAR_DRIVING_STATE and CAR_CONTROL_AUDIO_VOLUME permissions to run am: 39ba8c9cc3 am: 2f457b142d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12142737

Change-Id: Ib70d1bf25b6c31b5ee8d62914fe94d89f93f391f
2020-07-17 17:57:58 +00:00
Agatha Man
2f457b142d Add CAR_DRIVING_STATE and CAR_CONTROL_AUDIO_VOLUME permissions to run am: 39ba8c9cc3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12142737

Change-Id: Iac1d2e3f7e4d0dbf93eaa86bfe4ccc7e26397be5
2020-07-17 17:53:03 +00:00
Agatha Man
39ba8c9cc3 Add CAR_DRIVING_STATE and CAR_CONTROL_AUDIO_VOLUME permissions to run
ATS tests

AtsCarHostTestCases and AtsCarDeviceApp requires CAR_DRIVING_STATE.
AtsDeviceInfo and AtsAudioDeviceTestCases requires
CAR_CONTROL_AUDIO_VOLUME.

Bug: 161193447
Test: m -j && run ats tests
Change-Id: Ib16c6c5e54b489479c872cfa826b055262b797bb
2020-07-17 17:48:36 +00:00
Joshua Duong
11f40650a0 Merge changes from topic "adbwifi-cts" into rvc-dev am: 5ab3aa0c7b am: af1f67ebd4 am: b497b40119 am: ee288b5c36 am: 2efd751980
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12000446

Change-Id: I31dd58528313c3d8608f7ce81eb44fedabec9c9c
2020-06-30 02:26:30 +00:00
Joshua Duong
2efd751980 Merge changes from topic "adbwifi-cts" into rvc-dev am: 5ab3aa0c7b am: af1f67ebd4 am: b497b40119 am: ee288b5c36
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12000446

Change-Id: I938c0abdf21c197f19f7b89cf8388a86827d615e
2020-06-30 02:03:45 +00:00
Joshua Duong
ee288b5c36 Merge changes from topic "adbwifi-cts" into rvc-dev am: 5ab3aa0c7b am: af1f67ebd4 am: b497b40119
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12000446

Change-Id: I1124248048dd778f02cab0945c52b74fa48a8712
2020-06-30 01:23:15 +00:00
Joshua Duong
b497b40119 Merge changes from topic "adbwifi-cts" into rvc-dev am: 5ab3aa0c7b am: af1f67ebd4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12000446

Change-Id: I56de8c996bccc8c926547afdc322c36d381f557b
2020-06-30 01:09:39 +00:00
Joshua Duong
f2e03b393f Add shell permissions for CTS test (AdbManagerTest).
Bug: 159936209

Test: atest CtsAdbManagerTests
Change-Id: I896b53df582cceb7d1b0d6694d00064b0fb57b94
2020-06-25 15:03:19 -07:00
Dieter Hsu
b65f8bc611 Merge "Enable bug report tests in pre/postsubmit" am: 4e593f7fd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11907883

Change-Id: I584f1afc60e5834debd1484cbc6294408ae79475
2020-06-25 15:17:38 +00:00
Dieter Hsu
848113e595 Enable bug report tests in pre/postsubmit
Bug: 155604488
Test: atest --test-mapping --dry-run \
          services/core/java/com/android/server/os:presubmit
Test: atest --test-mapping --dry-run core/java/android/os:presubmit
Change-Id: I054d05d4fa8ff02f1c404d0883c382a2d5911f88
2020-06-24 12:20:32 +08:00
TreeHugger Robot
1704c68e8a Merge "Import translations. DO NOT MERGE" 2020-06-20 06:56:44 +00:00
Bill Yi
5b8db946b4 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I676163f17cc11f1c0cf2a37b0d81a192ecae7af3
2020-06-20 02:43:41 +00:00
Nathan Harold
4f69d7fab1 Merge "Allow Background Location Access for Shell" into rvc-dev am: 811cf5d8f5 am: c1197612dd am: a7c90af06a am: 5c077660b2 am: 463bb8caf6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11914608

Change-Id: I4a987a726d7da739f733ec8e71f870e5e09251f2
2020-06-19 19:59:34 +00:00
Nathan Harold
463bb8caf6 Merge "Allow Background Location Access for Shell" into rvc-dev am: 811cf5d8f5 am: c1197612dd am: a7c90af06a am: 5c077660b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11914608

Change-Id: I6a3b8c8e6212d27ab6801f95ba6018be4f739e44
2020-06-19 19:42:32 +00:00
Nathan Harold
f543091ab8 Merge "Allow Background Location Access for Shell" into rvc-dev am: 811cf5d8f5 am: 86013d505f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11914608

Change-Id: Id715cf6426d157e3fc1bd036dead615afb3832e3
2020-06-19 19:17:05 +00:00
Nathan Harold
c1197612dd Merge "Allow Background Location Access for Shell" into rvc-dev am: 811cf5d8f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11914608

Change-Id: Ic22846e6f3337b2ebe7a6448829616a8a29056b3
2020-06-19 19:05:29 +00:00
Nathan Harold
89796d4936 Allow Background Location Access for Shell
The shell has COARSE and FINE permission, but it
needs background access to support CTS test cases
that must be run with elevated permissions from
the shell.

Bug: 159236070
Test: atest PhoneStateListenerTest#testBarringInfo

Change-Id: Iba3fcb3a43c5df3c30dadf6b7733eaee03d1d0e3
2020-06-19 09:03:29 -07:00
Rhed Jao
5b505f7a2e Merge "Fix BugreportReceiverTest" am: 56cf218343
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11863066

Change-Id: I0cbd637493f59e73044aa8519c3c8c2260a45b7b
2020-06-18 14:27:49 +00:00
Rhed Jao
45c7d94d7a Fix BugreportReceiverTest
- Implements a local binder and #onBind in the service to return the
  service instance.
- Mocks BugreportManager in the service to avoid service interacting
  with the dumpstate.
- Fixes dialog name field did not disable after service is finished.
- Fixes screenshot did not remove if the name is empty.
- Extends screenshot delay timeout in tests.
- Fine tune the UiBot to fit new bugreport notification.
- Removes obsolete cases in the tests.

Bug: 143130523
Test: atest BugreportReceiverTest
Change-Id: Iae89206da1d08a10891503869bbbf1ce18d4e31f
2020-06-18 20:40:41 +08:00
Bill Yi
0edbd7bf02 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I4ee30f50c8fc9ad7a9884eb5403a070f2ca40be0
2020-06-14 01:24:36 +00:00
Rhed Jao
cd5ba05dda Merge "Do not buzzing for each progress of bugreport notification" am: 63d1890bc8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11807219

Change-Id: Ib86e581d748774debc18b610a46199a37c83cdcb
2020-06-10 02:54:16 +00:00
Rhed Jao
d8b3398edf Do not buzzing for each progress of bugreport notification
Only alert bugreport notification at the begining and end.

Bug: 146135200
Test: Manually changing the notification settings to default
      from silent.
Change-Id: Ie955266ad8a7a27a9dc74743e276b5e9c7a2d6fb
2020-06-09 19:36:18 +08:00
Rhed Jao
e087fd41e9 Merge "Enable scrolling for bugreport info dialog" into rvc-dev am: fbc9630c3f am: 6f373ac372 am: b1594813a1 am: 5e550b2bc7 am: ac829bd0ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11745981

Change-Id: I22fb875ebc256500526d57107ae720219a257c10
2020-06-05 18:30:55 +00:00
Rhed Jao
ac829bd0ca Merge "Enable scrolling for bugreport info dialog" into rvc-dev am: fbc9630c3f am: 6f373ac372 am: b1594813a1 am: 5e550b2bc7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11745981

Change-Id: Ia8f927b2703251e0bc010c3759c0d0f0ab382efb
2020-06-05 18:12:46 +00:00
Rhed Jao
c83e455d98 Merge "Enable scrolling for bugreport info dialog" into rvc-dev am: fbc9630c3f am: 6f373ac372
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11745981

Change-Id: I7bfc66263fc73ce733191162e896589b636b07f9
2020-06-05 10:50:09 +00:00
Rhed Jao
b1594813a1 Merge "Enable scrolling for bugreport info dialog" into rvc-dev am: fbc9630c3f am: 6f373ac372
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11745981

Change-Id: If06aae31fb7689cea8baf663016bb6b0b013ede3
2020-06-05 10:49:56 +00:00
Rhed Jao
8a3477957b Merge "Enable scrolling for bugreport info dialog" into rvc-dev am: fbc9630c3f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11745981

Change-Id: If0a3da85728bd93917095f90560f52150db15fdc
2020-06-05 10:25:57 +00:00
Rhed Jao
fbc9630c3f Merge "Enable scrolling for bugreport info dialog" into rvc-dev 2020-06-05 10:23:59 +00:00
Rhed Jao
de2109b178 Enable scrolling for bugreport info dialog
Bug: 156291300
Test: Scrolls the dialog with largest display and font size.
Change-Id: Ic1c101612fb8cc0c281d96b62fee3f9309e6a66f
2020-06-05 14:20:41 +08:00
Automerger Merge Worker
3ecd85c374 Merge "Merge "Adding LOADER_USAGE_STATS permission to shell" into rvc-dev am: dfdac64a90 am: ebededcbf3 am: c1baf5783b" into rvc-qpr-dev-plus-aosp am: 3de964bd84 am: 28e1372e02
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11725939

Change-Id: Iec295360cbed05e5f63d745e9573a3e5c1cbbb8a
2020-06-05 02:34:32 +00:00
Automerger Merge Worker
28e1372e02 Merge "Merge "Adding LOADER_USAGE_STATS permission to shell" into rvc-dev am: dfdac64a90 am: ebededcbf3 am: c1baf5783b" into rvc-qpr-dev-plus-aosp am: 3de964bd84
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11725939

Change-Id: I2f0b8015b0b9b2300e21f7c8a4313fbb3fe91fd0
2020-06-05 02:24:17 +00:00
TreeHugger Robot
b42bbee2ab Merge "Adding LOADER_USAGE_STATS permission to shell" into rvc-dev am: dfdac64a90 am: ebededcbf3 am: c1baf5783b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11725939

Change-Id: I580d4e8ace44b26e651502608483985d570aba08
2020-06-05 02:10:39 +00:00
TreeHugger Robot
c1baf5783b Merge "Adding LOADER_USAGE_STATS permission to shell" into rvc-dev am: dfdac64a90 am: ebededcbf3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11725939

Change-Id: Icdd02ee90667b3a7bdb86822a4a06f42fd2f2d60
2020-06-05 01:57:14 +00:00
TreeHugger Robot
0110c8db86 Merge "Adding LOADER_USAGE_STATS permission to shell" into rvc-dev am: dfdac64a90 am: ebededcbf3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11725939

Change-Id: I9386cdec1c9abe64067e921d6199ab3cc44c2714
2020-06-05 01:56:57 +00:00
TreeHugger Robot
a5d1f680c8 Merge "Adding LOADER_USAGE_STATS permission to shell" into rvc-dev am: dfdac64a90
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11725939

Change-Id: I5a74b35afd83e468e52ab252e86601a2364d0c61
2020-06-05 01:41:03 +00:00
Dimuthu Gamage
a2b2226d6b Adding LOADER_USAGE_STATS permission to shell
This is expected to be used with adoptShellPermission in the Incremental CTS tests.

Test: atest android.content.pm.cts.PackageManagerShellCommandTest
(There will be future tests relying on this)

Bug: 158024822
Change-Id: I4f146337429679edddba698aa88bb9b2cb883ab9
2020-06-04 23:43:47 +00:00
Sung Min Lee
8325ad16b5 Merge "Add CAPTURE_AUDIO_OUTPUT permission required for GTS test" into rvc-dev am: 5bafce8420 am: 0bb87d4503 am: 470e761379 am: 25ac0879cb am: 3d3f0b483e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11712625

Change-Id: I2e3f340aabaed7c6ee8b0b2a88f6ca14926ecbab
2020-06-04 02:02:07 +00:00
Sung Min Lee
3d3f0b483e Merge "Add CAPTURE_AUDIO_OUTPUT permission required for GTS test" into rvc-dev am: 5bafce8420 am: 0bb87d4503 am: 470e761379 am: 25ac0879cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11712625

Change-Id: Ia01b30b4316fec313aa4b03636b7124d31fcd588
2020-06-04 01:56:08 +00:00
Sung Min Lee
101eaed95a Merge "Add CAPTURE_AUDIO_OUTPUT permission required for GTS test" into rvc-dev am: 5bafce8420 am: 0bb87d4503
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11712625

Change-Id: I76e69b9f5123fdd72e416c5be4b2d3469d84807a
2020-06-04 01:36:12 +00:00
Sung Min Lee
470e761379 Merge "Add CAPTURE_AUDIO_OUTPUT permission required for GTS test" into rvc-dev am: 5bafce8420 am: 0bb87d4503
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11712625

Change-Id: Icc98228a68edff4bcfacc67d0519c930d625920a
2020-06-04 01:36:09 +00:00
Sung Min Lee
3c0fe83b63 Merge "Add CAPTURE_AUDIO_OUTPUT permission required for GTS test" into rvc-dev am: 5bafce8420
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11712625

Change-Id: I59aa0b8b5327685cd6658a6a0a382f61c1d3ea7a
2020-06-04 01:22:17 +00:00
Sung Min Lee
a90b1fcaca Add CAPTURE_AUDIO_OUTPUT permission required for GTS test
GtsDialerAudioTestCases require this privileged permission for testing in GTS.

Bug: 157243201
Test: run gts -m GtsDialerAudioTestCases
Change-Id: I32516e5dcf966b05cfb8ab4956a0cdb183298f2a
2020-06-02 21:24:59 -07:00
Ashwini Oruganti
02f8c0f5ef Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for future versions. This change adds the value reflecting the
previous default to the manifest.

These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.

Bug: 150232615
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: Ic2a2b9ee1c9bae64690691a95b885f4b69cb21f8
Merged-In: Ic2a2b9ee1c9bae64690691a95b885f4b69cb21f8
2020-05-29 19:51:27 +00:00
TreeHugger Robot
3e0b67fed8 Merge "Add an exported flag in manifest" am: 67c082bba0
Change-Id: I823a100d72a0ba19713e97c47c160bb8077300fd
2020-05-29 19:18:04 +00:00
Ashwini Oruganti
2c2dc8e013 Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for future versions. This change adds the value reflecting the
previous default to the manifest.

These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.

Bug: 150232615
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: Ic2a2b9ee1c9bae64690691a95b885f4b69cb21f8
2020-05-29 10:23:12 -07:00
TreeHugger Robot
c117c453bd Merge "Add LOCATION_HARDWARE permission to shell." into rvc-dev am: 8a6ef8e52d am: 2a9258b974
Change-Id: I32438339b2c0bd2aa2f5674ccf2ca4e31a59d1a8
2020-05-28 21:51:43 +00:00
TreeHugger Robot
ffc2345509 Merge "Add LOCATION_HARDWARE permission to shell." into rvc-dev am: 8a6ef8e52d am: fc7c4138ef am: b16116ce55 am: 7568afb186 am: fa0e5dfdb2
Change-Id: Ie7f12b554a7b75e4ce980b295579313298133f23
2020-05-28 20:34:32 +00:00
TreeHugger Robot
fa0e5dfdb2 Merge "Add LOCATION_HARDWARE permission to shell." into rvc-dev am: 8a6ef8e52d am: fc7c4138ef am: b16116ce55 am: 7568afb186
Change-Id: I9bd3884b6c76f276f5d139c6dc73dabedbdfe8dd
2020-05-28 20:18:28 +00:00
TreeHugger Robot
fc7c4138ef Merge "Add LOCATION_HARDWARE permission to shell." into rvc-dev am: 8a6ef8e52d
Change-Id: Ica09e8dba5b17f0df7d15f980c284b48defac8d0
2020-05-28 19:45:06 +00:00