Commit Graph

1106 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
Wei Wang
96f7636149 Add LOCATION_HARDWARE permission to shell.
A few location System APIs require LOCATION_HARDWARE permssion. Adding
this permission to shell so CTS tests can adopt this permission.

Bug:154347471

Test: atest PrivilegedLocationPermissionTest
Change-Id: I4abe4dc044ec4a3ab62352cc0f4a1726bebac633
2020-05-27 17:53:31 -07:00
Automerger Merge Worker
432000fef9 Merge "Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea am: b7e62faf05 am: 1c4bcda424" into rvc-qpr-dev-plus-aosp am: cce2d11a1c
Change-Id: I8e145e9a194fad5b6e78f50016af542a0d384ef1
2020-05-27 05:28:15 +00:00
TreeHugger Robot
1c4bcda424 Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea am: b7e62faf05
Change-Id: I0759509548df5394233a23a1904c61de490c3eff
2020-05-27 04:59:31 +00:00
TreeHugger Robot
629cac54f6 Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev am: f49fa1a9ea
Change-Id: I5a4cbbb4bda0e975129108ee32dd3c1965bed24f
2020-05-27 04:48:53 +00:00
TreeHugger Robot
f49fa1a9ea Merge "Add support for TvInputManager.acquireTvInputHardware CTS" into rvc-dev 2020-05-27 04:39:45 +00:00
Robin Lee
36e681b077 Merge "Take interactive bugreports on Android TV" into rvc-dev am: 1d22ea4eca am: ddf65460e4 am: 902dcd2100 am: 0af30d0670
Change-Id: I980219d72919befa10fd7e230711197f67eadc32
2020-05-22 11:06:11 +00:00
Robin Lee
a08021a958 Merge "Take interactive bugreports on Android TV" into rvc-dev am: 1d22ea4eca am: ddf65460e4
Change-Id: Ifc03e176cc83bfb5220fbf094007e6430a2795ca
2020-05-22 10:35:40 +00:00
Robin Lee
902dcd2100 Merge "Take interactive bugreports on Android TV" into rvc-dev am: 1d22ea4eca am: ddf65460e4
Change-Id: I0c683895e19e64d5a932ed9e96c3bd3b6105d757
2020-05-22 10:35:20 +00:00
Robin Lee
699592ebcb Merge "Take interactive bugreports on Android TV" into rvc-dev am: 1d22ea4eca
Change-Id: Id1d787c9445d4a954a8ebb8f3d88d7f1b53edc5c
2020-05-22 10:23:35 +00:00
Robin Lee
1d22ea4eca Merge "Take interactive bugreports on Android TV" into rvc-dev 2020-05-22 09:58:53 +00:00
Robin Lee
93059d2f0b Take interactive bugreports on Android TV
We want to take a screenshot immediately, not after dumpsys finished.
This also gives the user some feedback that we took a screenshot when
they were paying attention, whereas the notification might go under
the radar if posted the 30-90 seconds later it will be shown
otherwise.

Also gives us the progress notification in the Android TV notification
tray, which helps the user keep track of what is going on and how long
it is expected to take.

Previously either no feedback was shown at all on key press, or a simple
Toast was shown on selecting the bugreport option from the TV Settings
app.

Test: Press DPAD_CENTER + BACK, observe screenshot and progress.
Fix: 151865303
Change-Id: I78753697a7867042d28364a6b6d61fdb96f8bc96
2020-05-21 20:19:03 +00:00
TreeHugger Robot
3f953bb49b Merge "Revert "Add a null home activity to Shell.apk"" into rvc-dev am: 6351c72746 am: e3d4b1b779
Change-Id: I370dcf83265a815fbc46351fefbbb79d651e924c
2020-05-18 23:39:53 +00:00
TreeHugger Robot
cf307e4d6e Merge "Revert "Add a null home activity to Shell.apk"" into rvc-dev am: 6351c72746 am: 01b3848ade am: 969092b4ce am: 5172db5258
Change-Id: I277c08af8a290ec41a899d245602104656e37fa5
2020-05-18 18:55:48 +00:00
TreeHugger Robot
01b3848ade Merge "Revert "Add a null home activity to Shell.apk"" into rvc-dev am: 6351c72746
Change-Id: I46fddd88ef99f71cb8574420be0782bb5be90b7e
2020-05-18 17:32:13 +00:00
TreeHugger Robot
6351c72746 Merge "Revert "Add a null home activity to Shell.apk"" into rvc-dev 2020-05-18 17:28:46 +00:00
TreeHugger Robot
c86a144dd0 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-05-15 20:09:36 +00:00
Bill Yi
df550b1764 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I9b080f976b8e377592f2e4822f889bf026ed20ab
2020-05-15 12:50:02 +00:00
Bill Yi
197c8d4e8f Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I2df45fec7fcb399134f93a57adc889d392bfcf15
2020-05-15 11:43:52 +00:00
Amy Zhang
5f8498bcf1 Add support for TvInputManager.acquireTvInputHardware CTS
1. Add a test api in TvInputManager to add hardware device for testing
2. Add Shell permission for TV_INPUT_HARDWARE
3. Add TUNER_RESOURCE_ACCESS permission for TvInput Framework.

