233674 Commits

Author SHA1 Message Date
Dongwon Kang
62b6a00b64 Merge "TIF: Add @NonNull for Programs.Genres.encode/decode" into nyc-dev 2016-02-23 20:45:23 +00:00
Joe Onorato
abded113bd Add unit tests for BatteryStatsImpl.
- Add a Clocks interface to wrap SystemClock.uptimeMillis and
  SystemClock.elapsedRealtime.
- Make the inner classes static so they can be created independently,
  which meant passing explicit pointers to the BatteryStatsImpl and
  the Uid objects in a lot of places.
- Make several fields protected so they can be accessed by the tests (they are
  still @hidden)
- Add a test suite for the battery stats.
- Add the tests

Change-Id: I4e45afedc64f7050985c28a7eb4f5c1ddbaa63fa
2016-02-23 12:44:22 -08:00
Joe Onorato
0c484107b1 Turn down the logging a little bit.
Change-Id: I2ea19f9a7951c215aee98825f9cb2923295a965d
2016-02-23 12:44:22 -08:00
Joe Onorato
7e1693af7f Turn down the logging a little bit.
Change-Id: I922d6f3895d80292fbf613b90e502cad462bb9ef
2016-02-23 12:44:22 -08:00
Dongwon Kang
df1e10ddac TIF: Add @NonNull for Programs.Genres.encode/decode
Bug: 27292029
Change-Id: Ib74f6383f3b0880179b51268e730ea8e88ab20c3
2016-02-23 12:43:58 -08:00
Shawn Willden
3f5fd1dbee Merge "Revert "Revert "Add option to allow key validity after fingerprint enrollment.""" into nyc-dev 2016-02-23 20:33:11 +00:00
Alan Viverette
0df7c98adf Merge "Remove @Nullable annotation from getDrawable() methods" into nyc-dev 2016-02-23 20:30:08 +00:00
Jeff Sharkey
413573ac59 Offer to cache ringtones in system DE storage.
Ringtones often live on shared media, which is now encrypted with CE
keys and not available until after the user is unlocked.  To improve
the user experience while locked, cache the default ringtone,
notification sound, and alarm sound in a DE storage area.

Bug: 26730753
Change-Id: Ie6ad7790af4c87dd25759df3ed017e3b91a2fb87
2016-02-23 13:27:00 -07:00
Wale Ogunwale
09e1b8d02c Clear calling identity on Session.startingMovingTask
This call is comming from the client which doesn't have
the manage task permission required by setFocusTask in AM.

Bug: 27157914
Change-Id: I494a0c44e8fb4316a16bcd44c87bdd8d23e7e6d5
2016-02-23 20:17:04 +00:00
Alan Viverette
fde0213716 Remove @Nullable annotation from getDrawable() methods
Developers usually do not need to check the result of getDrawable(), so
we shouldn't be annotating it like they do.

Bug: 27134828
Change-Id: I0db0ca806fd89c18781da452fe3f31ef344f3cca
2016-02-23 14:59:51 -05:00
Fyodor Kupolov
07140f7ffd Disable switching users until user 0 is unlocked
Switching with user0 locked can be re-enabled by setting
allow_user_switching_when_system_user_locked flag to a non-zero value

Bug: 26933989
Change-Id: I0958058f1cc8a059db9c20930e07183c14c8460a
2016-02-23 11:58:54 -08:00
Alan Viverette
5f8e0603e6 Merge "Fix NinePatchDrawable handling of density changes" into nyc-dev 2016-02-23 19:56:24 +00:00
Alan Viverette
921ec44647 Fix NinePatchDrawable handling of density changes
Scaling is now manually applied when the canvas density is not set.

Removes set/getNinePatch accessors that were added in N, since these
are not used and setting the nine patch directly will break padding.
Also removes local NinePatch, which was not necessary.

