OSDN Git Service

android-x86/frameworks-base.git
11 years agoMerge "Optimize RTL properties resolution" into jb-mr2-dev
Fabrice Di Meglio [Sat, 4 May 2013 00:48:12 +0000 (00:48 +0000)]
Merge "Optimize RTL properties resolution" into jb-mr2-dev

11 years agoOptimize RTL properties resolution
Fabrice Di Meglio [Fri, 3 May 2013 23:51:55 +0000 (16:51 -0700)]
Optimize RTL properties resolution

- dont bother children about resolving RTL properties if the ViewGroup parent
has not done anything

Change-Id: Iedf8a337097e04e1ab0054d59fc347e06b347ea7

11 years agoMerge "Idle maintenance scheduling broken." into jb-mr2-dev
Svetoslav [Fri, 3 May 2013 23:33:09 +0000 (23:33 +0000)]
Merge "Idle maintenance scheduling broken." into jb-mr2-dev

11 years agoMerge "Multiple bindings to the same accessiblity serice if it dies." into jb-mr2-dev
Svetoslav Ganov [Fri, 3 May 2013 21:04:04 +0000 (21:04 +0000)]
Merge "Multiple bindings to the same accessiblity serice if it dies." into jb-mr2-dev

11 years agoIdle maintenance scheduling broken.
Svetoslav [Fri, 3 May 2013 18:24:26 +0000 (11:24 -0700)]
Idle maintenance scheduling broken.

1. The scheduling was relying on receiving battery level broadcasts
   which however are not sent if the device is asleep. The maintenance
   window was not bound and we could miss a frame if the user did
   not interact the device longer than the min time between two
   maintenance windows.

2. Hide the idle maintenance intents since this will be rewritten
   to user services.

bug:8688454

Change-Id: I17b421b09823cb46ec218cabda19e02432d94f8c

11 years agoMerge "Fix issue #8798662: NPE in..." into jb-mr2-dev
Dianne Hackborn [Fri, 3 May 2013 20:47:38 +0000 (20:47 +0000)]
Merge "Fix issue #8798662: NPE in..." into jb-mr2-dev

11 years agoFix issue #8798662: NPE in...
Dianne Hackborn [Fri, 3 May 2013 19:07:51 +0000 (12:07 -0700)]
Fix issue #8798662: NPE in...

...com.android.server.am.ServiceRecord.postNotification()

Change-Id: I3403bc50eb95d410183fc60ef252775a688b6290

11 years agoMerge "Fix a NPE in MenuItemImpl when setting null ActionProvider" into jb-mr2-dev
Adam Powell [Fri, 3 May 2013 18:58:35 +0000 (18:58 +0000)]
Merge "Fix a NPE in MenuItemImpl when setting null ActionProvider" into jb-mr2-dev

11 years agoam d6aa68b6: am 564a533e: am 66442b56: am 775deb88: am 9af97443: Merge "docs: Added...
quddusc [Fri, 3 May 2013 18:54:47 +0000 (11:54 -0700)]
am d6aa68b6: am 564a533e: am 66442b56: am 775deb88: am 9af97443: Merge "docs: Added landing page for Google Play Games Platform Services. cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71" into jb-mr1.1-docs

* commit 'd6aa68b6d66b01921855070ceb06e805077123ab':
  docs: Added landing page for Google Play Games Platform Services. cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71

11 years agoam 564a533e: am 66442b56: am 775deb88: am 9af97443: Merge "docs: Added landing page...
quddusc [Fri, 3 May 2013 18:52:35 +0000 (11:52 -0700)]
am 564a533e: am 66442b56: am 775deb88: am 9af97443: Merge "docs: Added landing page for Google Play Games Platform Services. cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71" into jb-mr1.1-docs

* commit '564a533e8a176541947a52261ac6e8ba3b2b5b21':
  docs: Added landing page for Google Play Games Platform Services. cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71

11 years agoam 66442b56: am 775deb88: am 9af97443: Merge "docs: Added landing page for Google...
quddusc [Fri, 3 May 2013 18:50:04 +0000 (11:50 -0700)]
am 66442b56: am 775deb88: am 9af97443: Merge "docs: Added landing page for Google Play Games Platform Services. cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71" into jb-mr1.1-docs

* commit '66442b566f51edb41f8d18f702c219c4a4c8c3df':
  docs: Added landing page for Google Play Games Platform Services. cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71

11 years agoam 775deb88: am 9af97443: Merge "docs: Added landing page for Google Play Games Platf...
quddusc [Fri, 3 May 2013 18:47:19 +0000 (11:47 -0700)]
am 775deb88: am 9af97443: Merge "docs: Added landing page for Google Play Games Platform Services. cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71" into jb-mr1.1-docs

* commit '775deb88945e4acffba2d91a89931a426d9ca4bf':
  docs: Added landing page for Google Play Games Platform Services. cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71

11 years agoam 9af97443: Merge "docs: Added landing page for Google Play Games Platform Services...
quddusc [Fri, 3 May 2013 18:45:08 +0000 (11:45 -0700)]
am 9af97443: Merge "docs: Added landing page for Google Play Games Platform Services. cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71" into jb-mr1.1-docs

