Commit Graph

489 Commits

Author SHA1 Message Date
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
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
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
TreeHugger Robot
9c35f0e8b1 Merge "Import translations. DO NOT MERGE" 2016-08-02 09:50:56 +00: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
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
9f5b2708a5 Import translations. DO NOT MERGE
Change-Id: Ic8c64ffc57402d087a2b1d4a3e33219c439a1bb4
Auto-generated-cl: translation import
2016-07-25 02:27:07 -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
TreeHugger Robot
878bd5103e Merge "Update bugreport dialog to DeviceDefault theme." into nyc-mr1-dev 2016-07-19 02:03:55 +00:00
Andrew Sapperstein
59b5679730 Update bugreport dialog to DeviceDefault theme.
By using DeviceDefault instead of Material, this UI is now
resilient to any platform-level theme changes.

Change-Id: I43ce61b36f4c089ee07f754088abe2dfe6700877
Fixes: 30173174
2016-07-18 17:19:15 -07:00
Wei Liu
9f35541760 Use the Shell app to show the bugreport notification on Wear.
b/30041885

Change-Id: I998aa1606eb12f74a407fbafd9abc11c9454fb66
2016-07-18 13:56:25 -07:00
Felipe Leme
a86a3012ef Close details dialog when bugreport is canceled by user.
BUG: 30158896
Change-Id: I0eab22586f6b431f2abe837088d48a655e03d213
2016-07-18 13:29:46 -07:00
Felipe Leme
520a2ab523 Merge \\"Fixed bugreport share dialog padding.\\" into nyc-mr1-dev am: 699e1bc74b
am: a49813ded6

Change-Id: Icc22b2886b95cabfc677b0735d0383fe60a118ae
2016-07-18 19:00:55 +00:00
Felipe Leme
a49813ded6 Merge \"Fixed bugreport share dialog padding.\" into nyc-mr1-dev
am: 699e1bc74b

Change-Id: Ie571191e8c64569b545040665be5eca7ad35fb4e
2016-07-18 18:53:04 +00:00
Felipe Leme
e26cc5d5f3 Fixed bugreport share dialog padding.
Change-Id: Id7848770c6410eda7b6272acb981ef5c3afbeaec
Fixes: 30055508
2016-07-12 17:00:05 -07:00
Bill Yi
189f92784f Import translations. DO NOT MERGE
Change-Id: Id25c06e957a7cdf2bad94d3de593914fd3f3f3db
Auto-generated-cl: translation import
2016-07-11 21:01:45 -07:00
Bill Yi
d1241e5141 Import translations. DO NOT MERGE
Change-Id: I0cb05a13abeb7a9a24d00422126bb55cea23c6d8
Auto-generated-cl: translation import
2016-07-05 12:31:25 -07:00
Sudheer Shanka
2f04769131 Merge \\\"Reduce shell power over user management.\\\" into nyc-dev am: 1b4124fc95 am: 0979d718c5
am: c1befac360

Change-Id: Ia608e9ce2a2c842971c5424fea8823069a5f6449
2016-06-10 21:59:26 +00:00
Sudheer Shanka
0979d718c5 Merge \"Reduce shell power over user management.\" into nyc-dev
am: 1b4124fc95

Change-Id: I5535f68ff670881dfa10bac6b0628d3647be97bd
2016-06-10 21:39:33 +00:00
Sudheer Shanka
a2ef5c89c0 Merge \"Reduce shell power over user management.\" into nyc-dev
am: 1b4124fc95

Change-Id: Ia54f3ad9a8594e101407db6b52b378ae8bec72a2
2016-06-10 21:39:22 +00:00
Sudheer Shanka
f5cea03eb0 Reduce shell power over user management.
Remove MANAGE_USERS permission from shell and whitelist it for
some specific functionality.

Bug: 29189712
Change-Id: Ifb37448c091af91991964511e3efb1bb4dea1ff3
2016-06-10 13:05:18 -07:00
Ben Lin
6d80e074ec Merge "Register change Uri and notify changes in bugreportServices." into nyc-dev
am: 5d5ddfa80e

* commit '5d5ddfa80ecb482e34ed4bfebae2c7308269a1c4':
  Register change Uri and notify changes in bugreportServices.

Change-Id: I02eadb5e4c4b7735bf3f1ac142e75a513f12ca85
2016-05-24 18:01:34 +00:00
Ben Lin
9c14d14f43 Merge "Register change Uri and notify changes in bugreportServices." into nyc-dev
am: 5d5ddfa80e

