514 Commits

Author SHA1 Message Date
Felipe Leme
1ac5441f57 Collapses status bar on teardown so it does not affect other tests.
BUG: 30639703

Test: mmm -j32 frameworks/base/packages/Shell && adb install -r -g ${ANDROID_PRODUCT_OUT}/data/app/ShellTests/ShellTests.apk && adb shell am instrument -e class com.android.shell.BugreportReceiverTest -w com.android.shell.tests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I2635439ac0c033d1ad6b4ba545b8d751f5576b72
2016-10-11 09:26:02 -07:00
Tomasz Mikolajewski
219fa882d1 Remove support for archives from External and Bugreport providers.
Change-Id: Ia281fe05a0a6a5dd6ff1b66d7197312cf4391793
Test: Compiles.
Bug: 31783726
2016-09-28 11:32:59 +09:00
TreeHugger Robot
3fbaf383d3 Merge "Use a system property to call different bugreport types." 2016-09-26 18:33:17 +00:00
Wei Liu
edc3b4faf5 Allow shell to acquire wakelock. am: 6e500010b1
am: 973a07c87e

Change-Id: I20881eddb5c51835aea3eb78bee80f06fb2cb205
2016-09-22 23:02:31 +00:00
Wei Liu
973a07c87e Allow shell to acquire wakelock.
am: 6e500010b1

Change-Id: I8331a2a2830551a87953edf040c1ed432e0bfd09
2016-09-22 19:01:42 +00:00
Felipe Leme
1a83dede85 Use a system property to call different bugreport types.
Currently, we define 4 hardcoded init services to launch dumpstate with
different command-line options (since dumpstate must be launched by
root):

- bugreport
- bugreportplus
- bugreportwear
- bugreportremote

This approach does not scale well; a better option is to have just one
service, and let the framework pass the extra arguments through a system
property.

BUG: 31649719

Test: manual
Change-Id: I1d627a73bfbdd9930c605fa4468c15282a23bb65
2016-09-21 11:50:44 -07:00
Wei Liu
6e500010b1 Allow shell to acquire wakelock.
b/30832947

Change-Id: I348ab5642ca625b4700ec63f72414729d574da5e
2016-09-13 16:28:45 -07:00
Ben Lin
663e0e97d5 Push delete notification when Bug reports are deleted. am: 86805aa3af am: 64146c5d24
am: b01be62d58

Change-Id: I8e1b6dc42e44307feef1ba912a3465c2d25594e1
2016-08-31 04:37:16 +00:00
Allen Hair
63180a0754 Configure code coverage filters. am: 02fd609460 am: 15b70213a4
am: 8b931e08d0

Change-Id: If94db4d01eb5ff4a9f463200d529b0054899bcd5
2016-08-30 17:13:01 +00:00
Ben Lin
b01be62d58 Push delete notification when Bug reports are deleted. am: 86805aa3af
am: 64146c5d24

Change-Id: I6c9837068616943b72223556842d6570adc4c90b
2016-08-30 02:24:20 +00:00
Ben Lin
64146c5d24 Push delete notification when Bug reports are deleted.
am: 86805aa3af

Change-Id: I1bd1544f5a3848077cb98faf184e99a9c22f1771
2016-08-29 23:01:30 +00:00
Ben Lin
86805aa3af Push delete notification when Bug reports are deleted.
Bug: 28768706
Change-Id: I6d3e91fe7d12be44918f97cef12c99d936401270
2016-08-29 14:08:32 -07:00
Allen Hair
8b931e08d0 Configure code coverage filters. am: 02fd609460
am: 15b70213a4

Change-Id: Idf84ee3cf08af547ec7564c5e663b7d7fed0c97d
2016-08-26 17:41:11 +00:00
Allen Hair
15b70213a4 Configure code coverage filters.
am: 02fd609460

Change-Id: Iae831e68c195abcfa52528ac8609fbbee0be03df
2016-08-26 17:33:35 +00:00
Allen Hair
02fd609460 Configure code coverage filters.
Bug: 28269038
Change-Id: If4dfb769d543e70faea7200dc1da15c50a83270f
2016-08-25 17:28:03 -07:00
Felipe Leme
47ec8bebb6 Migrate BugreportReceiverTest to JUnit 4.
BUG: 30839080

