382 Commits

Author SHA1 Message Date
Felipe Leme
db892b84e5 Allow Scoped Directory Access on whole volume.
There are some scenarios where an app needs access to the whole SD Card,
not subdirectories. For example, user might have a SDCard with
directories like vacation_pictures (instead of Pictures/vacation);
another example is a file management app.

BUG: 27676858
Change-Id: I20ef713de7e4dfa7e2d7d07bab11898af186d673
2016-03-21 14:25:17 -07:00
Felipe Leme
adccb9950e Add a "Do not ask again" checkbox.
When an app request access to a scoped directory which the user already
denied access, it will display a "Do not ask again" checkbox; if the
user checks that option, further requests will be automatically
rejected.

The history of denials is stored in the shared property file.

The UI is not polished yet, the style will be fixed in a future change.

BUG: 26750152

Change-Id: I181923adfb6a1c7c1c17e305d6838314280417fc
2016-03-15 11:12:53 -07:00
Muyuan Li
a212999f24 Added shortcut key to dock windows
Meta + [ / ] will dock top window to left / right or cycle
between 1/3 1/2 2/3 of screen if it's already in docking mode

Change-Id: I546418235a9b9699d406b04f52914c85bd950532
(cherry picked from commit 63635675b56564a17e3897a221d73a19cfbc77f7)
2016-03-09 18:35:50 +00:00
Jason Monk
6f5354d291 Update metrics_constants from settings
Change-Id: I606afa7881bfd6b751f3cf6ab5f482ea62386b33
2016-03-09 09:01:40 -05:00
Ruben Brunk
e24b9a6cfa Add a VR listener service.
Bug: 22855417
Bug: 26724891
Bug: 27364145

- Add an API for VrListenerService, which is bound/unbound
  from the framework when the system VR mode changes.
- Allow only a single bound VrListenerService at a time.
- Monitor allowed VrListenerService implementations from
  VrManagerService and evict services as needed when packages,
  users, or settings change.
- Remove previous VR functionality in NotificationListenerService.
- Add component target to Activity#setVrMode to allow
  explicit selection of the running VrListenerService from
  the current VR activity.

Change-Id: I776335f4441be0e793d3126f2d16faf86a8c621a
2016-03-07 15:54:12 -08:00
Chris Wren
b279a8b39c Merge "add more comments from the other file" into nyc-dev 2016-03-04 22:42:03 +00:00
Chris Wren
dc86f34a09 add more comments from the other file
Bug: 27429645
Change-Id: Ie903240af25a15f0f57cda5a8c57377d001a2f2c
2016-03-04 22:34:44 +00:00
Mady Mellor
a41587b91f Add logging for actions around gear behind notifications
Bug: 22451710
Change-Id: Ife93a9fb983e53585445d5827dd4c15f5b35d637
2016-03-03 06:42:23 -08:00
Chris Wren
e83cd6147b Merge "add all those great comments from the other file" into nyc-dev 2016-03-02 17:51:29 +00:00
Chris Wren
7c5168457b add all those great comments from the other file
also pick up some enum renaming

Bug: 27429645
Change-Id: Id26ddea46755b43e8db298b87b3a47b69be0f728
2016-03-01 16:44:32 -05:00
Chris Wren
ccb7f018e6 Merge "Revert "add all those great comments from the other file."" into nyc-dev 2016-03-01 21:02:51 +00:00
Chris Wren
58f5bd5412 Revert "add all those great comments from the other file."
This reverts commit 72a4bbc694aef402a9a3fc1656d8bf26decaeb70.

Change-Id: Ib351cdd85b8daf17fecc23a3851dda9fb89e477c
2016-03-01 21:02:21 +00:00
Adrian Roos
159ef7b4e9 Improve mergeability of metrics_constants.proto
Change-Id: I6f964d85b5d1b85a04bc8ac2a87453455be93719
2016-03-01 11:59:15 -08:00
Chris Wren
f3179cf56a Merge "add all those great comments from the other file." into nyc-dev 2016-03-01 19:38:45 +00:00
Chris Wren
72a4bbc694 add all those great comments from the other file.
Bug: 27429645
Change-Id: Ice3b1d01f27fa872191cd07f54b55a51733f77a1
2016-03-01 14:31:56 -05:00
Felipe Leme
3e166b27fc Created metric events for scoped directory access API.
BUG: 27334821
Change-Id: I8a1bfc328dcd26b42bb66884d14b34ad11aa232f
2016-03-01 10:12:58 -08:00
Jorim Jaggi
275561a746 App transition delay tracking
Add TRON logging for all kinds aspects when we execute an app transition.

