OSDN Git Service

android-x86/frameworks-base.git
10 years agoMerge "Improve RemoteControlDisplay registration" into klp-dev
Jean-Michel Trivi [Mon, 30 Sep 2013 23:22:58 +0000 (23:22 +0000)]
Merge "Improve RemoteControlDisplay registration" into klp-dev

10 years agoMerge "Avoid accidentally using software layers" into klp-dev
John Reck [Mon, 30 Sep 2013 23:10:49 +0000 (23:10 +0000)]
Merge "Avoid accidentally using software layers" into klp-dev

10 years agoAvoid accidentally using software layers
John Reck [Mon, 30 Sep 2013 22:31:31 +0000 (15:31 -0700)]
Avoid accidentally using software layers

 Bug: 10918599
 Shaves ~1-2MB of transient memory usage from setting a hardware layer
 on a view that's not hardware accelerated, resulting in it falling
 back to a software layer which allocates a bitmap
 Also a bit of dejanking as a result of not hitting GC_FOR_ALLOC

Change-Id: Iff00d383fca710147a48f31c7eee2b728b8412dc

10 years agoMerge "Remove blocking from SM before boot completed." into klp-dev
Matthew Williams [Mon, 30 Sep 2013 21:46:58 +0000 (21:46 +0000)]
Merge "Remove blocking from SM before boot completed." into klp-dev

10 years agoMerge "Rebind transient state views when available" into klp-dev
Alan Viverette [Mon, 30 Sep 2013 21:33:22 +0000 (21:33 +0000)]
Merge "Rebind transient state views when available" into klp-dev

10 years agoMerge "Adjust padding for keyguard pin entry keys" into klp-dev
Amith Yamasani [Mon, 30 Sep 2013 21:31:53 +0000 (21:31 +0000)]
Merge "Adjust padding for keyguard pin entry keys" into klp-dev

10 years agoMerge "Use a build-specific wifi country code" into klp-dev
Robert Greenwalt [Mon, 30 Sep 2013 21:13:23 +0000 (21:13 +0000)]
Merge "Use a build-specific wifi country code" into klp-dev

10 years agoMerge "Disable keyguard widgets on low memory devices" into klp-dev
Jim Miller [Mon, 30 Sep 2013 20:38:20 +0000 (20:38 +0000)]
Merge "Disable keyguard widgets on low memory devices" into klp-dev

10 years agoAdjust padding for keyguard pin entry keys
Amith Yamasani [Mon, 30 Sep 2013 20:38:14 +0000 (13:38 -0700)]
Adjust padding for keyguard pin entry keys

Increase padding on the left to more visually center the text within the touch target

Bug: 10074982
Change-Id: I2c622b0edd427a4b15f2f3b25a0a124853ed2367

10 years agoMerge "Make toast frames a little more opaque" into klp-dev
Adam Powell [Mon, 30 Sep 2013 20:24:17 +0000 (20:24 +0000)]
Merge "Make toast frames a little more opaque" into klp-dev

10 years agoRebind transient state views when available
Alan Viverette [Mon, 30 Sep 2013 19:44:54 +0000 (12:44 -0700)]
Rebind transient state views when available

If a view is obtained, it is guaranteed to represent the same data.

BUG: 10901462
Change-Id: Ice2b3508ae8cf444f006c084e6b7a3e79373723b

10 years agoMerge "Unhide setPin, setPin, setPairingConfirmation, and relevant intent fields...
Matthew Xie [Mon, 30 Sep 2013 18:56:39 +0000 (18:56 +0000)]
Merge "Unhide setPin, setPin, setPairingConfirmation, and relevant intent fields" into klp-dev

10 years agoMake toast frames a little more opaque
Adam Powell [Mon, 30 Sep 2013 18:23:46 +0000 (11:23 -0700)]
Make toast frames a little more opaque

Bug 10994053

Change-Id: I719c8e4a44621b8c838b0897e6c486884e735357

10 years agoRemove blocking from SM before boot completed.
Matthew Williams [Fri, 27 Sep 2013 18:32:35 +0000 (11:32 -0700)]
Remove blocking from SM before boot completed.

Bug: 10916655
Add a stash where the SyncHandler can copy and place
msgs rather than run them. After boot is complete
we iterate through the stash in order and send the
messages off.

Change-Id: I9c175ee79fe60952346003a29225b8687979b44e

10 years agoMerge "Don't display hidden activities over home screen." into klp-dev
Craig Mautner [Mon, 30 Sep 2013 18:20:48 +0000 (18:20 +0000)]
Merge "Don't display hidden activities over home screen." into klp-dev

10 years agoMerge "Prevent authenticators from using Settings to launch arbitrary activities...
Carlos Valdivia [Mon, 30 Sep 2013 17:35:45 +0000 (17:35 +0000)]
Merge "Prevent authenticators from using Settings to  launch arbitrary activities." into klp-dev

10 years agoDon't display hidden activities over home screen.
Craig Mautner [Mon, 30 Sep 2013 17:34:55 +0000 (10:34 -0700)]
Don't display hidden activities over home screen.

Fixes jank exposed in 10881705. Specifically background activity
animating up along with translucent activity. Repro steps on manta:

1. From home start Settings.
2. Press home.
3. From home start Downloads (translucent activity that takes 85% of
screen).
4. Observe that as Downloads zooms up the 15% boundary that should be
dimly transparent are showing Settings.