Change-Id: I4af0d9ba26eb07dd78f1eef26c4edb7d3e03f582
2016-08-12 16:47:44 -07:00
Bill Yi
63de06d7f4 Import translations. DO NOT MERGE
Change-Id: I6a36f28639fa2e775a5d17dcaf24a9293cb64457
Auto-generated-cl: translation import
2016-08-10 14:22:41 -07:00
TreeHugger Robot
1efa7cbc8d Merge "Cancel dialog before stopping service." 2016-08-09 16:16:18 +00:00
Felipe Leme
034bcf425a Cancel dialog before stopping service.
Fixes: 30746086

Change-Id: Iea8a197a2785259dd80aa8130d79ded484562826
2016-08-08 18:07:44 -07:00
Felipe Leme
2c0f3a372c Kill service before trying to cancel notifications.
BUG: 30639703
Change-Id: Ib564371797e31e1dde37416efdb89641fb3024b1
2016-08-08 17:16:46 -07:00
Bill Yi
2456a4eb96 Import translations. DO NOT MERGE
Change-Id: If45c3e8eec74f0d620cbe19424bfbe619231a84b
Auto-generated-cl: translation import
2016-08-08 03:21:56 -07:00
Felipe Leme
9fd057775d Fixed year on copyright notice. am: 6dd4e88210
am: 3a41597e35

Change-Id: I2b097fab798e834b2f05cdf77a2f9848a1917205
2016-08-04 20:04:42 +00:00
Felipe Leme
05c25c8045 Increases bugreport_intent_chooser_title to 35 chars.
Change-Id: Iaef8d4ad502bd4b6cc50dc10506d0de1371a8ad9
Fixes: 30653606
2016-08-04 11:15:44 -07:00
TreeHugger Robot
5f8229d352 Merge "Import translations. DO NOT MERGE" 2016-08-04 09:18:35 +00:00
Bill Yi
c382c14ccf Import translations. DO NOT MERGE
Change-Id: Id7acb5e899d3a8c85048a483637266ab07ebb095
Auto-generated-cl: translation import
2016-08-03 21:59:35 -07:00
TreeHugger Robot
5f48b026f0 Merge "Enable name text field when re-using the details dialog." 2016-08-04 02:15:53 +00:00
Felipe Leme
da1fbdd6f2 Enable name text field when re-using the details dialog.
Change-Id: I10671fc00ea918da901f36f122641e646057888c
Fixes: 30642226
2016-08-03 17:45:43 -07:00
TreeHugger Robot
1b5eb1e3cd Merge "Fixed BugreportReceiverTest failures:" 2016-08-04 00:31:27 +00:00
Felipe Leme
ca5002f6bd Fixed BugreportReceiverTest failures:
- testProgress_changeJustDetailsTouchingNotification was failing because
  the notification mechanism changed and now provides a way to expand
  and collapse the actions bar, and the test was collapsing it instead
  of opening the details dialog. It was fixed by tapping the
  notification content instead of the notification title.
- Similarly, openProgressNotification() was refactored to use the
  bugreport name instead of id.
- Uses getObject() (instead of getVisibleObject()) to get the activity
  from the intent chooser.
- Removed the redundant call to back to dismiss the keyboard, which was
  causing some tests to fail due to an accessibility bug.
- Retry a few times in case the bugreport name system property assertion
  fails, since the property is set by a background thread.
- Improved how notifications are canceled.
- Created a sleep() helper.

Besides the test case improvements, it also removed a redundant call to
setCancelable() in the main code.

BUG: 30641229
BUG: 30639703

Change-Id: Icd79fada22d0b8e4be034068c3e9143ef0134eed
2016-08-03 16:09:35 -07:00
Felipe Leme
6dd4e88210 Fixed year on copyright notice.
BUG: 30429392
Change-Id: If6477ccde5820dd118ad92bb5d4f74d938cf0d83
2016-08-03 10:05:54 -07:00
Felipe Leme
cec3844b6d Removed unused imports and fixed copyright notice.
BUG: 30429392
Change-Id: I3c849e507437ef733b04954af68bd47d00dc5165
2016-08-03 10:03:30 -07:00
Felipe Leme
b4027a01e3 Use SurfaceControl.screenshot() instead of screencap for screenshots.
*** cherrypick of 8cfc23f ***

Change-Id: I5a9e7bbc5f3ae176ac5ae7209a133526992e92d4
Fixes: 30429392
2016-08-02 17:33:48 -07:00
Felipe Leme
8cfc23f434 Use SurfaceControl.screenshot() instead of screencap for screenshots. am: aba9743643
am: ce61b5715d