* commit '9af9744319f389b6583b8c39ea65bf90afc10fe5':
  docs: Added landing page for Google Play Games Platform Services. cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71

11 years agoMerge "docs: Added landing page for Google Play Games Platform Services. cherrypick...
quddusc [Fri, 3 May 2013 18:42:44 +0000 (18:42 +0000)]
Merge "docs: Added landing page for Google Play Games Platform Services. cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71" into jb-mr1.1-docs

11 years agoFix a NPE in MenuItemImpl when setting null ActionProvider
Adam Powell [Fri, 3 May 2013 18:03:10 +0000 (11:03 -0700)]
Fix a NPE in MenuItemImpl when setting null ActionProvider

Change-Id: I00be010b2197d0f41d0e45b3814474d3ad0c3295

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 3 May 2013 17:59:40 +0000 (10:59 -0700)]
Import translations. DO NOT MERGE

Change-Id: I87827c5011c14cf265a7fe439cefdcd6a5c8db82
Auto-generated-cl: translation import

11 years agoMultiple bindings to the same accessiblity serice if it dies.
Svetoslav Ganov [Fri, 3 May 2013 08:13:05 +0000 (01:13 -0700)]
Multiple bindings to the same accessiblity serice if it dies.

1. When a service dies we clear its state and remove it from the bound services waiting
   for new onServiceConnected call in which to initialize and add the service. The
   problem is that after clearing and removing a dead service there is a call to
   onUserStateChangedLocked with will end up rebinding to the service, so we get
   multiple onServiceConnected calls as a result of which we add the service twice and
   it becomes a mess. Note that every time the service dies we end up being bound to
   it twice as many times - royal mess! onUserStateChangedLocked is not even needed
   since we cleare and remove the serivce and this method will be called when
   the service is recreated.

2. When a service dies and is recreated by the system we were not adding it properly
   since we regarded only services that we bond to and wait for the connecton. Now
   we are also regarding service which died and are recreated.

bug:8796109

Change-Id: I5ec60c67bd3b057446bb8d90b48511c35d45289d

11 years agoMerge "Change the initial disabled state of disabled IMEs" into jb-mr2-dev
Satoshi Kataoka [Fri, 3 May 2013 02:34:39 +0000 (02:34 +0000)]
Merge "Change the initial disabled state of disabled IMEs" into jb-mr2-dev

11 years agoMerge "Really make Surface thread-safe." into jb-mr2-dev
Jeff Brown [Fri, 3 May 2013 02:11:02 +0000 (02:11 +0000)]
Merge "Really make Surface thread-safe." into jb-mr2-dev

11 years agoMerge "Fix issue #8768456: Settings > App Info under reports..." into jb-mr2-dev
Dianne Hackborn [Thu, 2 May 2013 22:11:35 +0000 (22:11 +0000)]
Merge "Fix issue #8768456: Settings > App Info under reports..." into jb-mr2-dev

11 years agoMerge "Send package-changed broadcasts to the correct users" into jb-mr2-dev
Christopher Tate [Thu, 2 May 2013 22:08:18 +0000 (22:08 +0000)]
Merge "Send package-changed broadcasts to the correct users" into jb-mr2-dev

11 years agoSend package-changed broadcasts to the correct users
Christopher Tate [Thu, 2 May 2013 20:27:27 +0000 (13:27 -0700)]
Send package-changed broadcasts to the correct users

Also be sure to drop any pending package-changed broadcasts
that are targeted to a now-removed user.

Bug 8594153

Change-Id: Ib14874b4a67b968bbf6ca12ee095c85383aff324

11 years agoFix issue #8768456: Settings > App Info under reports...
Dianne Hackborn [Thu, 2 May 2013 01:54:11 +0000 (18:54 -0700)]
Fix issue #8768456: Settings > App Info under reports...

...app storage size for apps w/ .so files

The lib directories are tagged with the apk install number,
so must be explicitly passed down to installd.

Change-Id: Ic37b03726f9a7405eb05956703f8198223b22595

11 years agoChange the initial disabled state of disabled IMEs
Satoshi Kataoka [Wed, 17 Apr 2013 07:41:58 +0000 (16:41 +0900)]
Change the initial disabled state of disabled IMEs

Bug: 8365223

This change is a supplement for I77f01c70610d82ce9070d4a
The disabled state of disabled pre-installed imes should be changed
to ENABLED_STATE_DISABLED_UNTIL_USED on boot or user switch.

Change-Id: If8ff1b2b95c36d33148def2ab87bd006aa520cc0

11 years agoMerge "Allow requiredForAllUsers to work on updates to system apps" into jb-mr2-dev
Amith Yamasani [Thu, 2 May 2013 04:26:01 +0000 (04:26 +0000)]
Merge "Allow requiredForAllUsers to work on updates to system apps" into jb-mr2-dev