The cause was that there is a finishing activity in the Downloads task
that was used to launch the DownloadsActivity. The existence of that
activity kept the logic from recognizing that the home activity was
behind the DownloadsActivity, not the Settings activity.

This fix descends through all of the activities in a task sitting on
home and makes sure that they only keep home from showing if such
activities are not finishing and visible.

Change-Id: I607afce6b0000b4db634f2ce40a6c37fcee369d7

10 years agoMerge "Add android.provider.Telephony to public API." into klp-dev
Jake Hamby [Mon, 30 Sep 2013 17:18:51 +0000 (17:18 +0000)]
Merge "Add android.provider.Telephony to public API." into klp-dev

10 years agoMerge "Fix configuration changes in status bars." into klp-dev
Daniel Sandler [Mon, 30 Sep 2013 15:02:43 +0000 (15:02 +0000)]
Merge "Fix configuration changes in status bars." into klp-dev

10 years agoFix configuration changes in status bars.
Daniel Sandler [Mon, 30 Sep 2013 14:21:45 +0000 (10:21 -0400)]
Fix configuration changes in status bars.

- Make sure SystemBars calls onConfigurationChanged on the
  status bar
- Remove redundant ACTION_CONFIGURATION_CHANGED receiver in
  BaseStatusBar & move this code into onConfigurationChanged
- Force locale refresh even if a configuration change
  touches only the layout direction

Bug: 10113357
Change-Id: I92902d25cbae77f2558cfb85482484b11dc7294e

10 years agoMerge "Fix issue #10948509: Crash in procstats when there is no data" into klp-dev
Dianne Hackborn [Mon, 30 Sep 2013 00:21:48 +0000 (00:21 +0000)]
Merge "Fix issue #10948509: Crash in procstats when there is no data" into klp-dev

10 years agoFix issue #10948509: Crash in procstats when there is no data
Dianne Hackborn [Thu, 26 Sep 2013 18:07:17 +0000 (11:07 -0700)]
Fix issue #10948509: Crash in procstats when there is no data

Not dealing with the case where there is a null list.

Also fixed some bugs I found while looking at this:

- When resetting the stats, we would use a newly computed time stamp
  for the total durations rather than the one we used to reset the
  proc/service entries.  This would result in them being able to be
  slightly > 100%.
- There was a bug in how we split a single process state into its
  per-package representation, where we would but the cloned process
  state into the new package's entry (instead of properly for its
  own package entry), to be immediately overwritten by the new
  process state we make for that package.  This could result in
  bad data for processes that have multiple packages.
- There was a bug in resetting service stats, where we wouldn't
  update the overall run timestamp, allowing that time to sometimes
  be > 100%.
- There was a bug in computing pss data for processes with multiple
  packages, where the pss data was not distributed across all of the
  activity per-package process states.
- There was a bug in computing the zram information that would cause
  it to compute the wrong value, and then never be displayed.

Finally a little code refactoring so that ProcessState and ServiceState
can now share a common implementation for the table of duration values.

Change-Id: I5e0f4e9107829b81f395dad9419c33257b4f8902

10 years agoImprove RemoteControlDisplay registration
Jean-Michel Trivi [Sun, 29 Sep 2013 20:03:58 +0000 (13:03 -0700)]
Improve RemoteControlDisplay registration

When a new RemoteControlDisplay gets registered, don't cause all
  existing RemoteControlDisplays to re-receive RemoteControl
  information they already have.

Bug 8417073

Change-Id: Icc8e7104d6870f748fddd702692789dbaef948ac

10 years agoUse a build-specific wifi country code
Robert Greenwalt [Fri, 27 Sep 2013 21:58:43 +0000 (14:58 -0700)]
Use a build-specific wifi country code

This ignores any previous setting and instead uses
a value set at build time.  This does not preclude
us from using some other signal to determine country
for wifi channel limits.

bug:10513734
Change-Id: Ib82c07285af70fbd82eb0466b7391979ebc8be10

10 years agoDisable keyguard widgets on low memory devices
Jim Miller [Sun, 29 Sep 2013 21:00:01 +0000 (14:00 -0700)]
Disable keyguard widgets on low memory devices

Fixes bug 10784493

Change-Id: I6271ea94f6832bb061ba9f64efea460d28ee5695

10 years agoUnhide setPin, setPin, setPairingConfirmation, and relevant intent fields
Matthew Xie [Tue, 24 Sep 2013 06:23:13 +0000 (23:23 -0700)]
Unhide setPin, setPin, setPairingConfirmation, and relevant intent fields

bug 9987787

Change-Id: Id1c149964137e35703310e2f2893c8830aacddea

10 years agoMerge "Printers in the list of printers change position." into klp-dev
Svetoslav Ganov [Sun, 29 Sep 2013 17:26:46 +0000 (17:26 +0000)]
Merge "Printers in the list of printers change position." into klp-dev

10 years agoMerge "Ensure correct window ordering." into klp-dev
Craig Mautner [Sun, 29 Sep 2013 14:26:11 +0000 (14:26 +0000)]
Merge "Ensure correct window ordering." into klp-dev

10 years agoMerge "Don't kill home process with the rest of its package." into klp-dev
Craig Mautner [Sun, 29 Sep 2013 14:25:08 +0000 (14:25 +0000)]
Merge "Don't kill home process with the rest of its package." into klp-dev

10 years agoMerge "Remove home package name methods." into klp-dev
Craig Mautner [Sun, 29 Sep 2013 14:24:27 +0000 (14:24 +0000)]
Merge "Remove home package name methods." into klp-dev

