Commit Graph

3687 Commits

Author SHA1 Message Date
Brian Carlstrom
13b99f3682 am 3b74850d: am 93468f7c: Merge "Add zygote preloading of shared libraries" into lmp-dev
* commit '3b74850dee7e41991794f778eb2f12b43e453a0d':
  Add zygote preloading of shared libraries
2014-09-12 05:46:04 +00:00
Yigit Boyar
f0e8dafdba am 590426f4: am 62bd62e4: Merge "Add support for default content description in DecorToolbar" into lmp-dev
* commit '590426f410c3da73926d4ff0a321febf37fbcc49':
  Add support for default content description in DecorToolbar
2014-09-12 05:45:58 +00:00
Paul Lawrence
d0fa8ff165 am 1d255e2d: am 5f3e819f: Merge "Create correct files in dropbox on encrypted boot" into lmp-dev
* commit '1d255e2dee274917e16325901508f2ba79878624':
  Create correct files in dropbox on encrypted boot
2014-09-12 05:43:36 +00:00
Brian Carlstrom
38c29ca3c7 Merge "Add zygote preloading of shared libraries" into lmp-dev 2014-09-11 23:40:33 +00:00
Brian Carlstrom
6c9af96de5 Add zygote preloading of shared libraries
Bug: 17459019
Change-Id: I7cb4ecd0ec9542aa9079420fe158cedca7fca028
2014-09-11 16:36:45 -07:00
Yigit Boyar
dba92d416d Merge "Add support for default content description in DecorToolbar" into lmp-dev 2014-09-11 23:30:47 +00:00
Paul Lawrence
91317107a3 Create correct files in dropbox on encrypted boot
On the minimal framework start, don't mark ro.runtime.firstboot, allowing
the real framework to properly create the dropbox files in the real /data

Bug: 17450632
Change-Id: Ic53b3471b44e69f3eea7e3f3de18e789f51192bc
2014-09-11 12:09:56 -07:00
Dianne Hackborn
4bde299148 am 14a0ec03: am 022cfcda: Merge "Fix issue #17414533: update batterystats occasionally takes a couple..." into lmp-dev
* commit '14a0ec0324a9aa5ce7bc2c767c744092fd128143':
  Fix issue #17414533: update batterystats occasionally takes a couple...
2014-09-11 01:18:16 +00:00
Dianne Hackborn
023b6812ab Merge "Fix issue #17414533: update batterystats occasionally takes a couple..." into lmp-dev 2014-09-11 00:56:41 +00:00
Yigit Boyar
e91f7c0219 Add support for default content description in DecorToolbar
Bug: 16888338
Change-Id: I0f3f8fcd39cfd29d239801392dd712869749aecf
2014-09-10 17:12:28 -07:00
Dianne Hackborn
652973fca8 Fix issue #17414533: update batterystats occasionally takes a couple...
...hundred milliseconds.

Rework the locking so that no critical paths block on the cpu collection.

Change-Id: Ie615a033f7f8b523b67abee62c581d1a8fce324c
2014-09-10 17:11:22 -07:00
Mathieu Chartier
baaf9a246d am 410d0de7: am 6a593012: Merge "Change EmptyArray System.identityHashCode to Object.hashCode." into lmp-dev
* commit '410d0de763e469c521cd1467e822257c3dec2838':
  Change EmptyArray System.identityHashCode to Object.hashCode.
2014-09-10 21:16:54 +00:00
Mathieu Chartier
b4e5061fd6 Change EmptyArray System.identityHashCode to Object.hashCode.
Equivalent behavior, improves performance since
Object.hashCode has a fast path in the java side that does not
require JNI.

According to traceview sampling profiler:
Calendar had 6.8% time in System.identityHashCode during launch.
0.4% time in System.identityHashCode after the change.

Bug: 16828525

Change-Id: I1ed1d1283a990f990b0d4352cc1f4822b1dadf7b
2014-09-10 12:57:29 -07:00
Zoltan Szatmary-Ban
1dbd4b6646 am 52847478: am 1bb79472: Merge "Extend IKeyChainService AIDL with CACert retrieval" into lmp-dev
* commit '52847478b208d8fed1d8b0d191b080b411f3df8b':
  Extend IKeyChainService AIDL with CACert retrieval
