102 Commits

Author SHA1 Message Date
Geoff Mendal
878b249c90 Import translations. DO NOT MERGE
Change-Id: If833e6af6b9206411e02db9c081d410c4893d73e
Auto-generated-cl: translation import
2016-02-17 07:14:57 -08:00
Geoff Mendal
68e221ec0c Import translations. DO NOT MERGE
Change-Id: I5450d165959f42088148bf3aa9789d73137475bc
Auto-generated-cl: translation import
2016-02-15 07:19:37 -08:00
Geoff Mendal
b817910b14 Import translations. DO NOT MERGE
Change-Id: Iba4fcac2427bf5213b78626aefdbabf17131e652
Auto-generated-cl: translation import
2016-02-10 07:23:03 -08:00
Felipe Leme
000b84451d Merge "Add pid on main bugreport notifications." into nyc-dev 2016-02-08 23:25:39 +00:00
Felipe Leme
ed330c7f7d Merge "Replaced 'touch' by 'tap'." into nyc-dev 2016-02-08 18:10:18 +00:00
Felipe Leme
8067aed5c7 Replaced 'touch' by 'tap'.
BUG: 26884266
Change-Id: Ic3d7be8a10b768101b161644e46c92cd872621db
2016-02-08 09:42:52 -08:00
Felipe Leme
e86b63bd17 Add pid on main bugreport notifications.
Showing the pid is useful in many cases, like when one bug report is finished
and another one is in progress.

BUG: 26906985
Change-Id: Ib8ae462c85246b99234f8dac63edb608d1eafeb0
2016-02-08 09:40:56 -08:00
Geoff Mendal
b727d99a5e Import translations. DO NOT MERGE
Change-Id: Ic6f472559385699038b2d8f5e63d2ed0d5752c4d
Auto-generated-cl: translation import
2016-02-08 22:52:34 +05:30
Geoff Mendal
978a766274 Import translations. DO NOT MERGE
Change-Id: I8f61c185a1b79c10ec8e437401d82a44d28c4796
Auto-generated-cl: translation import
2016-01-27 05:41:07 -08:00
Geoff Mendal
861a25200a Import translations. DO NOT MERGE
Change-Id: Ic795f08684fc10e54499e25b31f4a3db3cbec981
Auto-generated-cl: translation import
2016-01-25 05:43:23 -08:00
Felipe Leme
beda539051 Merge "Updates notification while bugreport zip is being changed." 2016-01-22 19:46:38 +00:00
Felipe Leme
2758d5d939 Updates notification while bugreport zip is being changed.
BUG: 26616935

Change-Id: I3bcbaf30621c23541f2c568355948b6faa578e06
2016-01-20 10:12:03 -08:00
Geoff Mendal
6f2fa50463 Import translations. DO NOT MERGE
Change-Id: Iaa55969cfb1d5ac3860e960ab7699cee38309259
Auto-generated-cl: translation import
2016-01-20 05:50:25 -08:00
Felipe Leme
97084b4bda Merge "Updated bugreport info strings to be consistent with its meaning." 2016-01-20 02:09:02 +00:00
Felipe Leme
da163bf56e Updated bugreport info strings to be consistent with its meaning.
Also removed DO NOT TRANSLATE from new bugreport strings whose phrasing
have been confirmed.

Change-Id: Ic0eafb6c007acd63f1d11f7a5043259533189df0
2016-01-19 17:41:44 -08:00
Geoff Mendal
78da55e200 Import translations. DO NOT MERGE
Change-Id: I577ab7113b9ad02f7556375115e7788a808efe24
Auto-generated-cl: translation import
2016-01-18 05:53:16 -08:00
Geoff Mendal
f395bfd9f1 Import translations. DO NOT MERGE
Change-Id: I279881c50e7f1010a52f83b1ecb23477b8a8f44c
Auto-generated-cl: translation import
2015-12-28 05:48:01 -08:00
Geoff Mendal
7da42323ca Import translations. DO NOT MERGE
Change-Id: I7cf42c018cfec707dc5fc1e55716de2ed7f1cacf
Auto-generated-cl: translation import
2015-12-23 05:40:31 -08:00
Felipe Leme
e3daf13a49 Merge "Handle bugreport screenshots on Shell." 2015-12-21 17:58:22 +00:00
Felipe Leme
d1e0f12979 Handle bugreport screenshots on Shell.
Currently, the bugreport screenshots are taken by dumpstate and passed to
Shell as a path on BUGREPORT_RECEIVED; this change not only delegates the
screenshot taking to Shell, but also allows user to take more
screenshots while the bugreport is being generated.

As a result of this change, the final ACTION_SEND_MULTIPLE intent might
contain multiple screenshot attachments, all of them named
"screenshot-PREFIX-NUMBER.png", where PREFIX is the bugreport
name (either initial date provided by dumpstate or a name entered by the
user) and NUMBER is the sequential number of the screenshot as taken by
the user.