11 years agodocs: Added landing page for Google Play Games Platform Services.
quddusc [Mon, 4 Feb 2013 23:05:23 +0000 (15:05 -0800)]
docs: Added landing page for Google Play Games Platform Services.
cherrypick from jb-mr1-dev docs:  Play Games changes Change-Id: I5117db8511907e05ddc84005bf6903251de46f71

Change-Id: I0e5e2c69fc0d13b0637504e5fd3e76c1a91a0109

11 years agoMerge "Don't dump sql bindargs unless verbose mode is requested." into jb-mr2-dev
Jeff Brown [Thu, 2 May 2013 00:52:25 +0000 (00:52 +0000)]
Merge "Don't dump sql bindargs unless verbose mode is requested." into jb-mr2-dev

11 years agoMerge "Bootstrap installed system apps only when the target user is running" into...
Christopher Tate [Wed, 1 May 2013 22:47:16 +0000 (22:47 +0000)]
Merge "Bootstrap installed system apps only when the target user is running" into jb-mr2-dev

11 years agoAllow requiredForAllUsers to work on updates to system apps
Amith Yamasani [Wed, 1 May 2013 22:25:28 +0000 (15:25 -0700)]
Allow requiredForAllUsers to work on updates to system apps

Bug: 8736380

Also set the default type as the constructor docs imply in RestrictionEntry.

Change-Id: I446504fad8822804d68f09b45ef62f6d79c4b8df

11 years agoDon't dump sql bindargs unless verbose mode is requested.
Jeff Brown [Wed, 1 May 2013 22:28:37 +0000 (15:28 -0700)]
Don't dump sql bindargs unless verbose mode is requested.

Bug: 8780126
Change-Id: I88e238f9d684cc76731207e75370cbb2e0e476c5

11 years agoReally make Surface thread-safe.
Jeff Brown [Tue, 30 Apr 2013 23:33:00 +0000 (16:33 -0700)]
Really make Surface thread-safe.

There were many places where the native object was being
accessed improperly.  Also some places where CloseGuard might
not be acquired or released correctly or where the generation
count might not be updated.

Fixed them all.

That said, Surface isn't intended to be used concurrently
so please don't do it.  This is only intended to make
hard to find crashes less likely.

Bug: 8328715
Change-Id: I981ef33425823e0fd7ad6b64443f2ec9b0c8335e

11 years agoMerge "MediaDrm API: Add two exceptions to handle error path scenarios" into jb-mr2-dev
Jeff Tinker [Wed, 1 May 2013 22:01:16 +0000 (22:01 +0000)]
Merge "MediaDrm API: Add two exceptions to handle error path scenarios" into jb-mr2-dev

11 years agoam 66623196: am 95fa4428: am 1fbbf8ca: am 4bc82dea: am 47dcb666: dashboard update...
Scott Main [Wed, 1 May 2013 21:31:44 +0000 (14:31 -0700)]
am 66623196: am 95fa4428: am 1fbbf8ca: am 4bc82dea: am 47dcb666: dashboard update for 5/1

* commit '66623196159ec4509e617cd440199499b483367a':
  dashboard update for 5/1

11 years agoam 95fa4428: am 1fbbf8ca: am 4bc82dea: am 47dcb666: dashboard update for 5/1
Scott Main [Wed, 1 May 2013 21:30:33 +0000 (14:30 -0700)]
am 95fa4428: am 1fbbf8ca: am 4bc82dea: am 47dcb666: dashboard update for 5/1

* commit '95fa4428172ae6c0435c20bf8ab49734e95c9eb8':
  dashboard update for 5/1

11 years agoam 1fbbf8ca: am 4bc82dea: am 47dcb666: dashboard update for 5/1
Scott Main [Wed, 1 May 2013 21:28:40 +0000 (14:28 -0700)]
am 1fbbf8ca: am 4bc82dea: am 47dcb666: dashboard update for 5/1

* commit '1fbbf8caaf5bb3c796fa2acacedfb7a3be4d0c73':
  dashboard update for 5/1

11 years agoam 4bc82dea: am 47dcb666: dashboard update for 5/1
Scott Main [Wed, 1 May 2013 21:27:12 +0000 (14:27 -0700)]
am 4bc82dea: am 47dcb666: dashboard update for 5/1

* commit '4bc82dea43c3e60ce6ad244fdd6b8e61396b1118':
  dashboard update for 5/1

11 years agoam 47dcb666: dashboard update for 5/1
Scott Main [Wed, 1 May 2013 21:26:05 +0000 (14:26 -0700)]
am 47dcb666: dashboard update for 5/1

* commit '47dcb66610fbe9284f83f73a06a5c23515e17fbd':
  dashboard update for 5/1

11 years agoBootstrap installed system apps only when the target user is running
Christopher Tate [Wed, 1 May 2013 21:17:53 +0000 (14:17 -0700)]
Bootstrap installed system apps only when the target user is running

I.e. don't bother trying to send a BOOT_COMPLETED broadcast to the
newly-installed/enabled system app when its host user isn't live.

Also use the static isSystemApp()-type helpers instead of duplicating
those tests locally.

Bug 8594153

Change-Id: I4bd0b86351d67f72c44eae8d1afce6a98f034d31