10 years agoPrevent authenticators from using Settings to launch arbitrary activities.
Carlos Valdivia [Sun, 29 Sep 2013 12:11:56 +0000 (05:11 -0700)]
Prevent authenticators from using Settings to  launch arbitrary activities.

Various authenticator results such as getAuthToken and addAccount might
result in an Intent returned to the AccountManager caller. A malicious
authenticator could exploit the fact that the Settings are a system app,
lead the user to launch add account for their account type and thus get
Settings to use the intent to start some arbitrary third parties Activity.

The fix is to make sure that the UID of the app associated with Activity
to be launched by the supplied intent and the Authenticators UID share
the same signature.  This means that an authenticator implementer can only
exploit apps they control.

Bug: 7699048
Change-Id: I34330454c341e6a8422ca1ed3b390466a0feedce

10 years agoEnsure correct window ordering.
Craig Mautner [Sat, 28 Sep 2013 22:58:38 +0000 (15:58 -0700)]
Ensure correct window ordering.

Make sure that moveStackWindowsLocked() is called every time that the
stack ordering changes. This will rebuild the window list. Previously
the call was being made after the moveStack() call which got forgotten
in the addAppToken() causing the home stack to obscure incoming phone
and video calls.

Fixes bug 10023223.
Fixes bug 10678010.
Maybe fixes bug 10858941.

Change-Id: I59922dc979a19210008eac1f528704984c63c886

10 years agoRemove home package name methods.
Craig Mautner [Sat, 28 Sep 2013 19:35:25 +0000 (12:35 -0700)]
Remove home package name methods.

Do not use the shortcut of the package name to identify the home
activity.

Fixes bug 10963726.
Fixes bug 10920950.

Change-Id: I725781a26672b055a816994aee6ea458a7f07c88

10 years agoDon't kill home process with the rest of its package.
Craig Mautner [Sat, 28 Sep 2013 20:46:38 +0000 (13:46 -0700)]
Don't kill home process with the rest of its package.

Killing the GEL search results was killing everything in its package.
This fix keeps the home process from being killed when a task in its
package is killed.

Fixes bug 10927223.

Change-Id: I56e75f0a0118885a1604cbd70320bbdb4f8cf1a2

10 years agoPrinters in the list of printers change position.
Svetoslav Ganov [Sat, 28 Sep 2013 19:09:23 +0000 (12:09 -0700)]
Printers in the list of printers change position.

While the logic was correct the array map that holds the list of pritners
does not keep the position of the items constant. Switched to linked hash
map which gives this guarantee.

bug:10955751

Change-Id: Idbbe14d753e6a1ad1002f2289b10cb62d7f9f040

10 years agoMerge "Ignore historical printer records for installed services" into klp-dev
Svetoslav [Sat, 28 Sep 2013 02:18:33 +0000 (02:18 +0000)]
Merge "Ignore historical printer records for installed services" into klp-dev

10 years agoKeyguard transport controls: fullscreen art
Adam Powell [Sat, 28 Sep 2013 00:43:53 +0000 (17:43 -0700)]
Keyguard transport controls: fullscreen art

When the transport controls are active, set the relevant art as a
fullscreen background for the keyguard.

Change-Id: I1e8a87f242153a2a2c5bf94dbd15f0fd3e07dde3

10 years agoIgnore historical printer records for installed services
Svetoslav [Sat, 28 Sep 2013 01:29:53 +0000 (18:29 -0700)]
Ignore historical printer records for installed services

When loading historical records for previously used printers we
now ignore the ones whose target print service is not installed.

bug:10955652

Change-Id: Ib295e7d88ed3c308ef6d8a11bdc1792ebbb6d526

10 years agoMerge "Fix missing transport in keyguard" into klp-dev
Jim Miller [Sat, 28 Sep 2013 01:30:20 +0000 (01:30 +0000)]
Merge "Fix missing transport in keyguard" into klp-dev

10 years agoMerge "Fix permissions on WindowManagerService.showAssistant()" into klp-dev
Jim Miller [Sat, 28 Sep 2013 01:18:17 +0000 (01:18 +0000)]
Merge "Fix permissions on WindowManagerService.showAssistant()" into klp-dev

10 years agoFix missing transport in keyguard
Jim Miller [Fri, 27 Sep 2013 01:11:38 +0000 (18:11 -0700)]
Fix missing transport in keyguard

Keyguard wasn't re-establishing a connection to the RCD after a
crash.  This results in a missing transport until the session reboots.

Fixes bug 10204949

Change-Id: Ia030eacbcf1e3cfa9ee948c841c95d2040f9c1e0

10 years agoMerge "Print job files and print job records not always cleaned up." into klp-dev
Svetoslav Ganov [Sat, 28 Sep 2013 01:06:51 +0000 (01:06 +0000)]
Merge "Print job files and print job records not always cleaned up." into klp-dev

10 years agoMerge "Centralize handleAppDied and fix return to home." into klp-dev
Craig Mautner [Sat, 28 Sep 2013 00:43:56 +0000 (00:43 +0000)]
Merge "Centralize handleAppDied and fix return to home." into klp-dev

10 years agoMerge "Add badging of Payment apps" into klp-dev
Adam Lesinski [Sat, 28 Sep 2013 00:36:29 +0000 (00:36 +0000)]
Merge "Add badging of Payment apps" into klp-dev

10 years agoMerge "Add support for dumping new badging" into klp-dev
Adam Lesinski [Sat, 28 Sep 2013 00:31:33 +0000 (00:31 +0000)]
Merge "Add support for dumping new badging" into klp-dev