2014-09-09 11:18:10 +00:00
Zoltan Szatmary-Ban
1d38f58990 Merge "Extend IKeyChainService AIDL with CACert retrieval" into lmp-dev 2014-09-09 11:05:45 +00:00
Adam Powell
5b39e1f3bc am 2cd0a9ca: am d6fa07e7: Merge "New new design for ResolverActivity" into lmp-dev
* commit '2cd0a9cace832232252f7344f5c9c5cbca282d99':
  New new design for ResolverActivity
2014-09-09 05:21:33 +00:00
Adam Powell
fd1e93d128 New new design for ResolverActivity
Switch back to using a list as the grid and differently positioned
activity icons were confusing to users. Keep the distinct "last used"
presentation but align icons and titles with the further choices
below. Adjust this to make the fold more apparent. Remember
open/closed slider state across config changes.

Fix some bugs in nested scrolling and flinging.

Bug 17301272

Change-Id: I175937d5821df27b6ac7ffad7f01cd9a6ed3e3e3
2014-09-08 19:25:37 -07:00
Andreas Gampe
6b0ed64fb8 Frameworks/base: Add native bridge post-fork initialization
(cherry picked from commit d7746a8b65ee4690427ed798816f970218578fa3)

Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
2014-09-08 13:07:59 -07:00
Jeff Sharkey
6098a3acc9 am fa8211c5: am 2f0ed017: Merge "Delayed ASEC allocation, refine progress handling." into lmp-dev
* commit 'fa8211c5f7b8939e230f5643cd94a6e8686571b6':
  Delayed ASEC allocation, refine progress handling.
2014-09-08 17:00:42 +00:00
Zoltan Szatmary-Ban
f0ae135049 Extend IKeyChainService AIDL with CACert retrieval
Bug:16029580
Change-Id: I41a3bd2f3bd95550e59f1d0d0acd0e765d7b62d7
2014-09-08 17:59:42 +01:00
Jeff Sharkey
e016605981 Merge "Delayed ASEC allocation, refine progress handling." into lmp-dev 2014-09-08 16:38:42 +00:00
Jeff Sharkey
77d218e186 Delayed ASEC allocation, refine progress handling.
For restore use-case, session creation needs to complete quickly, so
delay ASEC allocation until session is opened.  When preflighting
size checks, only consider external when we have a known size for the
container.  Also relax size checks when using MODE_INHERIT_EXISTING
on external, since we don't know how much of existing app will be
copied over.

Consider session as "active" while commit is ongoing, until we're
either finished or pending user interaction.

Always publish first client needle movement away from 0.  Use 25% of
internal progress to reflect ASEC allocation.

Avoid CloseGuard messages about leaking PFDs.

Bug: 17405741, 17402982
Change-Id: I6247a1d335d26621549c701c4c4575a8d16ef8c2
2014-09-08 09:31:49 -07:00
Dianne Hackborn
95ccfd9950 am 80cb4a01: am 8c7605b1: Merge "Fix issue #17397177: BatteryStats reporting error on job start/stop" into lmp-dev
* commit '80cb4a012b57110246a17e4110ccadb5bd232c55':
  Fix issue #17397177: BatteryStats reporting error on job start/stop
2014-09-06 01:09:57 +00:00
Dianne Hackborn
ce78347c37 Merge "Fix issue #17397177: BatteryStats reporting error on job start/stop" into lmp-dev 2014-09-06 00:49:28 +00:00
Dianne Hackborn
c3940bc1ba Fix issue #17397177: BatteryStats reporting error on job start/stop
Dumb, dumb, dumb mistake.

Also fix battery stats wakeup reason tracking to use a SamplingTimer
(like kernel wake locks) so we can track both the duration and count
for each wakeup reason.

Change-Id: I89d69661006dc533622b1b7e68a139166d3a6975
2014-09-05 17:33:06 -07:00
Anwar Ghuloum
248b369661 Merge "Timing Hacks DO NOT MERGE" into lmp-dev 2014-09-05 14:22:51 +00:00
Anwar Ghuloum
629dc18013 Timing Hacks DO NOT MERGE
Let's submit to see any lingering effects.

