533 Commits

Author SHA1 Message Date
Felipe Leme
92aaaa21ee Moved bugreport intents to the com.android.internal namespace.
Change-Id: I5ad53668b9393188cee4d8b0382f9c303ff95777
Fixes: 35275802
Test: manual verification
2017-02-15 16:08:53 -08:00
TreeHugger Robot
ccb258d001 Merge "Added more logging on BugreportProgressService." 2017-02-14 01:01:31 +00:00
TreeHugger Robot
9e193f03e8 Merge "Dismiss keyguard before displaying bugrepot details dialog." 2017-02-11 08:28:07 +00:00
Felipe Leme
ec60e5f40c Added more logging on BugreportProgressService.
BUG: 35010191
BUG: 35077822

Test: manual verification
Test: BugreportReceiverTest passes
Change-Id: Iaa37f633c6415127a3efa07c166f5a771a13ff5a
2017-02-10 17:41:18 -08:00
Felipe Leme
17d9e9c36d Dismiss keyguard before displaying bugrepot details dialog.
Fixes: 27494228
Test: manual verification
Test: BugreportReceiverTest passes

Change-Id: I7755fc2d3d4f1f9b55301c65f7a58c9374e93664
2017-02-10 16:20:02 -08:00
Felipe Leme
8775eaac44 Set package name on bugreport intents.
BUG: 35257764
Test: BugreportReceiverTest passes
Change-Id: Ia6ff03b2a12ab9987f5b36fa1da88e9c77af18a2
2017-02-10 13:06:58 -08:00
Paul Duffin
8aeb59ebcd Prepare for removal of legacy-test from default targets
In preparation for removing junit classes from the Android API
the legacy-test target will be removed from the
TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit
dependencies on junit and/or legacy-android-test to ensure that
modules will compile properly once it is removed.

Bug: 30188076
Test: make checkbuild
Change-Id: I13e88297731253420e4e5f5291d503f13a39a156
2017-01-18 16:39:34 +00:00
Bill Yi
09934a01fa Import translations. DO NOT MERGE
Change-Id: Id49c8f367fafd803a9ce3f2f7fbd8c5b9c6dc7bc
Auto-generated-cl: translation import
2017-01-12 02:41:59 -08:00
Roozbeh Pournader
b84a505b62 Rename language+country resources to just language
Bug: 26496609
Test: none
Change-Id: I40b99a8728f1f324f4c1f8066a61c3d5f92b1ac6
2017-01-10 23:51:26 -08:00
Bill Yi
918c1fe649 Import translations. DO NOT MERGE
Change-Id: Ic7bd696893c0dd751de4c45097e404824174348c
Auto-generated-cl: translation import
2017-01-09 19:18:41 -08:00
Makoto Onuki
ff329c4329 Bugreport sharing is now work profile aware
Now we look at work profile too, if available, when looking for a preferred
email address.

TODO: The chooser activity should default to work profile too, but it seems
to require a lot more work, so not done yet.

Test: manual tests
Test: adb shell am instrument -w -e class com.android.shell.BugreportProgressServiceTest com.android.shell.tests

Bug 30865666

Change-Id: I9b4776d53455a23bfdc4960da25e98bd1dc1b2a1
2017-01-05 14:14:51 -08:00
Bill Yi
c03766163d Revert "Import translations. DO NOT MERGE"
This reverts commit d3d688a295d28ebd1ee2b849fde78ad5d7620078.

Change-Id: I70458c0379aacd83fc0d033131360178f44e2e57
2016-12-05 19:00:10 +00:00
Bill Yi
d3d688a295 Import translations. DO NOT MERGE
Change-Id: I7dbe0388d0e3deedd0d214a55361d30335b56502
Auto-generated-cl: translation import
2016-12-02 21:01:26 -08:00
Felipe Leme
326336d14c Fixed obsolete comment.
Bug:32906084
Test: not needed
Change-Id: I0c79e4ffb66405a30d3c83d2e7654cbef413f6e1
2016-11-15 11:24:42 -08:00
Felipe Leme
fa26a0ed08 Refactored Shell to use IDumpstateListener.
BugreportProgressService used to poll system properties to get the
progress of the underlying dumpstate process, but now dumpstate provides
a IDumpstateListener and IDumpstateToken binder objects for the same
purpose.

Test: BugreportReceiverTest passes
Test: manual verification

BUG: 31636879

Change-Id: I81d551781a511cb1cc218a27452875b0bb267f7a
2016-11-11 15:50:21 -08:00
TreeHugger Robot
00f42c3b28 Merge "Initial implementation of the Auto-Fill Framework classes." 2016-11-09 19:19:32 +00:00
Felipe Leme
5381aa4b58 Initial implementation of the Auto-Fill Framework classes.
This CL provides the initial, skeleton implementation of the Auto-Fill
Framework classes:

- Defines the system service and app-based
  AIDL (IAutoFillManagerService.aidl and IAutoFillService.aidl respectively).
- Defines the 'adb shell cmd' interface.
- Defines the permission required to access the service.
- Registers the service on SystemServer.
- Adds the code to bind the app-specified service to system_server.
- Defines the service class (AutoFillService) required by providers.
- Implements the initial startSession() method.

This is still a very early, "work-in-progress" change:
- It has many TODOs.
- It does not have unit or CTS tests yet.
- It does not provide a callback method to auto-fill the fields.
- In fact, it has a lot of TODOs.

Despite these adversities, it can be tested by following the steps
below:

1.Create an app with a service extending AutoFillService

2.Implement the onNewSession() method

3.In the manifest:
 - Listen to android.service.autofill.AutoFillService intents.
 - Require the android.permission.BIND_AUTO_FILL permission.

4.Explicitly set the app as an autofill-service by running:
  adb shell settings put secure auto_fill_service MY_APP/.MY_SERVICE

5.Start a session against the top activity:
  adb shell cmd autofill start session

BUG: 31001899
Test: manually built and ran it

Change-Id: I00f4822159b31ddddba8f513e57c4474bc74eb89
2016-11-08 14:40:56 -08:00
Tamas Berghammer
383db5ebcc Update package names to work with the proto3 compiler
Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
2016-11-08 14:06:09 +00:00
Bill Yi
6173104551 Import translations. DO NOT MERGE
Change-Id: I9d7b6d9dd8d752b25d78e5f3495a3dfd16e2bd5a
Auto-generated-cl: translation import
2016-11-08 01:16:54 -08:00
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