10 years agoMerge "Adding a timeout for waiting to get the selected printer's capabilities."...
Svetoslav Ganov [Sat, 28 Sep 2013 00:28:07 +0000 (00:28 +0000)]
Merge "Adding a timeout for waiting to get the selected printer's capabilities." into klp-dev

10 years agoMerge "New roots UX, async, performance, docs." into klp-dev
Jeff Sharkey [Sat, 28 Sep 2013 00:27:29 +0000 (00:27 +0000)]
Merge "New roots UX, async, performance, docs." into klp-dev

10 years agoPrint job files and print job records not always cleaned up.
Svetoslav Ganov [Fri, 27 Sep 2013 17:48:31 +0000 (10:48 -0700)]
Print job files and print job records not always cleaned up.

1. We want the files for a print job to be removed as early as possible
   typically because the print job was cancelled, completed, the app
   or the spooler crashed during print job construction. We were keeping
   around in the spooler and hence to disc infos for jobs that are in
   final state since the app that created them may hold a reference to
   a local print job objec whose info it can access to get the latest
   print job state potentially after the job reached final state. The
   issue was that we were persisting to disc created print jobs which
   were during construction which requires careful handling for the
   various cases above. This is tricky and error prone.

   We used to tell the spooler to forget the print jobs infos when the
   app that created them died. The implementation to forget a print
   job was not careful and was nuking currently running print jobs in
   addition to the ones in a terminal state. Further, if the app dies
   before a print job is completed we were left with a stale print
   job in the spooler since we missed the signal to forget it (assuming
   we forget only inactive jobs). These issues suggest that the approach
   is problematic.

   Now we have a cache of print job infos for the jobs an app created.
   This cache is updated when the state of a print jobs changes using
   the new print job state observation code. When the app dies we
   remove the cached jobs for that app. Now if the app calls to get
   the print jobs it gets the cached ones, i.e. the print jobs it
   created during its lifetime, plus the print jobs that are still
   active fetched from the spooler. Note that transient state cannot
   be kept in the spooler since we unbind from it if there is no
   work and it may get killed.

2. Improved the print sub-system logging code to show the cached
   print job infos for apps and also dump the print job PDF file
   names.

bug:10958357

Change-Id: I6f7c1968b6b7ba5be182a10df044ff7ea1fc3a61

10 years agoMerge "Add missing constructor parameter to KeyEvent" into klp-dev
Michael Wright [Sat, 28 Sep 2013 00:26:29 +0000 (00:26 +0000)]
Merge "Add missing constructor parameter to KeyEvent" into klp-dev

10 years agoNew roots UX, async, performance, docs.
Jeff Sharkey [Fri, 27 Sep 2013 23:44:11 +0000 (16:44 -0700)]
New roots UX, async, performance, docs.

Yet another iteration from UX on how roots should be ordered.  Since
we no longer categorize by type, remove from public API.  Updated
asset drop with new dividers.

Update public API docs to be explicit about required columns.  Hide
flags and columns that aren't required for third-party apps.

Move remainder of potentially blocking work to AsyncTasks, including
creating directories, picked root resolution, and creation of new
documents once picked.

Improve performance of layouts by removing baseline alignment and
reduce hierarchy depth.  Set alpha on ImageViews directly to avoid
offscreen rendering hit.

Limit returned recents to 45 days.  Show load in recents when still
waiting for backends.  Show empty message when no recents stacks to
create from.  Use unique key when saving recent stacks.

Bug: 10941423108194541096441210960718
Change-Id: I08cf589dcda7e203acf67928f4d30322ae36ee94

10 years agoCentralize handleAppDied and fix return to home.
Craig Mautner [Sat, 28 Sep 2013 00:02:21 +0000 (17:02 -0700)]
Centralize handleAppDied and fix return to home.

The home activity was being returned to when any activity in a task
that was launched from home crashed. If there were still activities
left in the task then the crash should have brought up those
activities next, not home.

This may be a partial fix for crashes where the back stack was showing
up under launcher icons. Bug 10858941.

Change-Id: I840a25bd8395bfce46f4e21b112d78b12884706d

10 years agoMerge "Camera2: remove CameraDevice#getProperties" into klp-dev
Zhijun He [Fri, 27 Sep 2013 23:58:27 +0000 (23:58 +0000)]
Merge "Camera2: remove CameraDevice#getProperties" into klp-dev

10 years agoFix permissions on WindowManagerService.showAssistant()
Jim Miller [Thu, 19 Sep 2013 22:50:11 +0000 (15:50 -0700)]
Fix permissions on WindowManagerService.showAssistant()

Since binder call permissions are not transitive by design,
the proper way to fix this is to have the call talk directly
to keyguard from the navigation bar.

Fixes bug 9409008

Change-Id: Ibd90a79bb638c969b514455a2ad93c6ff668222d

10 years agoam 584d4f69: am 57177492: am 4a9999f1: remove Remembering Your Users class from nav...
Scott Main [Fri, 27 Sep 2013 23:04:16 +0000 (16:04 -0700)]
am 584d4f69: am 57177492: am 4a9999f1: remove Remembering Your Users class from nav. Separate CL will redirect these pages to the Google Auth doc.

* commit '584d4f69e2f8e904f50169ad223b244de72aa5ed':
  remove Remembering Your Users class from nav. Separate CL will redirect these pages to the Google Auth doc.