Bug: 27038114
Change-Id: Ie8b2e485b54d1ed1521081b329a09915fd0a95c1
2016-02-23 14:54:01 -05:00
Chien-Yu Chen
d1733607cd Merge "Camera2: Fix getInternalFormatSizes for depth" into nyc-dev 2016-02-23 19:52:20 +00:00
John Reck
e5bfd2da4d Merge "destroyHardwareResources in onStop()" into nyc-dev 2016-02-23 19:45:09 +00:00
Rubin Xu
ad9758fb27 Merge "Do not show work challenge when profile is turned off." into nyc-dev 2016-02-23 19:42:04 +00:00
Etan Cohen
ae7a19e924 [NAN] API cleanup - rename FLAGS. [DO NOT MERGE]
am: ad3693d59b  -s ours

* commit 'ad3693d59b990f4994f96f6d3ca98cdbfe26723c':
  [NAN] API cleanup - rename FLAGS. [DO NOT MERGE]
2016-02-23 19:11:42 +00:00
Roshan Pius
e0e00dc79c Merge "Modify the wake reasons data structure(2/2)" into mm-wireless-dev
am: 2d3bea7f01

* commit '2d3bea7f014a7fa2eff91ce996663059218bf21d':
  Modify the wake reasons data structure(2/2)
2016-02-23 19:09:24 +00:00
Aga Wronska
f4b808345d Merge "Add logic for selecting filename in RenameDocumentFragment - different selection for directory. Prevent test from creating directories in Documents folder." into nyc-dev 2016-02-23 19:04:05 +00:00
Aga Wronska
568b3b366c Add logic for selecting filename in RenameDocumentFragment - different selection for directory.
Prevent test from creating directories in Documents folder.

Change-Id: Ib656f8d69cba27b201b5fe67bcb11fa1dec04953
2016-02-23 10:57:09 -08:00
Anthony Chen
e87032cd75 Scale phone state icons.
The status bar icons can all be optionally scaled by the scale factor in
dimens. The phone stat icons had not been updated to include this
scaling logic.

Also allow the spacing between the icons in the mobile signal group to
be adjusted.

Change-Id: I12b35d462599f8a0747477fb280a974ffa77d01c
2016-02-23 18:53:17 +00:00
Chris Craik
91eff22b5d Support op dumping in new pipeline
bug:26565102

Change-Id: I266e420a2f18ba9ad62942b8a0de295dfa3a2a88
2016-02-23 18:52:54 +00:00
Tao Bai
eabebc1539 Merge "Using addAssetPathAsSharedLibrary in WebViewDelegate" into nyc-dev 2016-02-23 18:52:15 +00:00
Lenka Trochtova
3dfe7f655d Throw UnsupportedOperationException when creating ephemeral
user on a system without split system user.

BUG: 27143201

Change-Id: I7b7e634ba7fce576dd72a416e802c80939f05d3e
2016-02-23 19:49:39 +01:00
Wale Ogunwale
f8df4d0d43 Merge "Changed sys-ui manifest to use resizeableActivity attribute..." into nyc-dev 2016-02-23 18:37:49 +00:00
Jae Seo
47d1f420bb Merge "TIF: Hide android.permission.READ_TV_LISTINGS" into nyc-dev 2016-02-23 18:37:41 +00:00
John Reck
d9b1607bd9 destroyHardwareResources in onStop()
Bug: 27286867

This hopefully makes everything fully-deterministic. It should
also fix some old annoyances around Bitmap lifecycle as they will
be released earlier in onStop() instead of waiting for
dispatchDetachedFromWindow() which may never happen.

Change-Id: I6e871760650780e327c0e42f62950c1052dd8019
2016-02-23 10:35:19 -08:00
Felipe Leme
978b4d0e43 Merge "Fixed MetricsLogger usage." into nyc-dev 2016-02-23 18:33:03 +00:00
Felipe Leme
d426d12bb4 Fixed MetricsLogger usage.
BUG: 26759986
Change-Id: Ice16c58f09de8778240ae845917e59bf36ccd112
2016-02-23 10:32:16 -08:00
Chris Wren
34f6f699f0 Merge "hide the nanos even harder" into nyc-dev 2016-02-23 18:25:14 +00:00
Rubin Xu
b93522a7db Do not show work challenge when profile is turned off.
When the profile is turned off, the associated user is not running so it
makes no sense to try to unlock the profile challenge.