Bug: 17310019
Change-Id: I791bceec0b6aa8b80ac4e6c582a10c3f0ec7a906
2014-09-05 07:17:39 -07:00
Adam Powell
a46bdef5a8 am ce9978b5: am c3b7ca91: Merge "Menu callbacks for ToolbarActionBars, part 2" into lmp-dev
* commit 'ce9978b5fed0f941bf3613910d58c3d1538660b0':
  Menu callbacks for ToolbarActionBars, part 2
2014-09-05 04:26:05 +00:00
Adam Powell
c461250424 Menu callbacks for ToolbarActionBars, part 2
Pass through the menu mode change events and make sure Activities get
prepare/open/close events properly.

Bug 17326424

Change-Id: I0ac2f56e4d0054ef01720b2ff1c41ded053750c7
2014-09-04 19:16:39 -07:00
Adam Powell
7701884dd0 am f34ce09c: am 2e9f1521: Merge "Dispatch more menu events to window callbacks from ToolbarActionBar" into lmp-dev
* commit 'f34ce09c34591d16eb1cdf82fb4cb9af6855ffce':
  Dispatch more menu events to window callbacks from ToolbarActionBar
2014-09-05 00:41:01 +00:00
Adam Powell
e50a26f3d8 Merge "Dispatch more menu events to window callbacks from ToolbarActionBar" into lmp-dev 2014-09-05 00:26:30 +00:00
Adam Powell
04c0d46078 Dispatch more menu events to window callbacks from ToolbarActionBar
Wire through the callbacks that result in onPrepareOptionsMenu being
called properly when an activity overflow menu is opened.

Bug 17326424

Change-Id: Ifc5b67af0d215f210bb00326f82f60ba55a36d52
2014-09-04 16:25:26 -07:00
Andreas Gampe
dc84c6ca86 resolved conflicts for merge of 82ad9ec3 to lmp-dev-plus-aosp
Change-Id: I7ae05c4f1b072906932a9ed47bdbad881b8e0d37
2014-09-04 16:15:52 -07:00
Yorke Lee
cbd61cf075 am 42d221f3: am 002e85e1: Merge "Use TelecommManager APIs to detect if we are in a call" into lmp-dev
* commit '42d221f34b50f8823695c26b65659faa2047564c':
  Use TelecommManager APIs to detect if we are in a call
2014-09-04 17:44:30 +00:00
Yorke Lee
135b59e597 Merge "Use TelecommManager APIs to detect if we are in a call" into lmp-dev 2014-09-04 17:27:25 +00:00
Andreas Gampe
aec67dcc02 Frameworks/base: Add native bridge post-fork initialization
Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
2014-09-03 21:38:34 -07:00
Adam Powell
b5bbe5745e am f1197ed9: am c3070461: Merge "Change the CAB to use the up-glyph for closing action modes" into lmp-dev
* commit 'f1197ed9d98716a2bb572efc6960672a55baee79':
  Change the CAB to use the up-glyph for closing action modes
2014-09-04 03:21:54 +00:00
Adam Powell
4ef16eaa8d Merge "Change the CAB to use the up-glyph for closing action modes" into lmp-dev 2014-09-04 01:18:14 +00:00
Alan Viverette
f2f326561b am ed1bf1cf: am 1d53feb9: Merge "Only use default backgrounds when not extending AlertDialog style" into lmp-dev
* commit 'ed1bf1cfeb069336c26482283592068bede937d9':
  Only use default backgrounds when not extending AlertDialog style
2014-09-04 00:42:04 +00:00
Adam Powell
b2536cf473 Change the CAB to use the up-glyph for closing action modes
In an effort to reduce glyph proliferation, change the "done"
checkmark from the CAB to the up-navigation arrow, placing the CAB
firmly in the current navigation hierarchy. This matches behavior for
expandable action views such as SearchView.

Allow the use of different CAB "done" layouts by theme; the material
layout should not include the "done" text and should use the standard
borderless selectable item background.

Bug 17372188