10 years agoam 01c2e173: (-s ours) am 49039929: am 49eb1d95: am d084cc44: am 4f59a921: am 12fd0f1...
Amith Yamasani [Fri, 27 Sep 2013 22:58:08 +0000 (15:58 -0700)]
am 01c2e173: (-s ours) am 49039929: am 49eb1d95: am d084cc44: am 4f59a921: am 12fd0f16: am f6a0c116: am 9bf1a139: am 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate

* commit '01c2e173d99cf4dd1c91cacb9b461082091cbeb3':
  Don't instantiate non-Fragments in Fragment.instantiate

10 years agoam afd85f82: am c6d085a5: am 37453a83: Merge "Docs: Changed" into jb-mr2-docs
David Friedman [Fri, 27 Sep 2013 22:58:05 +0000 (15:58 -0700)]
am afd85f82: am c6d085a5: am 37453a83: Merge "Docs: Changed" into jb-mr2-docs

* commit 'afd85f820e032e12887c820883bf1f7d1df14374':
  Docs: Changed

10 years agoam f0a5a844: am 165489da: am 2fe85a10: Merge "Docs: "radio button"->"checkbox" in...
David Friedman [Fri, 27 Sep 2013 22:58:02 +0000 (15:58 -0700)]
am f0a5a844: am 165489da: am 2fe85a10: Merge "Docs: "radio button"->"checkbox" in "Tip" at bottom of doc Bug: 10641902" into jb-mr2-docs

* commit 'f0a5a844a94e3eec386b8fb08d7b405e1e95ed6f':
  Docs: "radio button"->"checkbox" in "Tip" at bottom of doc Bug: 10641902

10 years agoam ff379fc4: am 707bac2b: am 0b1cfc1f: Merge "Docs: In the section "Determine if...
David Friedman [Fri, 27 Sep 2013 22:57:59 +0000 (15:57 -0700)]
am ff379fc4: am 707bac2b: am 0b1cfc1f: Merge "Docs: In the section "Determine if You Have an Internet Connection," I added to the code snippet so that it also checks whether activeNetwork is null. Bug: 10797360" into jb-mr2-docs

* commit 'ff379fc45c70ab92e6b5422646c9aa67a86002e0':
  Docs: In the section "Determine if You Have an Internet Connection," I added to the code snippet so that it also checks whether activeNetwork is null. Bug: 10797360

10 years agoam 233a341b: am 1b8e3197: am 8c38ea39: Merge "Docs: Fixed wrong parameter in SoundPoo...
David Friedman [Fri, 27 Sep 2013 22:57:56 +0000 (15:57 -0700)]
am 233a341b: am 1b8e3197: am 8c38ea39: Merge "Docs: Fixed wrong parameter in SoundPool file; fixed typo in security file. Bug: 10807931 10796994" into jb-mr2-docs

* commit '233a341b6d9477f7f41d5a954fa7f7a150972ccb':
  Docs: Fixed wrong parameter in SoundPool file; fixed typo in security file. Bug: 10807931 10796994

10 years agoam 657343d7: am b648f950: am 23bd5927: Docs: Fixed a typo, such that "C+++"-->"C...
David Friedman [Fri, 27 Sep 2013 22:57:53 +0000 (15:57 -0700)]
am 657343d7: am b648f950: am 23bd5927: Docs: Fixed a typo, such that "C+++"-->"C++"; there was supposed to be another file with extra apostrophes, but it looks like that one had already been fixed. Bug: 10796099

* commit '657343d782b5ddd8144c724d9131d3f51f39cd8c':
  Docs: Fixed a typo, such that "C+++"-->"C++"; there was supposed to be another file with extra apostrophes, but it looks like that one had already been fixed. Bug: 10796099

10 years agoMerge "Make SubtitleController thread safe" into klp-dev
Lajos Molnar [Fri, 27 Sep 2013 22:57:22 +0000 (22:57 +0000)]
Merge "Make SubtitleController thread safe" into klp-dev

10 years agoam 57177492: am 4a9999f1: remove Remembering Your Users class from nav. Separate...
Scott Main [Fri, 27 Sep 2013 22:36:28 +0000 (15:36 -0700)]
am 57177492: am 4a9999f1: remove Remembering Your Users class from nav. Separate CL will redirect these pages to the Google Auth doc.

* commit '571774922ce5ace09c746fdb83cbdce243dad3e4':
  remove Remembering Your Users class from nav. Separate CL will redirect these pages to the Google Auth doc.

10 years agoam 4a9999f1: remove Remembering Your Users class from nav. Separate CL will redirect...
Scott Main [Fri, 27 Sep 2013 22:33:18 +0000 (15:33 -0700)]
am 4a9999f1: remove Remembering Your Users class from nav. Separate CL will redirect these pages to the Google Auth doc.

* commit '4a9999f1ad20830df4aa38d3d3a42d73cb9986f0':
  remove Remembering Your Users class from nav. Separate CL will redirect these pages to the Google Auth doc.

10 years agoremove Remembering Your Users class from nav.
Scott Main [Fri, 27 Sep 2013 22:24:35 +0000 (15:24 -0700)]
remove Remembering Your Users class from nav.
Separate CL will redirect these pages to the Google Auth doc.

Change-Id: Ib47b8e0fffbe776626b463c1199f435a82e64170

10 years agoMake SubtitleController thread safe
Lajos Molnar [Fri, 20 Sep 2013 15:45:31 +0000 (08:45 -0700)]
Make SubtitleController thread safe