Also adjust order of activity startup interception so suspend package takes
precedence, as that's a state user cannot recover from by his own actions.

Bug: 26928131
Change-Id: Ibb4c8ce02ba4ed2e5a5b4366cbe7b59d1535dbd7
2016-02-23 18:21:48 +00:00
Selim Cinek
729166fb44 Merge "Fixed a bug where QS could fling up even when collapsing" into nyc-dev 2016-02-23 18:21:11 +00:00
Felipe Leme
fe9731f4f2 Merge "Created counter (tron_varz_dumpstate_duration) for dumpstate duration." into nyc-dev 2016-02-23 18:14:27 +00:00
Nicolas Geoffray
65698a9638 Merge "Revive the "Optimizing apps" dialog" into nyc-dev 2016-02-23 18:04:40 +00:00
Wale Ogunwale
dc62575dd2 Changed sys-ui manifest to use resizeableActivity attribute...
Instead of resizeable attribute. resizeableActivity is what is used
for multi-window. The code currently works because it targets N :/

Change-Id: I82f1b1b46f66ea39ae682ed1d45f97bc6247b0bd
2016-02-23 10:02:58 -08:00
Aga Wronska
c7bf3f7cb8 Merge "Fix RenameDocumentFragment crash on rotation" into nyc-dev 2016-02-23 18:00:12 +00:00
Jean-Michel Trivi
7e2127a970 Merge "New constant for BUS audio devices" into nyc-dev 2016-02-23 17:55:29 +00:00
Philipp Weiß
f398479e06 Merge "Remove deprecated APIs DPM.createUser, createAndInitializeUser" into nyc-dev 2016-02-23 17:53:58 +00:00
Felipe Leme
4e34c4e53c Merge "Initial implementation of logging metrics for bugreport." into nyc-dev 2016-02-23 17:48:56 +00:00
Aga Wronska
7113872024 Fix RenameDocumentFragment crash on rotation
Bug: 26972374
Change-Id: I820661bc5363fe8ccc3ea39b3e27510907ddf2ef
2016-02-23 09:43:32 -08:00
Shweta Chahar
37550dd344 Merge "Add strings for TTS speech pitch seekbar." into nyc-dev 2016-02-23 17:40:57 +00:00
Felipe Leme
510e922e47 Created counter (tron_varz_dumpstate_duration) for dumpstate duration.
BUG: 26759986
Change-Id: I18534c127b35776a03e31b9d5cd190d864dff9e6
2016-02-23 09:40:13 -08: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
Tao Bai
eb1368ba02 Using addAssetPathAsSharedLibrary in WebViewDelegate
BUG: 27245306
Change-Id: I346bc526cd9d311c290f61d0de04e33d708b81c4
2016-02-23 09:01:28 -08:00
Jean-Michel Trivi
a572e4a87b Merge "Make android.media.AudioFormat parcelable" into nyc-dev 2016-02-23 16:54:12 +00:00
Etan Cohen
ad3693d59b [NAN] API cleanup - rename FLAGS. [DO NOT MERGE]
Per API guidelines - non-overlapping constants can be (should be)
named with "FLAG".

Bug: 27122760
Change-Id: If8b2c0f9b2818215a64b5635e76731c8fdfd3b8d
2016-02-23 16:44:09 +00:00
shwetachahar
686570a618 Add strings for TTS speech pitch seekbar.
Bug: 27137452
Change-Id: Id9cb836c0e802444f0cfc611c715d7e3e2c359de
2016-02-23 16:33:53 +00:00
Chris Wren
2633e24ed8 hide the nanos even harder
Bug: 26925668
Change-Id: Ic56460926bd62ac41e64f4d37f52d962976ca644
2016-02-23 11:10:44 -05:00
Roshan Pius
2d3bea7f01 Merge "Modify the wake reasons data structure(2/2)" into mm-wireless-dev 2016-02-23 16:08:25 +00:00
Jorim Jaggi
5dea9e79c2 Merge changes I78305f7f,I6faf0167 into nyc-dev
* changes:
  Fix disappearing windows after moving divider to side
  Recents transition fixes
2016-02-23 16:03:41 +00:00