The screenshot is taken using screencap, which not only is simpler than
using Framework APIs, but also faster and less intrusive. The only
drawback is that it might fail if an OEM is not providing screencap; if
that happens in the field, we'll need to add fallback option to do it
using such APIs.

Prior to this change, all work done on BugreportProgressService was
executed in one single thread (through the ServiceHandler class) but the
code was guarded by unnecessary synchronization. Now there is another
thread (ScreenshotHandler) that will be used just for taking the
screenshot (so it doesn't handle the main thread). Despite the addition
of a new thread, the code was simplified to remove most synchronization
locks, excepted for the areas touched by both threads.

Once this change is submitted, the bugreport service will be changed so
it does not ask dumpstate to take a screenshot.

BUG: 26274653
Change-Id: I1df883e3c0ca6e3e3cad2522a6a99585f71abb75
2015-12-21 08:53:00 -08:00
Geoff Mendal
ff51290be5 Import translations. DO NOT MERGE
Change-Id: Iffacfe8c3bebd254f8fbddd71c2c3eab85d1628a
Auto-generated-cl: translation import
2015-12-21 05:45:54 -08:00
Felipe Leme
b1a523b458 Merge "Allows users to add details about a bugreport in progress." 2015-12-16 19:39:11 +00:00
Felipe Leme
bc73ffc06f Allows users to add details about a bugreport in progress.
The "bugreport in progress" notification now have a "DETAILS" button
that when clicked opens a dialog window displaying the following fields:

  - Name: short name for the bugreport, will be used as part of the
    final files (and by default is the timestamp sent by dumpstate)
  - Title: a 1-line title for the bugreport, will be used as the subject
    in the final message.
  - Description: a detailed description for the bug.

The main advantage of such dialog is that it allows users to enter more
info about a bugreport while it's being generated, rather then when the
bugreport is finished (since of the user doesn't remember what the
context was when the problem happened).

BUG: 25794470
BUG: 10676443
Change-Id: I0d1dba2a94ad989e541415a2a59475619a2e3d13
2015-12-16 11:36:04 -08:00
Geoff Mendal
6839593db5 Import translations. DO NOT MERGE
Change-Id: I310f81e9ec34340edf42d9f5c0c6161b75b861a8
Auto-generated-cl: translation import
2015-12-16 05:51:29 -08:00
Geoff Mendal
ed22ec9b5b Import translations. DO NOT MERGE
Change-Id: Id475f3e48918972cc697cf3340212b92d6b2ab0b
Auto-generated-cl: translation import
2015-12-11 18:52:14 -08:00
Geoff Mendal
7e050948bf Import translations. DO NOT MERGE
Change-Id: I461b9fb136ac4ccb6ae9fb655a06da057c7fdca0
Auto-generated-cl: translation import
2015-12-09 05:40:42 -08:00
Geoff Mendal
6c7a00208e Import translations. DO NOT MERGE
Change-Id: Ia3f58d3662cffb305e2e5d41f497595e5e57e2f6
Auto-generated-cl: translation import
2015-12-07 05:39:02 -08:00
Felipe Leme
5662dd8379 Merge "Refactoring: pulled ServiceHandler methods to its parent class." 2015-12-04 22:14:05 +00:00
Felipe Leme
923afa9fe1 Refactoring: pulled ServiceHandler methods to its parent class.
Now ServiceHandler only have 2 methods:

- handleMessage(): part of its interface.
- poll(): delegates work to parent, but sends a delayed message
  so it keeps polling.

Also changed hardcoded "N/A" to a resource.

BUG: 25794470
Change-Id: I486fff46c1532685bfd6f5903349d14e55059219
2015-12-04 14:05:17 -08:00
Felipe Leme
d57dc996f5 Improved phrasing for "in progress" message.
BUG: 25948539
Change-Id: Ie746a12207da337ec26e85dfbbd4188aa751c20d
2015-12-03 17:42:31 -08:00
Geoff Mendal
ce890c325c Import translations. DO NOT MERGE
Change-Id: Icead64fbc942b39b292289d3054845eefe3170b8
Auto-generated-cl: translation import
2015-12-02 05:37:33 -08:00
Felipe Leme
69c0292aff Created a new bug report workflow so user can keep track of its progress.
The old workflow was:

1. dumpstate starts.
2. When dumpstate finishes, it sends a BUGREPORT_FINISHED intent.
3. Shell's BugreportReceiver receives the BUGREPORT_FINISHED and issues a
   system notification so user can share the bug report.

The new workflow is:

1. When dumpstate starts, it sends a BUGREPORT_STARTED with its pid and
   the estimated total effort.
2. When Shell's BugreportReceiver receives the BUGREPORT_STARTED, it:
  2.1 Issues a system notification so user can watch the
      progresss (which is 0% initially).
  2.2 Starts a service (BugreportProgressService) responsible for
      polling the dumpstate progress (using system properties and the
      pid) and updating the system notification.
3. As dumpstate progress, it updates the proper system property.
4. When dumpstate finishes, it sends a BUGREPORT_FINISHED event.
5. When Shell's BugreportReceiver receives the BUGREPORT_FINISHED, it:
  5.1 Finishes the service if necessary.
  5.2 Issues a system notification so user can share the bug report.

This CL handles the Shell changes only, the dumpstate changes will be
changed in a separate CL.

BUG: 25794470
Change-Id: Icbd0b42dd48e8db376b60544348b6818c6374338
2015-11-25 16:50:35 -08:00
Geoff Mendal
0634fbb334 Import translations. DO NOT MERGE
Change-Id: I8ab271a3bfdd0b4d4917cc21234b70b79063e3cf
Auto-generated-cl: translation import
2015-11-25 05:37:11 -08:00
Geoff Mendal
d36d67445c Import translations. DO NOT MERGE
Change-Id: I852a848512375e624b758709aa12aacdb7fb98b2
Auto-generated-cl: translation import
2015-11-23 05:51:56 -08:00
Felipe Leme
3bf521a32e Improves how cornercase scenarios are handled:
- Bug reports without screenshots are supported.
- Shows a toast message when the bugreport file cannot be read.

BUG: 25751868
Change-Id: I4ed2c47a89b373cf878720ebcba90c96bd51342b
2015-11-18 10:46:54 -08:00
Geoff Mendal
cc98d3fa51 Import translations. DO NOT MERGE
Change-Id: Idcb5330948acdc172f2af763f32e6d8235d64a30
Auto-generated-cl: translation import
2015-10-26 05:56:23 -07:00
Baligh Uddin
20622f6e66 Import translations. DO NOT MERGE
Change-Id: I49e6c5f9bef969104fc5a03f74f601b1e2c05e68
Auto-generated-cl: translation import
2015-09-10 12:34:40 -07:00
Geoff Mendal
8b29025bb6 Import translations. DO NOT MERGE
Change-Id: Ifec1749f39bdb7eedede6e2f478ca08f5fe3529e
Auto-generated-cl: translation import
2015-07-22 05:41:34 -07:00
Geoff Mendal
2c45a1f8e9 Import translations. DO NOT MERGE
Change-Id: I7d9983894ab1331e2406d139e7595182543f0e6f
Auto-generated-cl: translation import
2015-07-15 05:34:24 -07:00
Geoff Mendal
a7dfd9fd0b Import translations. DO NOT MERGE
Change-Id: Ic53e44c147fd47b2743ca5855f3fe4912d87763b
Auto-generated-cl: translation import
2015-07-08 05:35:41 -07:00
Geoff Mendal
e8316f974e Import translations. DO NOT MERGE
Change-Id: I579a6e7b41757f72728d79a2680d55b82c239189
Auto-generated-cl: translation import
2015-06-10 07:51:57 -05:00
Geoff Mendal
d3f901534a Import translations. DO NOT MERGE
Change-Id: Id25ce6405b7035a4273a73f79d60d494369795ed
Auto-generated-cl: translation import
2015-06-08 07:41:26 -05:00
Geoff Mendal
ad70967f75 Import translations. DO NOT MERGE
Change-Id: I3bb15edf7c79e228d2da63ebb39b8fe0b0798a93
Auto-generated-cl: translation import
2015-05-29 21:15:06 -07:00
Geoff Mendal
be4dcc9df6 Import translations. DO NOT MERGE
Change-Id: I1ab78d75e5a049a8bb101373bd1d862d683e3345
Auto-generated-cl: translation import
2015-05-11 05:30:53 -07:00
Geoff Mendal
2ce10f0f85 Import translations. DO NOT MERGE
Change-Id: Icab122bac2891ca4580116d2c357b7ac64d6baad
Auto-generated-cl: translation import
2015-04-22 05:45:49 -07:00
Geoff Mendal
3622c20f79 Import translations. DO NOT MERGE
Change-Id: I33c678add2505ec35670928d3e0c0c9751c66bda
Auto-generated-cl: translation import
2015-03-30 05:50:27 -07:00
Geoff Mendal
6af24b1652 Import translations. DO NOT MERGE
Change-Id: Ie3cde38ec6847cf49d6ce2ed9b21b23f27ef5d63
Auto-generated-cl: translation import
2015-03-27 16:23:30 -07:00
Geoff Mendal
71bed8db2e Import translations. DO NOT MERGE
Change-Id: I9f8461cc3c0002086052c65ba0c1ac801198c042
Auto-generated-cl: translation import
2015-03-25 05:44:52 -07:00
Ryo Hashimoto
dd98034edc Add BugreportStorageProvider
BugreportStorageProvider provides storage backend for bugreports.

BUG:18070208
Change-Id: I8506dd90d69907090295d99df7427fc747b83698
2015-03-23 18:28:01 +09:00
Geoff Mendal
ed963393c3 Import translations. DO NOT MERGE
Change-Id: I05e39854eb2d78c22192faebdbfab579831b162a
Auto-generated-cl: translation import
2015-03-20 23:42:27 -07:00