Add the concept of an anchor looper.
Allow show/hide/selectTrack/selectDefaultTrack to be called from thread
other than anchor looper.

Change-Id: Iaf2f3d3c46d1b00a0a24156745ec16b301c80c04
Signed-off-by: Lajos Molnar <lajos@google.com>
Bug: 10919206

10 years agoCamera2: remove CameraDevice#getProperties
Zhijun He [Fri, 27 Sep 2013 20:43:25 +0000 (13:43 -0700)]
Camera2: remove CameraDevice#getProperties

Also cleanup some unnecessary imports.

Bug: 10360518
Change-Id: Id54aa4c9e3dff2bd354e3ebb83687b000842ea3f

10 years agoAdd missing constructor parameter to KeyEvent
Michael Wright [Fri, 27 Sep 2013 21:03:13 +0000 (14:03 -0700)]
Add missing constructor parameter to KeyEvent

When in the SyntheticKeyHandler, a missing constructor paramater caused the
wrong contstructor to be called. This would cause the device id, scan code and
flags to be incorrect.

Bug: 10966229
Change-Id: Ib84ef88d28c0da517b376c5493a851cf8fe0a9f7

10 years agoFix for jank when fast-scrolling DeskClock's world cities list in RTL
Raph Levien [Fri, 27 Sep 2013 20:36:24 +0000 (13:36 -0700)]
Fix for jank when fast-scrolling DeskClock's world cities list in RTL

This is a fix for bug 10863979.

The onPreDraw() method in TextView was canceling the draw every time a
the horizontal scroll changed. These dropped frames were visible as
jank. The fix is to never cancel the draw. It seems likely that the
previous rationale for canceling draw is no longer valid, due to other
fixes, because the scroll state will have been fully updated.

Change-Id: I8c2da5450723f993055a49b1cb57320c08f2a11e

10 years agoam 49039929: am 49eb1d95: am d084cc44: am 4f59a921: am 12fd0f16: am f6a0c116: am...
Amith Yamasani [Fri, 27 Sep 2013 18:55:34 +0000 (11:55 -0700)]
am 49039929: am 49eb1d95: am d084cc44: am 4f59a921: am 12fd0f16: am f6a0c116: am 9bf1a139: am 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate

* commit '490399292d2160cf94231df7a9e07e8aa8237489':
  Don't instantiate non-Fragments in Fragment.instantiate

10 years agoam 49eb1d95: am d084cc44: am 4f59a921: am 12fd0f16: am f6a0c116: am 9bf1a139: am...
Amith Yamasani [Fri, 27 Sep 2013 18:51:09 +0000 (11:51 -0700)]
am 49eb1d95: am d084cc44: am 4f59a921: am 12fd0f16: am f6a0c116: am 9bf1a139: am 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate

* commit '49eb1d958198b2a88455c340c9d072469d065785':
  Don't instantiate non-Fragments in Fragment.instantiate

10 years agoam d084cc44: am 4f59a921: am 12fd0f16: am f6a0c116: am 9bf1a139: am 72c5e376: am...
Amith Yamasani [Fri, 27 Sep 2013 18:46:29 +0000 (11:46 -0700)]
am d084cc44: am 4f59a921: am 12fd0f16: am f6a0c116: am 9bf1a139: am 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate

* commit 'd084cc44eb59407c851399d548256c145eb45342':
  Don't instantiate non-Fragments in Fragment.instantiate

10 years agoam 4f59a921: am 12fd0f16: am f6a0c116: am 9bf1a139: am 72c5e376: am ba1ae3af: am...
Amith Yamasani [Fri, 27 Sep 2013 18:31:18 +0000 (11:31 -0700)]
am 4f59a921: am 12fd0f16: am f6a0c116: am 9bf1a139: am 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate

* commit '4f59a9216e76207a7003bfe010076aa78eee629a':
  Don't instantiate non-Fragments in Fragment.instantiate

10 years agoam 12fd0f16: am f6a0c116: am 9bf1a139: am 72c5e376: am ba1ae3af: am 42786418: Don...
Amith Yamasani [Fri, 27 Sep 2013 18:25:20 +0000 (11:25 -0700)]
am 12fd0f16: am f6a0c116: am 9bf1a139: am 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate

* commit '12fd0f1644b28b6938a504492397e8ca8d38a1c5':
  Don't instantiate non-Fragments in Fragment.instantiate

10 years agoam f6a0c116: am 9bf1a139: am 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate...
Amith Yamasani [Fri, 27 Sep 2013 18:23:08 +0000 (11:23 -0700)]
am f6a0c116: am 9bf1a139: am 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate

* commit 'f6a0c11615bd5c2c934527a0b20ba13f958913c4':
  Don't instantiate non-Fragments in Fragment.instantiate

10 years agoAdd badging of Payment apps
Adam Lesinski [Fri, 27 Sep 2013 18:14:57 +0000 (11:14 -0700)]
Add badging of Payment apps

HCE apps that declare themselves as payment apps will receive
that badge when running aapt dump badging.

bug:10899864
Change-Id: I7c095214412465ad7a925285d6167e12de16b600

10 years agoam 9bf1a139: am 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments...
Amith Yamasani [Fri, 27 Sep 2013 18:20:20 +0000 (11:20 -0700)]
am 9bf1a139: am 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate

* commit '9bf1a1394852ad773d590d1cc60c5e50be8cb1b9':
  Don't instantiate non-Fragments in Fragment.instantiate