Test: atest android.media.tv.cts
Bug: 155114656
Change-Id: I227f13cbf14532d8732729412ae9c2518755ef02
2020-05-14 17:37:52 -07:00
TreeHugger Robot
38420cca4d Merge "Add day-night-mode permission to Shell." into rvc-dev am: 021ceaecf2 am: f3ae8b5bd1
Change-Id: I63a4afc458a4f6f3d711be4b83589284d96a727c
2020-05-13 19:55:39 +00:00
TreeHugger Robot
f3ae8b5bd1 Merge "Add day-night-mode permission to Shell." into rvc-dev am: 021ceaecf2
Change-Id: Ib364f93a1f0c338b7139c8f0a6945653a2db01bf
2020-05-13 19:47:17 +00:00
TreeHugger Robot
be49b5bd79 Merge "Grant ACCESS_SHARED_LIBRARIES permission to Shell for testing." into rvc-dev am: e795081a19 am: c32739e700
Change-Id: I738e487d3724ef2f280b1713c1b30649aa4796b0
2020-05-12 20:10:05 +00:00
TreeHugger Robot
c32739e700 Merge "Grant ACCESS_SHARED_LIBRARIES permission to Shell for testing." into rvc-dev am: e795081a19
Change-Id: Ibfef5104a52de83b364a53d20f95c392c8ade115
2020-05-12 20:03:51 +00:00
Eugene Susla
cbb2901ffb Merge "Fix auto revoke installer whitelist APIs" into rvc-dev am: 511c3aa955 am: d867abc731
Change-Id: I0bcf01d9509b6a614a4a7291773d613e03eedbf9
2020-05-12 19:20:53 +00:00
Treehugger Robot
fbd4a6f80a Add day-night-mode permission to Shell.
Without the permission "adb shell cmd uimode night <mode>" doesn't work.
Adding the permission to the AndroidManifest file so the shell command
will work.

Bug: 155584597
Test: run `adb shell cmd uimode night <no|yes|auto>`
Change-Id: Ic444f3351cb130d24a2794284c6bf8709c80712c
(cherry picked from commit a85cc22044)
2020-05-12 15:13:26 +00:00
Treehugger Robot
a85cc22044 Merge "Add day-night-mode permission to Shell." am: 963c11e32d am: dbf9eed8c1 am: 4d79a92078 am: 2c5a6f6c4d am: 8da297826d
Change-Id: Ic444f3351cb130d24a2794284c6bf8709c80712c
2020-05-11 23:50:19 +00:00
Treehugger Robot
4d79a92078 Merge "Add day-night-mode permission to Shell." am: 963c11e32d am: dbf9eed8c1
Change-Id: I5fe4468f78049f9907a92121b7e3661bb9598440
2020-05-11 22:56:39 +00:00
Treehugger Robot
dbf9eed8c1 Merge "Add day-night-mode permission to Shell." am: 963c11e32d
Change-Id: Iad4aba4108aa1d60e470388bfadf2bdc78984324
2020-05-11 22:38:44 +00:00
Treehugger Robot
302bed33d8 Merge "Grant ACCESS_SHARED_LIBRARIES permission to Shell for testing." am: 1b9f4b926c
Change-Id: I663020a8a74a913035cbbd7ceab31cac59871ba7
2020-05-11 22:36:42 +00:00
Treehugger Robot
963c11e32d Merge "Add day-night-mode permission to Shell." 2020-05-11 22:36:27 +00:00