Bug: 27295491
Change-Id: Icb0cbdb92d4d5fbfedadd40a017a50eb217058aa
2016-02-26 14:15:00 -05:00
Winson
d93429076c Track double taps to launch the previous task.
Change-Id: Icd792ed4f508f8a8540a5cd2d12c3bdfd5827410
2016-02-25 14:17:05 -08:00
Adrian Roos
9046222cb2 Add logging to crash and anr dialog
Bug: 26760334
Change-Id: If81c7a6834e86f7390febef6767a07fa4caded4d
2016-02-25 18:41:01 +00:00
Jason Monk
5732df41db Make sure tuner has metrics coverage for new stuff
Change-Id: I1e0d8e34f518cb3fc2bd9ccff0b71dc586ed2ab6
2016-02-24 16:24:55 -05:00
Chris Wren
34f6f699f0 Merge "hide the nanos even harder" into nyc-dev 2016-02-23 18:25:14 +00:00
Felipe Leme
6605bd89c5 Initial implementation of logging metrics for bugreport.
This change logs the following user actions:

  - Interactive bug report initiated from power menu.
  - Full bug report initiated from power menu.
  - Bug report canceled using system notification.
  - Bug report details screen open using system notification.
  - Additional Bug report screen shot taken using system notification.
  - User changed bug report name using the details screen.
  - User changed bug report title using the details screen.
  - User changed bug report description using the details screen.
  - Changes made on bug report details screen were saved by user.
  - Changes made on bug report details screen were canceled by user.

BUG: 26759986
Change-Id: I1aae98b87a4dea66a1030a024dd799b97c25dd6d
2016-02-23 09:08:56 -08:00
Chris Wren
2633e24ed8 hide the nanos even harder
Bug: 26925668
Change-Id: Ic56460926bd62ac41e64f4d37f52d962976ca644
2016-02-23 11:10:44 -05:00
Julia Reynolds
b1a235f952 Importance slider logging.
Change-Id: I3c4ad73d1460e4d28cb1a10846159128590d2b20
2016-02-09 13:06:46 -05:00
Winson
423295222c Adding logging for timeout and other features.
Change-Id: Ife9fca1a2ced08c6cbd38ab55d9ea878928de439

Signed-off-by: Winson <winsonc@google.com>
2016-02-08 17:12:01 -08:00
Julia Reynolds
d560729ce3 Update DND visual interruption choices.
Change-Id: I7050264839c566dcef1dd01d155dda694a8d1ec0
2016-02-08 15:20:02 +00:00
Jorim Jaggi
dd50c3fc15 Fix build
Change-Id: I42ae0a22ce7259aa37c39a09d3b754785d000892
2016-02-04 14:55:50 -08:00
Jorim Jaggi
ea4a19f1aa When long pressing recents and already docked, undock
Bug: 26771328
Change-Id: I1fe12181cd80fd948e4184be6a8790c77bfe9e45
2016-02-04 14:39:22 -08:00
Robin Lee
8c1306e397 [Metrics] declare a constant for user credentials
Bug: 22541933
Change-Id: I774f74f3dd21f242a821bb08db6c09a8fc668671
2016-02-03 13:01:49 +00:00
Jason Monk
9a4ce137eb Add data saver tile
Bug: 22817899
Change-Id: I900f19cca54daabd45fe358ae4117d4f3e9ab824
2016-01-25 17:16:22 -05:00
mariagpuyol
64916b72fa Add constants for EmergencyInfo app.
Bug: 23591361
Bug: 26688835
Change-Id: If1039356468d173522132df252e81807cdc756c8
2016-01-25 09:43:30 -08:00
Chris Wren
77781d3aaa a step toward enforcing unique metrics log IDs
First of several change lists:
1. Add in the new proto (this CL)
2. Migrate the existing code over to the proto.
3. Remove MetricsConstants once it is unused.

Bug: 26442178
Change-Id: Ic24829246af8ec5b202e39a85960aac5cf336c33
2016-01-25 11:24:08 -05:00