10 years agoam 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment...
Amith Yamasani [Fri, 27 Sep 2013 18:17:57 +0000 (11:17 -0700)]
am 72c5e376: am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate

* commit '72c5e376879fb72548ef2a1c8d5b063853d174ee':
  Don't instantiate non-Fragments in Fragment.instantiate

10 years agoam ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate
Amith Yamasani [Fri, 27 Sep 2013 18:14:23 +0000 (11:14 -0700)]
am ba1ae3af: am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate

* commit 'ba1ae3af76466b94efedf06c4efac365fd7b9300':
  Don't instantiate non-Fragments in Fragment.instantiate

10 years agoAdd support for dumping new badging
Adam Lesinski [Thu, 26 Sep 2013 00:03:50 +0000 (17:03 -0700)]
Add support for dumping new badging

APKs with AccessibilityServices, PrintServices, and or DeviceAdmin
will have those services dumped when running 'aapt dump badging'.

bug:10899864
Change-Id: I9c1f1f36c397b128dca802510368573a54977459

10 years agoam 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate
Amith Yamasani [Fri, 27 Sep 2013 18:10:36 +0000 (11:10 -0700)]
am 42786418: Don\'t instantiate non-Fragments in Fragment.instantiate

* commit '427864188dfc5dd803b15797379b9dc6673abd16':
  Don't instantiate non-Fragments in Fragment.instantiate

10 years agoMerge "Add warning about using MergeCursor in CursorAdapter" into klp-dev
Alan Viverette [Fri, 27 Sep 2013 18:03:47 +0000 (18:03 +0000)]
Merge "Add warning about using MergeCursor in CursorAdapter" into klp-dev

10 years agoam c6d085a5: am 37453a83: Merge "Docs: Changed" into jb-mr2-docs
David Friedman [Fri, 27 Sep 2013 17:37:27 +0000 (10:37 -0700)]
am c6d085a5: am 37453a83: Merge "Docs: Changed" into jb-mr2-docs

* commit 'c6d085a5179311ba3d7395360e6e427fa4fb076c':
  Docs: Changed

10 years agoam 165489da: am 2fe85a10: Merge "Docs: "radio button"->"checkbox" in "Tip" at bottom...
David Friedman [Fri, 27 Sep 2013 17:37:22 +0000 (10:37 -0700)]
am 165489da: am 2fe85a10: Merge "Docs: "radio button"->"checkbox" in "Tip" at bottom of doc Bug: 10641902" into jb-mr2-docs

* commit '165489da28ff5b77d84095461934e86da8591f85':
  Docs: "radio button"->"checkbox" in "Tip" at bottom of doc Bug: 10641902

10 years agoam 707bac2b: am 0b1cfc1f: Merge "Docs: In the section "Determine if You Have an Inter...
David Friedman [Fri, 27 Sep 2013 17:37:12 +0000 (10:37 -0700)]
am 707bac2b: am 0b1cfc1f: Merge "Docs: In the section "Determine if You Have an Internet Connection," I added to the code snippet so that it also checks whether activeNetwork is null. Bug: 10797360" into jb-mr2-docs

* commit '707bac2bdc40e3d98957e134331279534adf8e70':
  Docs: In the section "Determine if You Have an Internet Connection," I added to the code snippet so that it also checks whether activeNetwork is null. Bug: 10797360

10 years agoam 1b8e3197: am 8c38ea39: Merge "Docs: Fixed wrong parameter in SoundPool file; fixed...
David Friedman [Fri, 27 Sep 2013 17:37:07 +0000 (10:37 -0700)]
am 1b8e3197: am 8c38ea39: Merge "Docs: Fixed wrong parameter in SoundPool file; fixed typo in security file. Bug: 10807931 10796994" into jb-mr2-docs

* commit '1b8e319784a1bb166aaa6b0f1dc306f8d4b6e57f':
  Docs: Fixed wrong parameter in SoundPool file; fixed typo in security file. Bug: 10807931 10796994

10 years agoam b648f950: am 23bd5927: Docs: Fixed a typo, such that "C+++"-->"C++"; there was...
David Friedman [Fri, 27 Sep 2013 17:33:15 +0000 (10:33 -0700)]
am b648f950: am 23bd5927: Docs: Fixed a typo, such that "C+++"-->"C++"; there was supposed to be another file with extra apostrophes, but it looks like that one had already been fixed. Bug: 10796099

* commit 'b648f9509b17bad806c907ffa5270901a86e6c06':
  Docs: Fixed a typo, such that "C+++"-->"C++"; there was supposed to be another file with extra apostrophes, but it looks like that one had already been fixed. Bug: 10796099

10 years agoam 37453a83: Merge "Docs: Changed" into jb-mr2-docs
David Friedman [Fri, 27 Sep 2013 17:30:09 +0000 (10:30 -0700)]
am 37453a83: Merge "Docs: Changed" into jb-mr2-docs

* commit '37453a8353a190233c94c9f40261feef6a9ebf08':
  Docs: Changed

10 years agoam 2fe85a10: Merge "Docs: "radio button"->"checkbox" in "Tip" at bottom of doc Bug...
David Friedman [Fri, 27 Sep 2013 17:30:06 +0000 (10:30 -0700)]
am 2fe85a10: Merge "Docs: "radio button"->"checkbox" in "Tip" at bottom of doc Bug: 10641902" into jb-mr2-docs

* commit '2fe85a10abcb216dded99792466124f7f80574f2':
  Docs: "radio button"->"checkbox" in "Tip" at bottom of doc Bug: 10641902