11 years agoMerge "Make sure the app is still app after launching. Bug:8755950" into jb-mr2-dev
Tsu Chiang Chuang [Wed, 1 May 2013 21:12:31 +0000 (21:12 +0000)]
Merge "Make sure the app is still app after launching. Bug:8755950" into jb-mr2-dev

11 years agoMerge "Fix a crash case" into jb-mr2-dev
Mike J. Chen [Wed, 1 May 2013 20:59:12 +0000 (20:59 +0000)]
Merge "Fix a crash case" into jb-mr2-dev

11 years agoam 53e8587b: am 58a6e5c0: am 4f221669: am 1d71751f: am bbed0513: Contacts Provider...
Adam Koch [Wed, 1 May 2013 20:24:40 +0000 (13:24 -0700)]
am 53e8587b: am 58a6e5c0: am 4f221669: am 1d71751f: am bbed0513: Contacts Provider Training - fix minor code snippet typos.

* commit '53e8587bedda3beef34e060f7256261d53f30697':
  Contacts Provider Training - fix minor code snippet typos.

11 years agoam 58a6e5c0: am 4f221669: am 1d71751f: am bbed0513: Contacts Provider Training -...
Adam Koch [Wed, 1 May 2013 20:20:21 +0000 (13:20 -0700)]
am 58a6e5c0: am 4f221669: am 1d71751f: am bbed0513: Contacts Provider Training - fix minor code snippet typos.

* commit '58a6e5c0d1406cab6c70b397b0b4252e5da66743':
  Contacts Provider Training - fix minor code snippet typos.

11 years agoam 4f221669: am 1d71751f: am bbed0513: Contacts Provider Training - fix minor code...
Adam Koch [Wed, 1 May 2013 20:14:49 +0000 (13:14 -0700)]
am 4f221669: am 1d71751f: am bbed0513: Contacts Provider Training - fix minor code snippet typos.

* commit '4f2216691a3df241977f39102b7eafc68556f477':
  Contacts Provider Training - fix minor code snippet typos.

11 years agoam 1d71751f: am bbed0513: Contacts Provider Training - fix minor code snippet typos.
Adam Koch [Wed, 1 May 2013 20:13:02 +0000 (13:13 -0700)]
am 1d71751f: am bbed0513: Contacts Provider Training - fix minor code snippet typos.

* commit '1d71751fc20a2c52e04656af409fa97a6f7c15c5':
  Contacts Provider Training - fix minor code snippet typos.

11 years agoMerge "Properly populates AccessibilityEvents for notification and quick settings...
Casey Burkhardt [Wed, 1 May 2013 19:33:08 +0000 (19:33 +0000)]
Merge "Properly populates AccessibilityEvents for notification and quick settings shades" into jb-mr2-dev

11 years agoam bbed0513: Contacts Provider Training - fix minor code snippet typos.
Adam Koch [Wed, 1 May 2013 18:52:26 +0000 (11:52 -0700)]
am bbed0513: Contacts Provider Training - fix minor code snippet typos.

* commit 'bbed0513abb1d98733f0eed5399f4cb195fda55f':
  Contacts Provider Training - fix minor code snippet typos.

11 years agoMerge "Lockdown VPN handles its own connection teardown." into jb-mr2-dev
Jeff Sharkey [Wed, 1 May 2013 18:30:23 +0000 (18:30 +0000)]
Merge "Lockdown VPN handles its own connection teardown." into jb-mr2-dev

11 years agoMerge "Fix an NPE and fd leak in SELinux policy updater." into jb-mr2-dev
repo sync [Wed, 1 May 2013 18:12:04 +0000 (18:12 +0000)]
Merge "Fix an NPE and fd leak in SELinux policy updater." into jb-mr2-dev

11 years agodashboard update for 5/1
Scott Main [Wed, 1 May 2013 17:32:47 +0000 (10:32 -0700)]
dashboard update for 5/1

Change-Id: I9cdcf2934a5332fee50067e0b6f8f3f159373892

11 years agoLockdown VPN handles its own connection teardown.
Jeff Sharkey [Wed, 1 May 2013 00:01:57 +0000 (17:01 -0700)]
Lockdown VPN handles its own connection teardown.

Recent changes started watching for CONNECTIVITY_ACTION broadcasts
to handle the case where a network is disconnected without the
interface going down.

However, when lockdown VPN is enabled, the broadcast contents are
augmented, and all connections appear disconnected until the VPN
comes online.  This caused a reset feedback loop to occur.

Since LockdownVpnTracker already handles networks being disconnected
separately from interfaces going down, this change disables handling
the broadcast when lockdown is enabled.

Bug: 8755148
Change-Id: I70a348aa97a4b22eaaf23aa5ed344de3e9a9ab0b

11 years agoContacts Provider Training - fix minor code snippet typos.
Adam Koch [Wed, 1 May 2013 16:21:20 +0000 (12:21 -0400)]
Contacts Provider Training - fix minor code snippet typos.

Change-Id: I3edf86d276d877914a3d97e596e1bb35d1b1ce1f