Change-Id: Icfb3e0bbc6a718e22ab27f9d520da5fe4eb833e7
2014-09-03 17:17:45 -07:00
Yorke Lee
cc5179f0e3 Use TelecommManager APIs to detect if we are in a call
Bug: 17335666
Change-Id: I5f443c76041e51a2eca903db924fb26031dde055
2014-09-03 17:04:54 -07:00
Dan Sandler
5b01afa072 am c0a4823d: am cdb9de6a: Merge "Reduce RAM requirements of grayscale icon testing" into lmp-dev
* commit 'c0a4823dfb0381c810f8610660d723cd5048d989':
  Reduce RAM requirements of grayscale icon testing
2014-09-03 23:48:39 +00:00
Alan Viverette
98a31b2ef0 Merge "Only use default backgrounds when not extending AlertDialog style" into lmp-dev 2014-09-03 23:42:42 +00:00
Alan Viverette
b17c6c178f Only use default backgrounds when not extending AlertDialog style
BUG: 17368867
Change-Id: I440dad33cfb093c13b450a5f2369481fb30665ad
2014-09-03 16:27:51 -07:00
Dan Sandler
d1dc910eff Merge "Reduce RAM requirements of grayscale icon testing" into lmp-dev 2014-09-03 22:15:38 +00:00
Dan Sandler
05c362d564 Reduce RAM requirements of grayscale icon testing
The isGrayscale family of methods is designed to identify
drawables and bitmaps that apps are using in the largeIcon
position to pose as small icons in order to get the
appropriate background treatment (a solid blue or gray block
in KK/JB, or geniune selvedge denim in ICS/HC).

We can optimize this search two ways:

(1) Reject immediately any largeIcon that is larger than
    largeIcons should be (64x64dp). We could one day simply
    reject, or resize, these in the notification manager,
    but regardless these are not plausible smallIcon
    subsitutes. This new constraint is commemorated in the
    new name, isGrayscaleIcon().

(2) Shrink the bitmap even smaller before scanning it slowly
    in Java.  This lets native_drawBitmap do the heavy
    lifting across the entire bitmap; we need only scan a
    few pixels.

Bug: 16513124
Change-Id: I3a2b79130ed2465a4aedfbb5a556db7f8a7aa132
2014-09-03 23:52:47 +02:00
Yohei Yukawa
8bb3b4331c am d88a1f97: am ebb6b422: Merge "API Review: InputConnection" into lmp-dev
* commit 'd88a1f9790bfaaa6540f65d76827274d716a2539':
  API Review: InputConnection
2014-09-03 14:35:32 +00:00
Adam Powell
0c0702da64 am 9f7a5fae: am 1b17f939: Merge "Automatically supply a content description for ToolbarActionBar nav" into lmp-dev
* commit '9f7a5fae89057644244f0821f75954100ff6deaa':
  Automatically supply a content description for ToolbarActionBar nav
2014-09-03 06:13:06 +00:00
Yohei Yukawa
d8636ea7ca API Review: InputConnection
This CL does nothing but rename some L API candidates
in InputConnection class, as per requested.

- requestUpdateCursorAnchorInfo()
  -> requestCursorUpdates()
- REQUEST_UPDATE_CURSOR_ANCHOR_INFO_IMMEDIATE
  -> CURSOR_UPDATE_IMMEDIATE
- REQUEST_UPDATE_CURSOR_ANCHOR_INFO_MONITOR
  -> CURSOR_UPDATE_MONITOR

BUG: 17320996
Change-Id: I772c48ff18918e48a81e807b48ff907614485c09
2014-09-02 22:39:08 -07:00
Adam Powell
12b0321c0b Automatically supply a content description for ToolbarActionBar nav
If the developer hasn't set a navigation content description on the
Toolbar assigned to be an action bar or a home-action content
description via the ActionBar interface, use the framework default
"navigate up" string.

Also make sure that the default Up description is supplied in the
screen_toolbar window decor layout and that it is parsed properly in
all toolbars, even if we don't have an icon set during construction.

Bug 17298370

Change-Id: Ie2f9e34f92046d4d4ffb9a07e38fa89581891f7b
2014-09-02 16:20:08 -07:00