10 years agoam 0b1cfc1f: Merge "Docs: In the section "Determine if You Have an Internet Connectio...
David Friedman [Fri, 27 Sep 2013 17:30:03 +0000 (10:30 -0700)]
am 0b1cfc1f: Merge "Docs: In the section "Determine if You Have an Internet Connection," I added to the code snippet so that it also checks whether activeNetwork is null. Bug: 10797360" into jb-mr2-docs

* commit '0b1cfc1fb64a1b24f107abf106eb839287f65cfb':
  Docs: In the section "Determine if You Have an Internet Connection," I added to the code snippet so that it also checks whether activeNetwork is null. Bug: 10797360

10 years agoam 8c38ea39: Merge "Docs: Fixed wrong parameter in SoundPool file; fixed typo in...
David Friedman [Fri, 27 Sep 2013 17:30:01 +0000 (10:30 -0700)]
am 8c38ea39: Merge "Docs: Fixed wrong parameter in SoundPool file; fixed typo in security file. Bug: 10807931 10796994" into jb-mr2-docs

* commit '8c38ea39203016dde95bc5dd68f27f6f45096784':
  Docs: Fixed wrong parameter in SoundPool file; fixed typo in security file. Bug: 10807931 10796994

10 years agoDon't instantiate non-Fragments in Fragment.instantiate
Amith Yamasani [Thu, 26 Sep 2013 23:14:36 +0000 (16:14 -0700)]
Don't instantiate non-Fragments in Fragment.instantiate

Backport...

Fix for PreferenceActivities being invoked with non-Fragment class
names via extras in the intent. Make sure that the constructor
doesn't get called if the class name is not for a Fragment type.
Bug: 9901133
Change-Id: I227756fb4246deac796cee09077e482237bb5b0d

10 years agoam 23bd5927: Docs: Fixed a typo, such that "C+++"-->"C++"; there was supposed to...
David Friedman [Fri, 27 Sep 2013 17:26:23 +0000 (10:26 -0700)]
am 23bd5927: Docs: Fixed a typo, such that "C+++"-->"C++"; there was supposed to be another file with extra apostrophes, but it looks like that one had already been fixed. Bug: 10796099

* commit '23bd5927f1c82f3f63288fbee4e7c460fca3dc4e':
  Docs: Fixed a typo, such that "C+++"-->"C++"; there was supposed to be another file with extra apostrophes, but it looks like that one had already been fixed. Bug: 10796099

10 years agoMerge "Docs: Changed" into jb-mr2-docs
David Friedman [Fri, 27 Sep 2013 17:25:42 +0000 (17:25 +0000)]
Merge "Docs: Changed" into jb-mr2-docs

10 years agoMerge "Docs: "radio button"->"checkbox" in "Tip" at bottom of doc Bug: 10641902"...
David Friedman [Fri, 27 Sep 2013 17:25:29 +0000 (17:25 +0000)]
Merge "Docs: "radio button"->"checkbox" in "Tip" at bottom of doc Bug: 10641902" into jb-mr2-docs

10 years agoMerge "Docs: In the section "Determine if You Have an Internet Connection," I added...
David Friedman [Fri, 27 Sep 2013 17:25:16 +0000 (17:25 +0000)]
Merge "Docs: In the section "Determine if You Have an Internet Connection," I added to the code snippet so that it also checks whether activeNetwork is null. Bug: 10797360" into jb-mr2-docs

10 years agoMerge "Docs: Fixed wrong parameter in SoundPool file; fixed typo in security file...
David Friedman [Fri, 27 Sep 2013 17:24:41 +0000 (17:24 +0000)]
Merge "Docs: Fixed wrong parameter in SoundPool file; fixed typo in security file. Bug: 10807931 10796994" into jb-mr2-docs

10 years agoDocs: Fixed wrong parameter in SoundPool file; fixed typo in security file.
David Friedman [Fri, 27 Sep 2013 17:04:48 +0000 (10:04 -0700)]
Docs: Fixed wrong parameter in SoundPool file; fixed typo in security file.
Bug: 10807931 10796994

Change-Id: I8c8e07c3e8606d5983c2545fa6638af45650d27c

10 years agoAdding a timeout for waiting to get the selected printer's capabilities.
Svetoslav Ganov [Fri, 27 Sep 2013 04:12:47 +0000 (21:12 -0700)]
Adding a timeout for waiting to get the selected printer's capabilities.

A print service may choose to provide only the printer info and then when
it is requested to start tracking the state of the printer, the service
should provide the printer capabilities. If the capabilities are not
received within ten seconds we mark the printer as unavailable and stop
tracking it.

bug:10748639

Change-Id: I9171cb5dc116fd321c23a8e4ab55109448e2fc6a

10 years agoMerge "API cleanups for Notification." into klp-dev
Daniel Sandler [Fri, 27 Sep 2013 16:08:45 +0000 (16:08 +0000)]
Merge "API cleanups for Notification." into klp-dev

10 years agoAPI cleanups for Notification.
Daniel Sandler [Mon, 23 Sep 2013 17:35:35 +0000 (13:35 -0400)]
API cleanups for Notification.

- Calling build() on a Style now goes through the same
  codepath as calling build() on the Builder.
- Documented new constants and unhidden classes.
- Fixed crash in Action.clone().

Bug: 10112103
Bug: 10461196
Change-Id: I08cd94790b538a361ccf8ff3682f6a86a7812b95