11 years agoMake sure the app is still app after launching.
Tsu Chiang Chuang [Tue, 30 Apr 2013 22:58:04 +0000 (15:58 -0700)]
Make sure the app is still app after launching.
Bug:8755950

Change-Id: Ie30d84cb94787d8b2e7bdc65e329a311581f4a3f

11 years agoMerge "Fix GLES30 JNI registration" into jb-mr2-dev
Jesse Hall [Wed, 1 May 2013 02:31:55 +0000 (02:31 +0000)]
Merge "Fix GLES30 JNI registration" into jb-mr2-dev

11 years agoMerge "Prevent TextureView from ever setting a null layer paint Bug #8760436" into...
Romain Guy [Wed, 1 May 2013 01:14:41 +0000 (01:14 +0000)]
Merge "Prevent TextureView from ever setting a null layer paint Bug #8760436" into jb-mr2-dev

11 years agoWhen installing/enabling a system app, bootstrap it
Christopher Tate [Wed, 1 May 2013 00:40:32 +0000 (17:40 -0700)]
When installing/enabling a system app, bootstrap it

Specifically, send it a BOOT_COMPLETED broadcast just as it would have
received during device (or user) startup.

Bug 8594153

Change-Id: I847c16df56d038a25758e594f951bc15348edc19

11 years agoFix an NPE and fd leak in SELinux policy updater.
repo sync [Tue, 30 Apr 2013 23:36:56 +0000 (16:36 -0700)]
Fix an NPE and fd leak in SELinux policy updater.

Bug: 8769213
Change-Id: Iff80be6109a1586d818754c8f9f5053b816fbd57

11 years agoMerge "Rebuilds ActionBar accessibility description as needed" into jb-mr2-dev
Casey Burkhardt [Wed, 1 May 2013 00:15:43 +0000 (00:15 +0000)]
Merge "Rebuilds ActionBar accessibility description as needed" into jb-mr2-dev

11 years agoRebuilds ActionBar accessibility description as needed
Casey Burkhardt [Tue, 30 Apr 2013 22:56:41 +0000 (15:56 -0700)]
Rebuilds ActionBar accessibility description as needed

Previously, ActionBarView only updated the contentDescription for the navigate
up/home affordance when it is enabled or disabled.  This causes that description
to be rebuilt and applied whenever the title or subtitle of the view is changed.
This also inadvertantly removes whitespace in ActionBarView.

Bug: 8757286
Change-Id: I1ea02cad20e0d5c0c57d071727cc647c4dd52d44

11 years agoMerge "Speed up user-switching wallpaper changes" into jb-mr2-dev
Chet Haase [Tue, 30 Apr 2013 22:42:49 +0000 (22:42 +0000)]
Merge "Speed up user-switching wallpaper changes" into jb-mr2-dev

11 years agoProperly populates AccessibilityEvents for notification and quick settings shades
Casey Burkhardt [Mon, 29 Apr 2013 19:18:32 +0000 (12:18 -0700)]
Properly populates AccessibilityEvents for notification and quick settings shades

Previously, our method of announcing the expansion of the notification shade
and quick notification shade relied on populating a contentDescription
attribute on the highest-level container.  This behavior is incorrect as it
causes accessibility services to infer importance and assign the view
accessibility focus.  This change adds descriptive text to the
AccessibilityEvent fired when the shade opens without modifying the
container's description.

Bug: 8699624
Change-Id: Id909b60d63cdec96c307dea2624b0651ab4f1f36

11 years agoSpeed up user-switching wallpaper changes
Chet Haase [Tue, 30 Apr 2013 22:10:51 +0000 (15:10 -0700)]
Speed up user-switching wallpaper changes

Previous work in ImageWallpaper cached the bitmap for a user
to avoid reloading it (an expensive operation on large-display devices)
when we could simply re-use it. User switching still caused a reload, however,
since the place where we cache the bitmap (ImageWallpaper) is in an instance
that is re-created on user-switch.

A simple fix is to have the ImageWallpaper stop telling the WallpaperManager
to erase its own cache of the bitmap prior to re-loading it. That step is
unnecessary, since a bitmap that is cached can be assumed to be valid. A wallpaper
change will correctly null out that cached version, so if the cached bitmap
is non-null, then we can simply use it as-is.

The fix is to remove the call to forgetLoadedWallpaper() and allow the caching
mechanism to do its job.

Issue #7986933 user switching on lock screen is slow (sometimes like molasses)

Change-Id: I447754ab85337bc8ae59b4ad6c3e6c2b30e13735

11 years agoMediaDrm API: Add two exceptions to handle error path scenarios
Jeff Tinker [Fri, 26 Apr 2013 18:12:43 +0000 (11:12 -0700)]
MediaDrm API: Add two exceptions to handle error path scenarios

bug: 8725707
Change-Id: Ia00c495ac591cc2993f4d11ad3480b59833d009e

11 years agoPrevent TextureView from ever setting a null layer paint
Romain Guy [Tue, 30 Apr 2013 18:12:26 +0000 (11:12 -0700)]
Prevent TextureView from ever setting a null layer paint
Bug #8760436