* commit '5d5ddfa80ecb482e34ed4bfebae2c7308269a1c4':
  Register change Uri and notify changes in bugreportServices.

Change-Id: Ic118dd61f0471f61af3fe5fbace8a0dbae258484
2016-05-24 18:01:16 +00:00
Ben Lin
c6905cfb11 Register change Uri and notify changes in bugreportServices.
Bug: 28767380
Change-Id: Ia4d1f5a2e44881d300f2869c628d4990406caf40
(cherry picked from commit 6c9ff513c6d7d3de7ab8920d88111c2b1dc1bb1f)
(cherry picked from commit 93fafd67a6)
2016-05-23 20:07:04 +00:00
Ben Lin
93fafd67a6 Register change Uri and notify changes in bugreportServices.
Bug: 28767380
Change-Id: Ia4d1f5a2e44881d300f2869c628d4990406caf40
(cherry picked from commit 6c9ff513c6d7d3de7ab8920d88111c2b1dc1bb1f)
2016-05-18 23:49:11 +00:00
Amith Yamasani
43748bc9a8 Merge "Allow Shell to change component enabled state" into nyc-dev am: 19b34eccfe am: 0250ae2c1b
am: 77069b959b

* commit '77069b959b44bceb0eef44ca2e850765ef1f81ae':
  Allow Shell to change component enabled state

Change-Id: Id16ceadd2843b943ad6d38a0334b97589c60d2b2
2016-05-17 00:50:03 +00:00
Amith Yamasani
77069b959b Merge "Allow Shell to change component enabled state" into nyc-dev am: 19b34eccfe
am: 0250ae2c1b

* commit '0250ae2c1b1b3b75a9b1f3c995be031efef50bcf':
  Allow Shell to change component enabled state

Change-Id: I2a29c8e15ba81a9aa5c3950c8aeccd3d4ff662cc
2016-05-17 00:42:43 +00:00
Amith Yamasani
9db4384118 Merge "Allow Shell to change component enabled state" into nyc-dev
am: 19b34eccfe

* commit '19b34eccfee9d14e6888c4813cc369bd4b3a7e81':
  Allow Shell to change component enabled state

Change-Id: I964e0aebb669adf368524454e2ca681784e8e67b
2016-05-17 00:34:30 +00:00
Amith Yamasani
0250ae2c1b Merge "Allow Shell to change component enabled state" into nyc-dev
am: 19b34eccfe

* commit '19b34eccfee9d14e6888c4813cc369bd4b3a7e81':
  Allow Shell to change component enabled state

Change-Id: I8b472bf3149b1e721ea90a8a6fed12549e3f1510
2016-05-17 00:34:16 +00:00
Amith Yamasani
bf12565276 Allow Shell to change component enabled state
But make sure that we don't allow Shell or other apps
to disable an active profile or device owner.

Also limit exactly what states Shell can switch apps
between, similar to Settings UI.

This is required for some CTS tests

Bug: 27924655
Change-Id: I958f0d1de7f0bc1f5a0cbf853d57dfdeb2f9ad59
2016-05-16 15:17:50 -07:00
Steve McKay
cb3b573834 Merge "Add archive support to Bug report docs provider." into nyc-dev am: dbe2dbae99 am: 554faa0897
am: d13472bc4d

* commit 'd13472bc4dfd4c01e01e79cebc5d5e3a72b17d00':
  Add archive support to Bug report docs provider.

Change-Id: Ib4db2f2176a6831d321c34034bf7764be62c9b77
2016-05-02 20:39:07 +00:00
Steve McKay
554faa0897 Merge "Add archive support to Bug report docs provider." into nyc-dev
am: dbe2dbae99

* commit 'dbe2dbae994f787ecffda5f81764b3daf7c45ba0':
  Add archive support to Bug report docs provider.

Change-Id: Iddec027b875d6a4dc3d8a5271fe78ad7e3e8bc86
2016-05-02 20:29:46 +00:00
Steve McKay
f176a29d8f Merge "Add archive support to Bug report docs provider." into nyc-dev
am: dbe2dbae99

* commit 'dbe2dbae994f787ecffda5f81764b3daf7c45ba0':
  Add archive support to Bug report docs provider.

Change-Id: I19f0e9b5982180b381b375ee79309e23d949c927
2016-05-02 20:29:42 +00:00