350 Commits

Author SHA1 Message Date
Felipe Leme
6dd4e88210 Fixed year on copyright notice.
BUG: 30429392
Change-Id: If6477ccde5820dd118ad92bb5d4f74d938cf0d83
2016-08-03 10:05:54 -07: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
Bill Yi
f0f669876e Import translations. DO NOT MERGE
Change-Id: Ie3bc5cbcb9b7c6fad8aee616dc8b75e97353c834
Auto-generated-cl: translation import
2016-08-01 23:55:40 -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
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
4e6749a30e Import translations. DO NOT MERGE
Change-Id: I2e524908704b38120b77928886da6eda38ede052
Auto-generated-cl: translation import
2016-07-20 14:56:13 -07: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
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
e26cc5d5f3 Fixed bugreport share dialog padding.
Change-Id: Id7848770c6410eda7b6272acb981ef5c3afbeaec
Fixes: 30055508
2016-07-12 17:00:05 -07: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
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 93fafd67a6127a35ba9b7a0f7de3a0b54309d4c2)
2016-05-23 20:07:04 +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
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
Steve McKay
53a528bb4f Add archive support to Bug report docs provider.
Bug: 28386918
Change-Id: I2270324be3f020d73a68151002f885f70eb1449c
2016-04-27 16:46:16 -07:00
Bill Yi
d983af0417 Import translations. DO NOT MERGE
Change-Id: I4020df44a4ff061fd5a9d560a1340aee6f05351f
Auto-generated-cl: translation import
2016-04-27 06:13:08 -07:00
Bill Yi
8f32d05d5c Import translations. DO NOT MERGE
Change-Id: Ibb4e5316af0f8a302487f3b737efef8b99f0fe9f
Auto-generated-cl: translation import
2016-04-27 06:10:42 -07:00
Felipe Leme
a6db844cef Merge "Don\'t opt-out of warning dialog by default on user builds." into nyc-dev
am: 34510eb

* commit '34510eb2933b98f0c8c73f9a7be5eae911a14210':
  Don't opt-out of warning dialog by default on user builds.

Change-Id: I4cb37a050cbed326ca78e9d3ace672819059e825
2016-04-26 17:52:11 +00:00
Felipe Leme
af096719c0 Don't opt-out of warning dialog by default on user builds.
BUG: 28341946
Change-Id: I9ce6bf52a02a14055d4ded41aac50c79abdb4ee9
2016-04-25 13:41:28 -07:00
Bill Yi
47314dde8e Import translations. DO NOT MERGE
Change-Id: I052034274afbe75c7898cd0360ea627abed0dd19
Auto-generated-cl: translation import
2016-04-25 04:58:49 -07:00
Felipe Leme
45a905bbaf Show a toast when details cannot be added to zip file.
BUG: 28291423
Change-Id: I7febf66ef23f38b41fb1909324ee2260444518f6
2016-04-22 15:23:27 -07:00
Felipe Leme
69c53e65b9 Set BugreportProgressService to run on foreground.
BugreportProgressService do not persist the user-provided
information (like details and screenshot paths), so if it's killed by
the framework, that info is lost.

Running it as foreground mitigates the changes of it being killed.

BUG: 27431998
BUG: 28291423
Change-Id: I2f58507beb38309628f2f19d3f7f950d07eca16f
2016-04-20 14:43:37 -07:00
TreeHugger Robot
0304688882 Merge "Only try to add details to zip once." into nyc-dev 2016-04-20 19:03:02 +00:00
Felipe Leme
51a4ede593 Only try to add details to zip once.
When the user enters details (title or description) to the bugreport,
Shell tries to add a title.txt (and/or description.txt) to the zip and
uses 2 instance variables (addedDetailsToZip and addingDetailsToZip) to
control its state.

The problem with the current approach is that if there is a failure
adding the entries (for example, if the entries already exist), these
variables are not updated and hence when the user taps Share, it will
try to add the entries again, which most likely would fail.

BUG: 28291423
Change-Id: I56a71256be4f8de15f8126b815334277319e8e8a
2016-04-20 10:25:12 -07:00
Felipe Leme
65a9c6760e Show "Android System" instead of "Shell" on notifications.
BUG: 26517701
Change-Id: If2543b8db0fdd913365df6f69cf26146d32d4b15
2016-04-19 09:49:18 -07:00
TreeHugger Robot
3f8f7f4c89 Merge "Remove initial screenshot on interactive bugreport." into nyc-dev 2016-04-18 20:32:47 +00:00
Felipe Leme
079f89614c Remove initial screenshot on interactive bugreport.
One of the changes in the 'interactive bugreport' bugreport workflow
introduced on N is that the initial screenshot was taken right away (by
Shell, not dumpstate).

Unfortunately, such initial screenshot is often delayed when the system
is overload. Also, if the user is not interested in a screenshot, it
would be adding more load on the system unnecessarily.

Given these issues, and the fact that the user can still easily take an
initial screenhsot by selecting the proper notification action, the
initial screenshot is being removed.

BUG: 28167977

Change-Id: I2cf6616ce3124102b62ec9a36dc5a0ce6455a909
2016-04-18 12:06:58 -07:00
Baligh Uddin
14b1dfbf36 Merge "Import translations. DO NOT MERGE" into nyc-dev 2016-04-15 22:23:44 +00:00
Felipe Leme
3fb3d88d2b Fix first-time usage.
When tests run for the first time, the list of activities that can
handle ACTION_SEND_MULTIPLE might not be scrollable, which was cause the
scrollForward() method to fail.