DO NOT MERGE

Change-Id: I7e4d09fa534f539cb99ebeaa8159fb11920460cf

11 years agoMerge "Removing a debug check when logging fstrim events." into jb-mr2-dev
Svetoslav [Tue, 30 Apr 2013 18:05:48 +0000 (18:05 +0000)]
Merge "Removing a debug check when logging fstrim events." into jb-mr2-dev

11 years agoRemoving a debug check when logging fstrim events.
Svetoslav [Tue, 30 Apr 2013 17:43:56 +0000 (10:43 -0700)]
Removing a debug check when logging fstrim events.

This change is removing the check for debuggable build to
log fstrim events. While this was done everywhere else, one
place was overlooked.

bug:8688454

Change-Id: I354e1deebfd801f971dd91b9e7972c6ebfd093f3

11 years agoMerge "Perform idle maintenance when the device is charging." into jb-mr2-dev
Svetoslav [Tue, 30 Apr 2013 17:41:21 +0000 (17:41 +0000)]
Merge "Perform idle maintenance when the device is charging." into jb-mr2-dev

11 years agoPerform idle maintenance when the device is charging.
Svetoslav [Thu, 25 Apr 2013 21:45:54 +0000 (14:45 -0700)]
Perform idle maintenance when the device is charging.

Added the precondition that the device should be charging to the
existing ones of the device not being used for awhile and the
battery level being high enough. Note that even if the device is
charging, we have to check the battery level since the user can
unplug it at any time.

bug:8688454

Change-Id: I709b1620571301743dc3504a6a625e2018951bfa

11 years agoMerge "Import translations. DO NOT MERGE" into jb-mr2-dev
Baligh Uddin [Tue, 30 Apr 2013 14:54:26 +0000 (14:54 +0000)]
Merge "Import translations. DO NOT MERGE" into jb-mr2-dev