Change-Id: I743efe4fc79189b2377a7a5dc58f7214e737998f
2016-08-02 18:50:43 +00:00
Felipe Leme
ce61b5715d Use SurfaceControl.screenshot() instead of screencap for screenshots.
am: aba9743643

Change-Id: Ie6761383247cd90d586b0b29866f49c8a7787282
2016-08-02 18:37:48 +00:00
TreeHugger Robot
f7ac45a33b Merge "Use SurfaceControl.screenshot() instead of screencap for screenshots." into nyc-mr1-dev 2016-08-02 18:29:46 +00:00
TreeHugger Robot
9c35f0e8b1 Merge "Import translations. DO NOT MERGE" 2016-08-02 09:50:56 +00:00
Bill Yi
f0f669876e Import translations. DO NOT MERGE
Change-Id: Ie3bc5cbcb9b7c6fad8aee616dc8b75e97353c834
Auto-generated-cl: translation import
2016-08-01 23:55:40 -07:00
Bill Yi
ae101611bb Import translations. DO NOT MERGE
Change-Id: I53e179755356aba8c53b2602bf73f7860de8b08f
Auto-generated-cl: translation import
2016-08-01 23:08:14 -07:00
Bill Yi
8806c6d033 Import translations. DO NOT MERGE
Auto-generated-cl: translation import

Bug: 30476613
Change-Id: I7e23bac276a7029a1f35b3b98e238d46e19e50fe
2016-08-01 13:06:59 -07:00
Felipe Leme
aba9743643 Use SurfaceControl.screenshot() instead of screencap for screenshots.
Change-Id: I5a9e7bbc5f3ae176ac5ae7209a133526992e92d4
Fixes: 30429392
2016-07-28 17:31:45 -07:00
Felipe Leme
91699af8c6 Always use chooser for Share Bug Report intent.
When using startActivity(intent), the platform allows the user to pick
the same activity for the intent, which can be a problem for sharing bug
reports when the device has personal and work profiles.

Change-Id: I1fd66905feb5d894307bbe5656c2aec705a59ab7
Fixes: 22115530
2016-07-28 15:29:17 -07:00
Bill Yi
9d1117531d Import translations. DO NOT MERGE
Change-Id: I27c1e473ca98bdc216d7bdf8d8d2f1838fa1c728
Auto-generated-cl: translation import
2016-07-25 04:23:39 -07:00
Bill Yi
9f5b2708a5 Import translations. DO NOT MERGE
Change-Id: Ic8c64ffc57402d087a2b1d4a3e33219c439a1bb4
Auto-generated-cl: translation import
2016-07-25 02:27:07 -07:00
Bill Yi
4e6749a30e Import translations. DO NOT MERGE
Change-Id: I2e524908704b38120b77928886da6eda38ede052
Auto-generated-cl: translation import
2016-07-20 14:56:13 -07:00
Wei Liu
213b94ee1a Merge \\"Use the Shell app to show the bugreport notification on Wear.\\" into nyc-mr1-dev am: 1dfbf794b5
am: bc3c068189

Change-Id: I4555c232c5fc9d10a9b9d9cd0d64ac80720e30e9
2016-07-19 17:29:50 +00:00
Wei Liu
bc3c068189 Merge \"Use the Shell app to show the bugreport notification on Wear.\" into nyc-mr1-dev
am: 1dfbf794b5

Change-Id: Ibb3310be1330d238059e4f70aa26763731b19a30
2016-07-19 17:22:30 +00:00
Wei Liu
1dfbf794b5 Merge "Use the Shell app to show the bugreport notification on Wear." into nyc-mr1-dev 2016-07-19 17:16:23 +00:00
TreeHugger Robot
0897f32e20 Merge "Close details dialog when bugreport is canceled by user." 2016-07-19 17:14:52 +00:00
Andrew Sapperstein
dfdf82df19 Merge \\"Update bugreport dialog to DeviceDefault theme.\\" into nyc-mr1-dev am: 878bd5103e
am: b88c3801ea

Change-Id: Ice3e4ed8a3188d62f9f92b034ca07dcc693c22b8
2016-07-19 02:16:29 +00:00
Andrew Sapperstein
b88c3801ea Merge \"Update bugreport dialog to DeviceDefault theme.\" into nyc-mr1-dev
am: 878bd5103e

Change-Id: I918da483da287b36f49b103a5823f5ca81b2f4c0
2016-07-19 02:11:05 +00:00