BUG: 27431998
Change-Id: I5992bc9fec6291c74c4af7887ee66eb4f96e87c0
2016-04-15 12:04:46 -07:00
Baligh Uddin
717f3260d0 Import translations. DO NOT MERGE
Change-Id: Iba257ea26b4756c7553ec4e1343fea739123ca26
Auto-generated-cl: translation import
2016-04-14 19:14:03 -07:00
TreeHugger Robot
7fd1cbd49d Merge "Revert warning logic so it has a "don't show again" message." into nyc-dev 2016-04-13 17:56:34 +00:00
Felipe Leme
fcca68dfb1 Revert warning logic so it has a "don't show again" message.
BUG: 28140003

Change-Id: I93e7b1494a0f4c5ca080fbe9dd94dc2168092ffa
2016-04-13 09:36:24 -07:00
Felipe Leme
a43d139359 Removed redundant notification title.
When a bugreport is finished with a pending notification, it already
display a subtext explaining the situation - not only the extra title is
redundant, but it's too large.

BUG: 27583025
Change-Id: I8d8171faf7b8b86b34f6d860555839918be10550
2016-04-12 17:28:06 -07:00
Felipe Leme
e1b1ce77da Merge "Minor improvements useful for debugging." into nyc-dev 2016-04-12 17:56:01 +00:00
Felipe Leme
9ca5e56390 "Temporarily" removed progress check.
The code that asserts the right progress is displayed was based on the
percentage text displayed in the system notification, but such text is
gone.

Since UIObject doesn't easily expose the underlying ProgressBar, such
checks were temporarily disabled.

BUG: 28114251
Change-Id: Idb64fe97cf84f5f73e08e293b8fd0384bc8b70d6
2016-04-11 10:31:55 -07:00
Selim Cinek
bc3b0458bf Fixed the contentinfo api usage in the bugreport
Removed the percentage shown in the header and
migrated the name to the subtext as contentinfo
was deprecated.

Change-Id: Ifd79a67cad8958049bd29b8eb4c9bcbb4822688b
2016-04-06 12:18:53 -07:00
Felipe Leme
abeab723d1 Minor improvements useful for debugging.
- Better dump of received intents by displayed the relevant extras.
- Gracefully handles the case where the bugreport file URI is invalid
  during development.

BUG: 27996121
Change-Id: I97a48d1e9641142a43c66c1dded2f7f322dc66aa
2016-04-04 11:39:24 -07:00
Alan Viverette
ae4908f41c Remove DayNight theme
Bug: 21854466
Change-Id: I739872112d0ae457d0d4620f9222206072d54b4b
2016-03-31 16:18:27 -04:00
Aga Wronska
774cc932fc Add menu option to show/hide internal storage.
This reverts commit 7c4395804e450533afb553ab992c47f737da8a9b.

Bug: 27683276
Change-Id: Id1a310b57ab7fa3c8c14b464786473f211eaf41f
2016-03-30 18:23:10 -07:00
Felipe Leme
f8cf395636 Removed FLAG_ADVANCED.
On M, internal storage such as bugreport files were only shown when user
selected the "Show internal storage", but such UI has changed on N.

BUG: 27862860
Change-Id: I1edf086a9f9345303595ee952e4646764709d36d
2016-03-28 13:02:04 -07:00
Felipe Leme
1ae5a69bc4 Proper handle of duplicated BUGREPORT_STARTED.
When Shell receives a BUGREPORT_STARTED intent for a process it's
already monitoring, it should completely ignore it, but current it's
taking an extra screenshot.

BUG: 27804637
Change-Id: I733cacfee5e9c82646a3295b50c3856b6e0352c3
2016-03-23 14:57:17 -07:00
Felipe Leme
9545d8e337 Merge "Changed logic when dumpstate's max progress increases." into nyc-dev 2016-03-22 17:21:20 +00:00
Felipe Leme
3fc44b9a62 Changed logic when dumpstate's max progress increases.
When dumpstate starts, it estimates its maximum duration and sends it
through an extra on BUGREPORT_STARTED; as it progress, it sets a system
property with its current progress and if the progress value overflows
the estimated max, it increases the max as well.

Shell uses the max/progress to display the progress % in the
system notification, and need to handle the scenario where the max
changes. The initial implementation would recalculate the progress, with
makes it swing back and forth as dumpstate increases the max.

This CL changes the Shell logic so the progress never go back, just
forward. The drawback of this approach is that if dumpstate
underestimate the maximum, the progress might get stuck in a high
value (99%) early on, but such issue will be addressed in the long
term by tuning the estimated max value.

BUG: 26354314
Change-Id: I3a5416acaffaaa43fd28d2f1f8ec8ea12aa0d91e
2016-03-22 10:05:30 -07:00
Aga Wronska
1719b3555d Add config flag to show/hide internal storage.
Hide internal storage by default.

Revert "Always show intern storage."

This reverts commit 7c4395804e450533afb553ab992c47f737da8a9b.

Bug: 27683276

Change-Id: I04ea8b9a307babcea003f9bec200d41265a42c7f
2016-03-21 17:33:27 -07:00
Geoff Mendal
feb85ef1a3 Import translations. DO NOT MERGE
Change-Id: Ic015ff842053551bbe10b0eb420137cd045a23ef
Auto-generated-cl: translation import
2016-03-19 14:04:50 +05:30
Jeff Sharkey
8a372a0a28 Refactoring FBE APIs based on council feedback.
Mostly consists of removing the word "encryption" from most APIs,
since we can't actually make promises about the data being encrypted.

Bug: 27531029
Change-Id: Iace9d7c4e64716abf86ed11847c40f3947e1d625
2016-03-17 14:49:08 -06:00