11 years agoMerge "Clarify behavior of fullscreen mode and softInputMode's adjustResize" into...
Chet Haase [Tue, 30 Apr 2013 14:45:45 +0000 (14:45 +0000)]
Merge "Clarify behavior of fullscreen mode and softInputMode's adjustResize" into jb-mr2-dev

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Tue, 30 Apr 2013 05:25:03 +0000 (22:25 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ic7fe032626cac3828e5b1eeaf9f4b4513a46b77a
Auto-generated-cl: translation import

11 years agoMerge "Avoid crash when TextToSpeech calls onInit() from the constructor." into jb...
Alan Viverette [Tue, 30 Apr 2013 01:11:08 +0000 (01:11 +0000)]
Merge "Avoid crash when TextToSpeech calls onInit() from the constructor." into jb-mr2-dev

11 years agoClarify behavior of fullscreen mode and softInputMode's adjustResize
Chet Haase [Mon, 29 Apr 2013 23:04:40 +0000 (16:04 -0700)]
Clarify behavior of fullscreen mode and softInputMode's adjustResize

Fullscreen window's will not resize when the keyboard comes on screen,
regardless of the setting of the window's softInputMode field. This fix
clarifies the docs to make this behavior more obvious.

Issue #8754615 Clarify behavior of adjustResize and fullscreen interaction

Change-Id: Ie056db4e328cefaf0edb54fe8cfa7a08f320c8d0

11 years agoFix GLES30 JNI registration
Jesse Hall [Mon, 29 Apr 2013 22:59:35 +0000 (15:59 -0700)]
Fix GLES30 JNI registration

Bug: 8657863
Change-Id: I498f32480863b0716b2a8dfce467143087573cce

11 years agoMerge "Remove scan notification dialog on wifi off" into jb-mr2-dev
Irfan Sheriff [Mon, 29 Apr 2013 22:58:50 +0000 (22:58 +0000)]
Merge "Remove scan notification dialog on wifi off" into jb-mr2-dev

11 years agoam ec3396af: am 0412d9c7: am 4d17834a: am b83e8b69: am 292c979a: am d440ca76: am...
Nick Kralevich [Mon, 29 Apr 2013 22:53:04 +0000 (15:53 -0700)]
am ec3396af: am 0412d9c7: am 4d17834a: am b83e8b69: am 292c979a: am d440ca76: am f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprintf calls

* commit 'ec3396af9857bd50c6ccac692ecc12ab459239d2':
  libdrm: fix bad strncpy / snprintf calls

11 years agoam 0412d9c7: am 4d17834a: am b83e8b69: am 292c979a: am d440ca76: am f3a5323c: am...
Nick Kralevich [Mon, 29 Apr 2013 22:50:14 +0000 (15:50 -0700)]
am 0412d9c7: am 4d17834a: am b83e8b69: am 292c979a: am d440ca76: am f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprintf calls

* commit '0412d9c7c7e5977e1ffbb3a28bba9f37807876a7':
  libdrm: fix bad strncpy / snprintf calls

11 years agoam 4d17834a: am b83e8b69: am 292c979a: am d440ca76: am f3a5323c: am 6d8f5b75: libdrm...
Nick Kralevich [Mon, 29 Apr 2013 22:48:05 +0000 (15:48 -0700)]
am 4d17834a: am b83e8b69: am 292c979a: am d440ca76: am f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprintf calls

* commit '4d17834ab3d4850352f3d33742945dad61722cd5':
  libdrm: fix bad strncpy / snprintf calls

11 years agoam b83e8b69: am 292c979a: am d440ca76: am f3a5323c: am 6d8f5b75: libdrm: fix bad...
Nick Kralevich [Mon, 29 Apr 2013 22:46:21 +0000 (15:46 -0700)]
am b83e8b69: am 292c979a: am d440ca76: am f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprintf calls

* commit 'b83e8b693b6738ba8e778d556ccdba629d372b52':
  libdrm: fix bad strncpy / snprintf calls

11 years agoam 292c979a: am d440ca76: am f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprint...
Nick Kralevich [Mon, 29 Apr 2013 22:44:43 +0000 (15:44 -0700)]
am 292c979a: am d440ca76: am f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprintf calls

* commit '292c979a0f1e503422924421557b146cd28fc0d2':
  libdrm: fix bad strncpy / snprintf calls

11 years agoam d440ca76: am f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprintf calls
Nick Kralevich [Mon, 29 Apr 2013 22:42:54 +0000 (15:42 -0700)]
am d440ca76: am f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprintf calls

* commit 'd440ca76029ab6f0909fdd9495941e04b90e5da7':
  libdrm: fix bad strncpy / snprintf calls

11 years agoam f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprintf calls
Nick Kralevich [Mon, 29 Apr 2013 22:41:36 +0000 (15:41 -0700)]
am f3a5323c: am 6d8f5b75: libdrm: fix bad strncpy / snprintf calls

* commit 'f3a5323cc685fd78e7c4a7d7474b79cd34a4cf52':
  libdrm: fix bad strncpy / snprintf calls

11 years agoam 6d8f5b75: libdrm: fix bad strncpy / snprintf calls
Nick Kralevich [Mon, 29 Apr 2013 22:38:40 +0000 (15:38 -0700)]
am 6d8f5b75: libdrm: fix bad strncpy / snprintf calls

* commit '6d8f5b755b133b308204b84145d773d401cdcd52':
  libdrm: fix bad strncpy / snprintf calls

11 years agolibdrm: fix bad strncpy / snprintf calls
Nick Kralevich [Mon, 29 Apr 2013 17:49:47 +0000 (10:49 -0700)]
libdrm: fix bad strncpy / snprintf calls

Fix the following bugs reported by IOActive:
* GOOGLE-AN01 - Android libdrm drm_parseDM.c Boundary-CRLF Buffer Overflow
* GOOGLE-AN02 - Android libdrm 'drm_parseDM.c' contentType-CRLF Buffer Overflow
* GOOGLE-AN03 - Android libdrm drm_parseDM.c contentID-CRLF Buffer Overflow
* GOOGLE-AN04 - Android libdrm 'parser_dcf.c' Multiple Headers Buffer Overflow
* GOOGLE-AN05 - Android libdrm 'parser_dcf.c' ContentType Buffer Overflow

Bug: 8727221

(cherry picked from commit 25619b2c6b3fd584affe20f34bfbf164a5ddbe7d)

Change-Id: I9a99c9b8a63c8b9efb3b2b650c735467b77120f2

11 years agoAvoid crash when TextToSpeech calls onInit() from the constructor.
Alan Viverette [Mon, 29 Apr 2013 21:59:04 +0000 (14:59 -0700)]
Avoid crash when TextToSpeech calls onInit() from the constructor.

If construction of a TextToSpeech object fails, it may call the
initialization listener's onInit() method before the assignment
of the constructed TextToSpeech object to a variable has occurred.

BUG: 8744558
Change-Id: I3404fdb39308009762371154b05d3653bab81ab2

11 years agoMerge "Donot start Bluetooth Manager Service when bluetooth hardware feature is missi...
Matthew Xie [Mon, 29 Apr 2013 19:35:28 +0000 (19:35 +0000)]
Merge "Donot start Bluetooth Manager Service when bluetooth hardware feature is missing" into jb-mr2-dev

11 years agoMerge "Fixed race conditions in GeofenceHardwareImpl." into jb-mr2-dev
Zhentao Sun [Mon, 29 Apr 2013 18:50:18 +0000 (18:50 +0000)]
Merge "Fixed race conditions in GeofenceHardwareImpl." into jb-mr2-dev

11 years agolibdrm: fix bad strncpy / snprintf calls
Nick Kralevich [Mon, 29 Apr 2013 17:49:47 +0000 (10:49 -0700)]
libdrm: fix bad strncpy / snprintf calls

Fix the following bugs reported by IOActive:
* GOOGLE-AN01 - Android libdrm drm_parseDM.c Boundary-CRLF Buffer Overflow
* GOOGLE-AN02 - Android libdrm 'drm_parseDM.c' contentType-CRLF Buffer Overflow
* GOOGLE-AN03 - Android libdrm drm_parseDM.c contentID-CRLF Buffer Overflow
* GOOGLE-AN04 - Android libdrm 'parser_dcf.c' Multiple Headers Buffer Overflow
* GOOGLE-AN05 - Android libdrm 'parser_dcf.c' ContentType Buffer Overflow

Bug: 8727221
Change-Id: If386922e907567f54e26897beffaa1cfe4777896

11 years agoMerge "Add DPad keys to Playpad" into jb-mr2-dev
Michael Wright [Fri, 26 Apr 2013 23:57:39 +0000 (23:57 +0000)]
Merge "Add DPad keys to Playpad" into jb-mr2-dev

11 years agoFix build.
Ying Wang [Fri, 26 Apr 2013 22:54:44 +0000 (15:54 -0700)]
Fix build.

Change-Id: I1fedbbb521305e02502ddb23a96b5ee96fa43b7b

11 years agoMerge "The helper query bridge in AccessibilityServiceManager missing capability...
Svetoslav [Fri, 26 Apr 2013 22:20:57 +0000 (22:20 +0000)]
Merge "The helper query bridge in AccessibilityServiceManager missing capability." into jb-mr2-dev

11 years agoMerge "Update preloaded classes" into jb-mr2-dev
Kenny Root [Fri, 26 Apr 2013 22:20:35 +0000 (22:20 +0000)]
Merge "Update preloaded classes" into jb-mr2-dev

11 years agoRemove scan notification dialog on wifi off
Irfan Sheriff [Fri, 26 Apr 2013 22:10:26 +0000 (15:10 -0700)]
Remove scan notification dialog on wifi off

This is now only handled in settings app

Bug: 8732391
Change-Id: If232bfb9f6c3976059bde11280318901c35161e7

11 years agoThe helper query bridge in AccessibilityServiceManager missing capability.
Svetoslav [Fri, 26 Apr 2013 22:08:16 +0000 (15:08 -0700)]
The helper query bridge in AccessibilityServiceManager missing capability.

1. The helper query bridge service did not have the now capability
   to query the screen content.

2. Fixing the build.

bug:8633951

Change-Id: Ief6a3387793710a83b83c18cc6c53b51dcda9bdf

11 years agoAdd DPad keys to Playpad
Michael Wright [Fri, 26 Apr 2013 22:06:38 +0000 (15:06 -0700)]
Add DPad keys to Playpad

Change-Id: If274aa7e9d5e4988cf613ea9a16584c413ded8dd

11 years agoFixed race conditions in GeofenceHardwareImpl.
Zhentao Sun [Fri, 26 Apr 2013 21:41:53 +0000 (14:41 -0700)]
Fixed race conditions in GeofenceHardwareImpl.

Fixed b/8725226
1. Check if a geofence is registered before calling removeGeofence,
pauseGeofence and resumeGeofence
2. Moved add/remove operation of mGeofences from handler thread to
binder thread to fix potential race conditions by REMOVE_GEOFENCE.

Change-Id: I1c68a49ac4a08324c13702ba9013d2adf031aed9

11 years agoMerge "Deliver key events to the system if no accessibility service handles them...
Svetoslav [Fri, 26 Apr 2013 21:37:05 +0000 (21:37 +0000)]
Merge "Deliver key events to the system if no accessibility service handles them." into jb-mr2-dev

11 years agoDeliver key events to the system if no accessibility service handles them.
Svetoslav [Fri, 26 Apr 2013 20:11:11 +0000 (13:11 -0700)]
Deliver key events to the system if no accessibility service handles them.

We have APIs that allow an accessibility service to filter key events. The
service has to declare the capability to toggle event filtering in its
manifest and then it can set a flag to toggle the feature at runtime. The
problem was that even if no accessibility service was handling key events
these events were not fed back to the input system.

This change adds a new feature flag in the accessibility input filter that
is set only if at least one service can and wants to filter key events. If
the feature flag is set then the filter will deliver events to services and
,if they are not handled, to the system. This change also cleaned the logic
for updating the input filter.

bug:8713422

Change-Id: I4bc0c1348676569d1b76e9024708d1ed43ceb26a

11 years agoUpdate preloaded classes
Kenny Root [Fri, 26 Apr 2013 19:53:57 +0000 (12:53 -0700)]
Update preloaded classes

Bug: 5213043
Change-Id: I272500ce7f6ea6bfbc624c9705f8c8b8ef1aa0ad

11 years agoMerge "Set persistent property for SELinux enforcement on update." into jb-mr2-dev
repo sync [Fri, 26 Apr 2013 20:31:36 +0000 (20:31 +0000)]
Merge "Set persistent property for SELinux enforcement on update." into jb-mr2-dev

11 years agoDonot start Bluetooth Manager Service when bluetooth hardware feature is missing
Matthew Xie [Fri, 26 Apr 2013 19:37:54 +0000 (12:37 -0700)]
Donot start Bluetooth Manager Service when bluetooth hardware feature is missing

bug 8374762

Change-Id: Iea06bd05e19eeddf3398ac446f3d6b80fce51283