OSDN Git Service

android-x86/frameworks-base.git
10 years agoam 50756ccc: am 77364631: am a9fcf662: Merge "New Scheduling class." into jb-mr2...
Katie McCormick [Mon, 23 Sep 2013 20:50:39 +0000 (13:50 -0700)]
am 50756ccc: am 77364631: am a9fcf662: Merge "New Scheduling class." into jb-mr2-docs

* commit '50756cccc05b77be0d19506a891415d192282db7':
  New Scheduling class.

10 years agoam 77364631: am a9fcf662: Merge "New Scheduling class." into jb-mr2-docs
Katie McCormick [Mon, 23 Sep 2013 20:47:14 +0000 (13:47 -0700)]
am 77364631: am a9fcf662: Merge "New Scheduling class." into jb-mr2-docs

* commit '7736463172804b054e75a9a4911c061c30d00347':
  New Scheduling class.

10 years agoam a9fcf662: Merge "New Scheduling class." into jb-mr2-docs
Katie McCormick [Mon, 23 Sep 2013 20:43:42 +0000 (13:43 -0700)]
am a9fcf662: Merge "New Scheduling class." into jb-mr2-docs

* commit 'a9fcf6620d418268ab3e9ee8b13b37e85825e6f8':
  New Scheduling class.

10 years agoMerge "New Scheduling class." into jb-mr2-docs
Katie McCormick [Mon, 23 Sep 2013 20:40:46 +0000 (20:40 +0000)]
Merge "New Scheduling class." into jb-mr2-docs

10 years agoMerge "Introduce transparent bars to the keyguard." into klp-dev
John Spurlock [Mon, 23 Sep 2013 20:37:29 +0000 (20:37 +0000)]
Merge "Introduce transparent bars to the keyguard." into klp-dev

10 years agoMerge "Upload fsck logs to the dropbox when error found" into klp-dev
Ken Sumrall [Mon, 23 Sep 2013 20:07:10 +0000 (20:07 +0000)]
Merge "Upload fsck logs to the dropbox when error found" into klp-dev

10 years agoMerge "Fix issue #10876433: java.lang.IllegalStateException in..." into klp-dev
Dianne Hackborn [Mon, 23 Sep 2013 20:05:45 +0000 (20:05 +0000)]
Merge "Fix issue #10876433: java.lang.IllegalStateException in..." into klp-dev

10 years agoFix issue #10876433: java.lang.IllegalStateException in...
Dianne Hackborn [Mon, 23 Sep 2013 20:00:23 +0000 (13:00 -0700)]
Fix issue #10876433: java.lang.IllegalStateException in...

...ActivityManagerService.updateLruProcessInternalLocked on bluetooth

Don't try to move process records associated with dead service
connections.

Technically we should probably be clearing the binding/service's
app entry so we don't get into this case, but the least intrusive
change for now is this check.

Change-Id: I6683e692eb5a8fa4f8ec1fa31bd63ec3d7f878ef

10 years agoIntroduce transparent bars to the keyguard.
John Spurlock [Sat, 21 Sep 2013 22:41:53 +0000 (18:41 -0400)]
Introduce transparent bars to the keyguard.

Driven by a new framework config bool. Tested on all layouts,
but disabled by default.  Can be enabled with a config overlay.

(Sliding/MultiPane)ChallengeLayout have custom measure/layout
logic that peeks at the root view's padding (!).  So we must keep
the root view's padding = system window insets. However, we need
the scrims + the fullscreen camera widget preview to use the entire
display size if the bars are transparent.

So the approach is to maintain the root view's
(KeyguardViewManager$ViewManagerHost) padding as before via
setFitsSystemWindows(true) but allow non KeyguardHostViews to
extend into the padding if bars are transparent via a custom
measure/draw on the root view.

KeyguardHostView background + challege scrims moved up to the
root view.

Also:
- Remove logspam line for fixed bug.

- Fix status bar staying opaque on interaction on secure keyguard.

Known issues:
- Nav bar blip dismissing global actions, keyguard app widget picker
bars are opaque.  Both will use the new inherit flag once it exists.

- Emergency dialer layout dance, will be fixed in the phone project.

Bug:10606085
Change-Id: I2648b4ee9a54a67324ce9dcbab976ad4da4bbcfa

10 years agoMerge "Fix Java API error where requesting another style for a provided family fails...
Derek Sollenberger [Mon, 23 Sep 2013 19:14:57 +0000 (19:14 +0000)]
Merge "Fix Java API error where requesting another style for a provided family fails" into klp-dev

10 years agoMerge "Work on issue #10759595: preferred tag doesn't prevent..." into klp-dev
Dianne Hackborn [Mon, 23 Sep 2013 18:10:27 +0000 (18:10 +0000)]
Merge "Work on issue #10759595: preferred tag doesn't prevent..." into klp-dev

10 years agoWork on issue #10759595: preferred tag doesn't prevent...
Dianne Hackborn [Mon, 23 Sep 2013 18:08:52 +0000 (11:08 -0700)]
Work on issue #10759595: preferred tag doesn't prevent...

...activity chooser from being shown

Add more useful output when intent filter debugging is enabled.

Change-Id: I3722b03ed625046398e81233cf7fb6aa5ded5eca

10 years agoMerge "Ensure that activities behind keyguard are paused." into klp-dev
Craig Mautner [Mon, 23 Sep 2013 17:46:30 +0000 (17:46 +0000)]
Merge "Ensure that activities behind keyguard are paused." into klp-dev

10 years agoMerge "Allow yet another combination of key management options" into klp-dev
Vinit Deshapnde [Mon, 23 Sep 2013 17:46:00 +0000 (17:46 +0000)]
Merge "Allow yet another combination of key management options" into klp-dev

10 years agoMerge "fix deadlock caused by clearAllBackoffs in SSE" into klp-dev
Matthew Williams [Mon, 23 Sep 2013 17:35:16 +0000 (17:35 +0000)]
Merge "fix deadlock caused by clearAllBackoffs in SSE" into klp-dev

10 years agoNew Scheduling class.
Katie McCormick [Thu, 5 Sep 2013 21:46:20 +0000 (14:46 -0700)]
New Scheduling class.

Change-Id: Iadd9d0d1d3bb8fa6a145d68ee28ae9912a6a9f4c

10 years agoMerge "Page ranges not correct in come cases." into klp-dev
Svetoslav [Mon, 23 Sep 2013 16:53:52 +0000 (16:53 +0000)]
Merge "Page ranges not correct in come cases." into klp-dev

10 years agoMerge "Issue #10461551: KLP API Review: AppOpsManager" into klp-dev
Dianne Hackborn [Mon, 23 Sep 2013 16:36:29 +0000 (16:36 +0000)]
Merge "Issue #10461551: KLP API Review: AppOpsManager" into klp-dev

10 years agoIssue #10461551: KLP API Review: AppOpsManager
Dianne Hackborn [Sun, 22 Sep 2013 19:31:38 +0000 (12:31 -0700)]
Issue #10461551: KLP API Review: AppOpsManager

Changed public constants from integers to strings.  Internally
everything is still integers, since we want that more efficient
representation for most things.

Changed the Callback interface to OnOpChangedListener.  We also
have a private versin that again takes an int, and tricks to
make both work.

Reworked the class documentation to be appropriate to the SDK
(as much as it can be); most of the existing documentation is
moved to the private implementation.  Also added documentation
of the MODE constants.

Change-Id: I4f7e73cc99fe66beff9194e960e072e2aa9458f8

10 years agoEnsure that activities behind keyguard are paused.
Craig Mautner [Mon, 23 Sep 2013 04:08:32 +0000 (21:08 -0700)]
Ensure that activities behind keyguard are paused.

TLDR: Having a resumed activity behind keyguard can cause the keyguard
not to be dismissed.

Swiping the home button to launch Google Now causes an ASSIST intent
to be launched. The ASSIST intent starts SearchActivity which then
launches GEL. If an activity is resumed behind the keyguard when this
happens then that activity will be paused.

Because that activity is PAUSING, ActivityStackSupervisor
startActivityLocked() doesn't call dismissKeyguard() immediately.
Instead dismissKeyguard will be called later when GEL switches from
not-visible to visible. However, if the paused activity happens to be
GEL then there is never a not-visible to visible transition and
dismissKeyguard never gets called.

This fix removes an unnecessary call to resumeTopActivitiesLocked
which was causing activities behind the lockscreen to be resumed.

This fixes bug 10732489 except immediately after boot. Pausing the
initial activity if the lockscreen is visible after boot is deferred
for another CL.

Change-Id: I323262596ae41bc5a2700bae5942f6a4fba80936

10 years agoFix Java API error where requesting another style for a provided family fails
Derek Sollenberger [Mon, 23 Sep 2013 12:32:16 +0000 (08:32 -0400)]
Fix Java API error where requesting another style for a provided family fails

Internally the API uses the same code path as SkTypeface::CreateFromName which
returns NULL if the requested style is not supported by the existing family.
However, the existing Java API expects that we return the default font in the
requested style so this CL ensures that we do.

bug: 10860066
Change-Id: Ide3a0cc24015e97fa35aef283b42e7d7d11edd9c

10 years agoMerge "Debug issue #10876433 java.lang.IllegalStateException..." into klp-dev
Dianne Hackborn [Sun, 22 Sep 2013 23:48:29 +0000 (23:48 +0000)]
Merge "Debug issue #10876433 java.lang.IllegalStateException..." into klp-dev

10 years agoDebug issue #10876433 java.lang.IllegalStateException...
Dianne Hackborn [Sun, 22 Sep 2013 23:46:00 +0000 (16:46 -0700)]
Debug issue #10876433 java.lang.IllegalStateException...

...in ActivityManagerService.updateLruProcessInternalLocked on bluetooth

Add more debug output to help track down what is going on.

Also fix a little problem where, when a service ANRs, if you ask to
wait and it still wasn't responding, the ANR dialog wouldn't be
shown again.

Change-Id: I5be2b1705a0a39ca2992624ae683945c5f38065d

10 years agoMerge "Latest UX asset drop, grid padding." into klp-dev
Jeff Sharkey [Sun, 22 Sep 2013 19:55:33 +0000 (19:55 +0000)]
Merge "Latest UX asset drop, grid padding." into klp-dev

10 years agoMerge "Create unique files, root ordering, UI bugs." into klp-dev
Jeff Sharkey [Sun, 22 Sep 2013 19:55:19 +0000 (19:55 +0000)]
Merge "Create unique files, root ordering, UI bugs." into klp-dev

10 years agoMerge "camera2: Rename CameraProperties to CameraCharacteristics" into klp-dev
Igor Murashkin [Sun, 22 Sep 2013 16:54:11 +0000 (16:54 +0000)]
Merge "camera2: Rename CameraProperties to CameraCharacteristics" into klp-dev

10 years agoMerge "Fix BatchScan request coalesing" into klp-dev
Robert Greenwalt [Sun, 22 Sep 2013 15:59:00 +0000 (15:59 +0000)]
Merge "Fix BatchScan request coalesing" into klp-dev

10 years agocamera2: Rename CameraProperties to CameraCharacteristics
Igor Murashkin [Tue, 10 Sep 2013 19:15:54 +0000 (12:15 -0700)]
camera2: Rename CameraProperties to CameraCharacteristics

Bug: 10360518
Change-Id: I8667bdcc8c9528ace96dc675585f923004932641

10 years agoMerge "camera2: Add capture sequences and capture failures" into klp-dev
Igor Murashkin [Sun, 22 Sep 2013 02:44:06 +0000 (02:44 +0000)]
Merge "camera2: Add capture sequences and capture failures" into klp-dev

10 years agoLatest UX asset drop, grid padding.
Jeff Sharkey [Sat, 21 Sep 2013 22:11:19 +0000 (15:11 -0700)]
Latest UX asset drop, grid padding.

Bring in latest asset drop.  Apply grid padding programmatically
instead of waiting for asset.  Remove alpha from directory animation.

Update save footer background to match spec.

Bug: 10700025
Change-Id: I8eef08f36d04767b78e91b23f72bdbebfbb02f58

10 years agoCreate unique files, root ordering, UI bugs.
Jeff Sharkey [Sat, 21 Sep 2013 20:57:33 +0000 (13:57 -0700)]
Create unique files, root ordering, UI bugs.

When a file already exists on disk, try adding a counter suffix to
make a unique name.  Move services near top of roots list, just below
recents.  Remove "Documents" root.

Increase number of recents allowed from single provider, and add more
logging to diagnose wedged loaders.

When launching GET_CONTENT apps, wait for successful result before
relaying result; canceled requests now return to DocumentsUI.

Add CloseGuard to ContentProviderClients, since leaked instances can
keep the remote process alive.

Fix UI bug around trailing breadcrumbs.  Fix bug that dropped Recents
from roots list.  Add up action to Settings activity.  Give our
activity a default icon while waiting for async roots to load.

Bug: 1081868310819461108194611081919610860199
Change-Id: I7b9e26b1cf8353dd3175458b23da2b4bda6c5831

10 years agoMerge commit '53221120' into fix-merge-conflict
Wink Saville [Sat, 21 Sep 2013 18:52:42 +0000 (11:52 -0700)]
Merge commit '53221120' into fix-merge-conflict

* commit '53221120':
  Do not always call setIsConnectedToProvisioningNetwork(false)

Conflicts:
core/java/android/net/MobileDataStateTracker.java

Change-Id: I497b57cb96d0f3b3bce4f4e1cbc5febcc6421597

10 years agoam ab8cabf1: am 1e4f4618: Do not always call setIsConnectedToProvisioningNetwork...
Wink Saville [Sat, 21 Sep 2013 18:33:53 +0000 (11:33 -0700)]
am ab8cabf1: am 1e4f4618: Do not always call setIsConnectedToProvisioningNetwork(false)

* commit 'ab8cabf1d3e5d5fd1fff17816fbc4ab19e8f1a8e':
  Do not always call setIsConnectedToProvisioningNetwork(false)

10 years agoam 1e4f4618: Do not always call setIsConnectedToProvisioningNetwork(false)
Wink Saville [Sat, 21 Sep 2013 18:30:33 +0000 (11:30 -0700)]
am 1e4f4618: Do not always call setIsConnectedToProvisioningNetwork(false)

* commit '1e4f461839ebd3c9d3dc62232c2eac7d8cbdc467':
  Do not always call setIsConnectedToProvisioningNetwork(false)

10 years agoPage ranges not correct in come cases.
Svetoslav [Sat, 21 Sep 2013 01:57:21 +0000 (18:57 -0700)]
Page ranges not correct in come cases.

1. The algorithm that determines whether a page range contains
   another one had a bug and in some cases misbehaved.

2. When print is pressed we do a final layout and if nothing
   changes and we have the requeted pages we skip the final
   write. However, in this case we did not update the print
   job with the pages to be printed but we have to since in
   the previous write we did not ask for all selected pages,
   rather for the first one to be shown as a preview. Now if
   we have all pages and nothing changed we update the print
   job pages.

bug:10530142

Change-Id: I10fb62ae5ae07b8e54d547fd4dca555a12451bc5

10 years agoDo not always call setIsConnectedToProvisioningNetwork(false)
Wink Saville [Sat, 21 Sep 2013 16:01:19 +0000 (09:01 -0700)]
Do not always call setIsConnectedToProvisioningNetwork(false)

Previously I was calling setIsConnectedToProvisioningNetwork(false) always,
but all MDST's receive every broadcast. Thus we could over write an MDST's
mNetworkInfo.mIsConnectedToProvisioningNetwork to false, unless the MDST
that was set to true was last, i.e the code was order dependent.

If the provisioning networks value was false instead of true
when handleMobileProvisioningAction was called we wouldn't invoke
mdst.enableMobileProvisioning because network info would be null.

Thus the provisioning network would never transition to CONNECTED and
a default route wouldn't get setup and the browser couldn't access the
website.

Now setIsConnectedToProvisioningNetwork is only set to false when the
apnType matches and we won't indiscriminately change it and are not
order dependent.

Bug: 10853805
Change-Id: I68a4f9bdf5dc18d90f4cdef7a60811f57be67261

10 years agoMerge "WebView: add an API method to control web contents debugging" into klp-dev
Jonathan Dixon [Sat, 21 Sep 2013 03:41:32 +0000 (03:41 +0000)]
Merge "WebView: add an API method to control web contents debugging" into klp-dev

10 years agoMerge "Update android.print.PrintAttributes documentation" into klp-dev
Svetoslav Ganov [Sat, 21 Sep 2013 02:39:58 +0000 (02:39 +0000)]
Merge "Update android.print.PrintAttributes documentation" into klp-dev

10 years agoam 22423446: am 217683d9: am e1243728: Merge "Fixed typo: Added missing word. Bug...
David Friedman [Sat, 21 Sep 2013 02:11:45 +0000 (19:11 -0700)]
am 22423446: am 217683d9: am e1243728: Merge "Fixed typo: Added missing word. Bug 10617080 Fixed typo:" into jb-mr2-docs

* commit '224234461cd7752a179ad631d9c8c3cdb3964898':
  Fixed typo: Added missing word. Bug 10617080 Fixed typo:

10 years agoam 217683d9: am e1243728: Merge "Fixed typo: Added missing word. Bug 10617080 Fixed...
David Friedman [Sat, 21 Sep 2013 02:09:17 +0000 (19:09 -0700)]
am 217683d9: am e1243728: Merge "Fixed typo: Added missing word. Bug 10617080 Fixed typo:" into jb-mr2-docs

* commit '217683d95d0be42c738b2844b289f2207e36b70f':
  Fixed typo: Added missing word. Bug 10617080 Fixed typo:

10 years agoam e1243728: Merge "Fixed typo: Added missing word. Bug 10617080 Fixed typo:" into...
David Friedman [Sat, 21 Sep 2013 02:05:55 +0000 (19:05 -0700)]
am e1243728: Merge "Fixed typo: Added missing word. Bug 10617080 Fixed typo:" into jb-mr2-docs

* commit 'e12437284fcf94aed4ac5c2e10401b70fb1be086':
  Fixed typo: Added missing word. Bug 10617080 Fixed typo:

10 years agoMerge "Fixed typo: Added missing word. Bug 10617080 Fixed typo:" into jb-mr2-docs
David Friedman [Sat, 21 Sep 2013 02:02:45 +0000 (02:02 +0000)]
Merge "Fixed typo: Added missing word. Bug 10617080 Fixed typo:" into jb-mr2-docs

10 years agocamera2: Add capture sequences and capture failures
Igor Murashkin [Thu, 5 Sep 2013 19:22:00 +0000 (12:22 -0700)]
camera2: Add capture sequences and capture failures

- CaptureResult#getRequest is used to tie a result to a request (for convenience)
- Add new CaptureFailure class to describe capture failure
- Results/frame numbers also return frame numbers, sequence ids
- Captures now all return the sequence id
- A sequence id onComplete is available in the CaptureListener

Bug: 10360518
Change-Id: I9ebaa45698c718a1185b5ae920b7975925fe2f60

10 years agoMerge "Fix issue #10863270: procstats UI is showing all green" into klp-dev
Dianne Hackborn [Sat, 21 Sep 2013 01:52:04 +0000 (01:52 +0000)]
Merge "Fix issue #10863270: procstats UI is showing all green" into klp-dev

10 years agoFix issue #10863270: procstats UI is showing all green
Dianne Hackborn [Sat, 21 Sep 2013 01:45:43 +0000 (18:45 -0700)]
Fix issue #10863270: procstats UI is showing all green

Gah I messed up when refactoring so it would always be told
RAM is low.

Also slightly tune the low memory parameters to go into low
memory states a bit more aggressively.

Change-Id: I5f970349760ad349d515a85c266ab21b387ee353

10 years agoFixed typo: Added missing word.
David Friedman [Fri, 20 Sep 2013 06:48:53 +0000 (23:48 -0700)]
Fixed typo: Added missing word.
Bug 10617080
Fixed typo:

"Determine if AccountManager for You"
-->
"Determine if AccountManager is for You"

Change-Id: I5b8f1368dad72bbbeb581132f480baf46a029be8

10 years agoMerge "Shut. Up." into klp-dev
Dianne Hackborn [Sat, 21 Sep 2013 01:25:18 +0000 (01:25 +0000)]
Merge "Shut.  Up." into klp-dev

10 years agoMerge "Fix issue #10807048: Groupon: The application crash when user rotates......
Dianne Hackborn [Sat, 21 Sep 2013 01:21:26 +0000 (01:21 +0000)]
Merge "Fix issue #10807048:  Groupon: The application crash when user rotates..." into klp-dev

10 years agoShut. Up.
Dianne Hackborn [Sat, 21 Sep 2013 01:19:00 +0000 (18:19 -0700)]
Shut.  Up.

Change-Id: Id047ab2308903a527bebf80bdacdb01ec51de051

10 years agoMerge "Offer to enable a print service after it is installed." into klp-dev
Svetoslav [Sat, 21 Sep 2013 01:15:47 +0000 (01:15 +0000)]
Merge "Offer to enable a print service after it is installed." into klp-dev

10 years agoFix issue #10807048: Groupon: The application crash when user rotates...
Dianne Hackborn [Sat, 21 Sep 2013 01:13:52 +0000 (18:13 -0700)]
Fix issue #10807048:  Groupon: The application crash when user rotates...

...device to another mode (portrait or landscape) on Main page.

So, it turns out that Bundle claimed to have an invariant that either
mParcelledData or mMap would hold its data, never both.  The new
implementation on top of ArrayMap assumed this was the case.  However,
there is one situation where it is not true: an application can take
an existing Bundle that contains data, and call readFromParcel() on it.
The implementation of readFromParcel() would just pull out the
parceled data and stuff it in to mParcelledData for later unparceling,
even if that Bundle already had a non-empty mMap.

To fix this, we just look for this case in readFromParcel() and
immediately unparcel at that point into the existing map, using a
new unparcelling method that doesn't rely on the target map being
empty.

Change-Id: Ib816b6876a6cd2760b7a3372c7a79ca2f12dfeba

10 years agoUpload fsck logs to the dropbox when error found
Ken Sumrall [Fri, 13 Sep 2013 02:34:36 +0000 (19:34 -0700)]
Upload fsck logs to the dropbox when error found

If fsck made changes to the filesystem, then upload
the logs to the dropbox.  We can then get them into
Android Problem Reports.

Bug: 10021342

Change-Id: I202d2b2ba4060a2f379ca78f1b3f2c7a3f5796e0

10 years agoOffer to enable a print service after it is installed.
Svetoslav [Fri, 20 Sep 2013 23:25:52 +0000 (16:25 -0700)]
Offer to enable a print service after it is installed.

The user has to explicitly enable a print service from the settings UI
before using it. Usually, users very rarely if at all interact with print
services, therefore all print service management task are performed from
the print settings. We also have to get user consent warning that the
user's data is about to be given to a third-party app. We now post a
notification allowing the user to go directly to the settings screen to
turn the service on.

bug:10447510

Change-Id: Iea56c0825f0bf38328ad94912f0ea5576e9339b3

10 years agoMerge "Correct bitmap merging logic" into klp-dev
Chris Craik [Sat, 21 Sep 2013 00:33:36 +0000 (00:33 +0000)]
Merge "Correct bitmap merging logic" into klp-dev

10 years agoCorrect bitmap merging logic
Chris Craik [Sat, 21 Sep 2013 00:13:18 +0000 (17:13 -0700)]
Correct bitmap merging logic

bug:10863163

This fixes two issues

The check for pure translation was incorrect. It was fixed and renamed
for clarity.

Certain matrix paths weren't setting kTypePositiveScale. For
simplicity (and because positive scale is simple to check) removed
flag in favor of dynamic checking.

Change-Id: Ic5ce235653ef49a68b8b242bd89fc2e95874ecc9

10 years agoMerge "Fix for "Can't place cursor after combining accent"" into klp-dev
Raph Levien [Fri, 20 Sep 2013 23:27:57 +0000 (23:27 +0000)]
Merge "Fix for "Can't place cursor after combining accent"" into klp-dev

10 years agoMerge "camera2: Add more camera device states, make #openCamera async." into klp-dev
Igor Murashkin [Fri, 20 Sep 2013 23:21:50 +0000 (23:21 +0000)]
Merge "camera2: Add more camera device states, make #openCamera async." into klp-dev

10 years agoMerge "Ensure access to the map of geofence callbacks is synchronized in all cases...
destradaa [Fri, 20 Sep 2013 23:18:14 +0000 (23:18 +0000)]
Merge "Ensure access to the map of geofence callbacks is synchronized in all cases Fix Java reference leak in the JNI layer" into klp-dev

10 years agoMerge "Surfaces ParcelFileDescriptor#parseMode() as API" into klp-dev
Adam Lesinski [Fri, 20 Sep 2013 22:59:12 +0000 (22:59 +0000)]
Merge "Surfaces ParcelFileDescriptor#parseMode() as API" into klp-dev

10 years agoMerge "Delegate mkdirs() to vold when lacking perms." into klp-dev
Jeff Sharkey [Fri, 20 Sep 2013 22:56:07 +0000 (22:56 +0000)]
Merge "Delegate mkdirs() to vold when lacking perms." into klp-dev

10 years agoMerge "Revert "Workaround for slow AudioRecord destructor"" into klp-dev
Glenn Kasten [Fri, 20 Sep 2013 22:38:18 +0000 (22:38 +0000)]
Merge "Revert "Workaround for slow AudioRecord destructor"" into klp-dev

10 years agoFix BatchScan request coalesing
Robert Greenwalt [Fri, 20 Sep 2013 22:13:08 +0000 (15:13 -0700)]
Fix BatchScan request coalesing

bug:10407896
Change-Id: Ic22c7d8b2a80d490d208570782a12e42d4690f5c

10 years agoFix for "Can't place cursor after combining accent"
Raph Levien [Fri, 20 Sep 2013 22:11:52 +0000 (15:11 -0700)]
Fix for "Can't place cursor after combining accent"

This patch fixes behavior where attempting to place the cursor at
the end of a string where the last character is a combining accent
actually placed it before that accent. This was especially annoying
for editing Thai text, because it made it difficult to delete a
trailing tone mark.

Fixes bug 8947569 "Can't place cursor after combining accent" and bug
10398332 "[Thailand] Thai Language(IME) -- Can't delete Thai tone mark
while writing message"

Change-Id: Ida1933c8f0ab6cdb0200db39891e9389e4bdba86

10 years agoAllow yet another combination of key management options
Vinit Deshapnde [Fri, 20 Sep 2013 22:21:33 +0000 (15:21 -0700)]
Allow yet another combination of key management options

Framework sets allowedKeyManagement to WPA_EAP + WPA_PSK, if
WifiConfiguration didn't supply any value for it. It should probably
change to NONE; but that is post K thing. I am allowing that
combination for now.

Bug: 10843500
Change-Id: Id0c28f4aaf32c6a7e7dca07114a2452ce194a798

10 years agoEnsure access to the map of geofence callbacks is synchronized in all cases
destradaa [Fri, 20 Sep 2013 20:08:41 +0000 (13:08 -0700)]
Ensure access to the map of geofence callbacks is synchronized in all cases
Fix Java reference leak in the JNI layer

Bug: 10624887
Change-Id: I656973653d82c73a7ba2b51f22989ffed144c5df

10 years agoSurfaces ParcelFileDescriptor#parseMode() as API
Adam Lesinski [Fri, 20 Sep 2013 21:08:25 +0000 (14:08 -0700)]
Surfaces ParcelFileDescriptor#parseMode() as API

Moves ContentResolver#modeToMode() to ParcelFileDescriptor#parseMode()

bug:10711271
Change-Id: I28a5de4ca70adfbec4caf739863b77f0fd7fd9a4

10 years agoDelegate mkdirs() to vold when lacking perms.
Jeff Sharkey [Wed, 18 Sep 2013 00:30:33 +0000 (17:30 -0700)]
Delegate mkdirs() to vold when lacking perms.

Apps without sdcard_r or sdcard_rw are still able to write to
their package-specific directory, but someone needs to first make
that directory on their behalf.  This change will delegate the
mkdirs() call through to vold when an app fails to create directly.

MountService validates that the path belongs to the calling user, and
that it's actually on external storage, before passing to vold.

Update Environment to make app-vs-vold paths clearer.

Bug: 10577808
Change-Id: I43b4a77fd6d2b9af2a0d899790da8d9d89386776

10 years agoMerge "Remove over-aggressive stack movement." into klp-dev
Craig Mautner [Fri, 20 Sep 2013 21:28:14 +0000 (21:28 +0000)]
Merge "Remove over-aggressive stack movement." into klp-dev

10 years agoMerge "PrintDocumentAdapter contract not followed on print." into klp-dev
Svetoslav [Fri, 20 Sep 2013 21:12:54 +0000 (21:12 +0000)]
Merge "PrintDocumentAdapter contract not followed on print." into klp-dev

10 years agoRemove over-aggressive stack movement.
Craig Mautner [Fri, 20 Sep 2013 20:42:49 +0000 (13:42 -0700)]
Remove over-aggressive stack movement.

Moving a task to the bottom was also moving its stack to the back.
Since chrome always finishes by calling moveTaskToBack this put
the home stack in front of the application stack and would cause
bizarre window layering effects.

Definitely fixes 10764463.
Maybe fixes 10678010.

Change-Id: Ic202ae4fad44b36a8444255764d2135fccd4743d

10 years agoMerge "Clear names from externally supplied WorkSources to WifiManager (b/10733757...
David Christie [Fri, 20 Sep 2013 20:04:04 +0000 (20:04 +0000)]
Merge "Clear names from externally supplied WorkSources to WifiManager (b/10733757)" into klp-dev

10 years agoMerge "Fix incorrect exception being thrown from WifiConfiguration" into klp-dev
Vinit Deshapnde [Fri, 20 Sep 2013 19:30:26 +0000 (19:30 +0000)]
Merge "Fix incorrect exception being thrown from WifiConfiguration" into klp-dev

10 years agoPrintDocumentAdapter contract not followed on print.
Svetoslav [Fri, 20 Sep 2013 18:58:55 +0000 (11:58 -0700)]
PrintDocumentAdapter contract not followed on print.

1. Layout was not called after pressing the print button if the
   print attributes did not change. This is not correct since the
   previous layout calls were for preview purposes and the one
   after pressing print is not for preview. Hence, we always have
   to do this layout.

2. After layout we decide whether to ask the app to write some
   pages. We ask for a write if we do not have the pages selected
   by the user or the document changed (if the page count changed,
   the document type changed, or the app told us that the content
   changed). We were not computing correctly whether the document
   changed since we compared the size but the document info the
   app passes in after a layout does not have the size yet. We set
   the size after a write. So for layout purposes we should ignore
   the size. We only care if the page count, document type, or
   content changed where the latter is reported by the app in
   the layout callback.

3. We were not updating the PrintJob after setting the data
   size of the printed document.

4. Disabled debugging.

bug:10835370

Change-Id: Ic3b2871b4e954cdf610f8cf806de5fc6588a6bec

10 years agoMerge "Null not handled when parsing media size resource id attribute." into klp-dev
Svetoslav [Fri, 20 Sep 2013 18:59:39 +0000 (18:59 +0000)]
Merge "Null not handled when parsing media size resource id attribute." into klp-dev

10 years agoam 53b2a957: am 8ea8ff81: am 78ec732f: Doc change: Update Google Play Services refere...
Dirk Dougherty [Fri, 20 Sep 2013 18:51:37 +0000 (11:51 -0700)]
am 53b2a957: am 8ea8ff81: am 78ec732f: Doc change: Update Google Play Services reference docs.

* commit '53b2a957d19f21cd377d5f93225820d63c6b51d9':
  Doc change: Update Google Play Services reference docs.

10 years agoam 8ea8ff81: am 78ec732f: Doc change: Update Google Play Services reference docs.
Dirk Dougherty [Fri, 20 Sep 2013 18:48:52 +0000 (11:48 -0700)]
am 8ea8ff81: am 78ec732f: Doc change: Update Google Play Services reference docs.

* commit '8ea8ff81a93f367af59e328bb365ca9560e264ec':
  Doc change: Update Google Play Services reference docs.

10 years agoam 78ec732f: Doc change: Update Google Play Services reference docs.
Dirk Dougherty [Fri, 20 Sep 2013 18:46:23 +0000 (11:46 -0700)]
am 78ec732f: Doc change: Update Google Play Services reference docs.

* commit '78ec732f73aedc6afd79c4f924345a5adb61dc54':
  Doc change: Update Google Play Services reference docs.

10 years agoClear names from externally supplied WorkSources to WifiManager (b/10733757)
David Christie [Fri, 20 Sep 2013 17:44:01 +0000 (10:44 -0700)]
Clear names from externally supplied WorkSources to WifiManager (b/10733757)

Change-Id: I36102f13962df2093c1e35fb40081ead647eff32

10 years agoDoc change: Update Google Play Services reference docs.
Dirk Dougherty [Mon, 16 Sep 2013 17:37:40 +0000 (10:37 -0700)]
Doc change: Update Google Play Services reference docs.

Change-Id: Iaed2e01a18263000509f243e66a6b6b33037d6b9

10 years agofix deadlock caused by clearAllBackoffs in SSE
Matthew Williams [Thu, 12 Sep 2013 21:30:09 +0000 (14:30 -0700)]
fix deadlock caused by clearAllBackoffs in SSE

ordering of locks in SyncStorageEngine#clearAllBackoffs()
introduced deadlocks.
Bug: 10751759
Bug: 10680330
Change-Id: Ief118830b6b249de0e7618b6186b4181b4f12f82

10 years agoMerge "Fix issue #10310128: CTS: android.security.cts.ServicePermissionsTest" into...
Dianne Hackborn [Fri, 20 Sep 2013 18:23:07 +0000 (18:23 +0000)]
Merge "Fix issue #10310128: CTS: android.security.cts.ServicePermissionsTest" into klp-dev

10 years agoMerge "Add equals() and hashcode() to SpannableString" into klp-dev
Chet Haase [Fri, 20 Sep 2013 18:22:54 +0000 (18:22 +0000)]
Merge "Add equals() and hashcode() to SpannableString" into klp-dev

10 years agoMerge "Ensures that CompatibilityInfo is always set in Resources" into klp-dev
Adam Lesinski [Fri, 20 Sep 2013 18:22:17 +0000 (18:22 +0000)]
Merge "Ensures that CompatibilityInfo is always set in Resources" into klp-dev

10 years agoRevert "Workaround for slow AudioRecord destructor"
Glenn Kasten [Fri, 20 Sep 2013 18:10:28 +0000 (18:10 +0000)]
Revert "Workaround for slow AudioRecord destructor"

This reverts commit 8d87d7ba113ad90685f1d2669e65251a9b422a5a.

Change-Id: I78cbe73959d29fc0ff3153268503ae685cd0995c

10 years agoEnsures that CompatibilityInfo is always set in Resources
Adam Lesinski [Fri, 20 Sep 2013 03:33:15 +0000 (20:33 -0700)]
Ensures that CompatibilityInfo is always set in Resources

- Adds null checks when setting mCompatibilityInfo and uses default no-op
  CompatibilityInfo object instead of null
- Removes null checks when calling methods on mCompatibilityInfo since it is never
  null

bug:10204942

Change-Id: I36e88f5cdceb46b8b19fb902270ef74023a81546

10 years agoMerge "Supsend/resume batched scans around dhcp." into klp-dev
Robert Greenwalt [Fri, 20 Sep 2013 17:55:44 +0000 (17:55 +0000)]
Merge "Supsend/resume batched scans around dhcp." into klp-dev

10 years agoFix issue #10310128: CTS: android.security.cts.ServicePermissionsTest
Dianne Hackborn [Fri, 20 Sep 2013 17:54:16 +0000 (10:54 -0700)]
Fix issue #10310128: CTS: android.security.cts.ServicePermissionsTest

Change-Id: Id6432fc1b62db41c6c291ec08450c2fc37ced899

10 years agoMerge "Cleanup the shutdown of BatchedScans." into klp-dev
Robert Greenwalt [Fri, 20 Sep 2013 17:43:29 +0000 (17:43 +0000)]
Merge "Cleanup the shutdown of BatchedScans." into klp-dev

10 years agoNull not handled when parsing media size resource id attribute.
Svetoslav [Fri, 20 Sep 2013 17:43:24 +0000 (10:43 -0700)]
Null not handled when parsing media size resource id attribute.

bug:10835715

Change-Id: I0c9c1120c26e68b4c582599bbda3753d0e443d8c

10 years agoSupsend/resume batched scans around dhcp.
Robert Greenwalt [Fri, 20 Sep 2013 00:30:19 +0000 (17:30 -0700)]
Supsend/resume batched scans around dhcp.

Scanning while dhcp is running breaks dhcp, so stop the batched scans
when we need dhcp and start it up again after.

bug:10691401
Change-Id: Ifdeb6f35cfe4509b90fed1e1e694d0c107f24a7e

10 years agoFix incorrect exception being thrown from WifiConfiguration
Vinit Deshapnde [Fri, 20 Sep 2013 17:12:30 +0000 (10:12 -0700)]
Fix incorrect exception being thrown from WifiConfiguration

Bug: 10817189

Change-Id: Ib2985f50080cb9d983a6de6ce668223e8782c3b6

10 years agoam 8f6ed205: am 208e6079: am 0333302a: Merge "add custom head tag to verify developer...
Scott Main [Fri, 20 Sep 2013 17:10:22 +0000 (10:10 -0700)]
am 8f6ed205: am 208e6079: am 0333302a: Merge "add custom head tag to verify developers@android.com as site owner" into jb-mr2-docs

* commit '8f6ed205a2523a8170cdd3e824170fd77c4fd65a':
  add custom head tag to verify developers@android.com as site owner

10 years agoam 208e6079: am 0333302a: Merge "add custom head tag to verify developers@android...
Scott Main [Fri, 20 Sep 2013 17:07:46 +0000 (10:07 -0700)]
am 208e6079: am 0333302a: Merge "add custom head tag to verify developers@android.com as site owner" into jb-mr2-docs

* commit '208e6079b4ccd161de198553319d285711564ea2':
  add custom head tag to verify developers@android.com as site owner

10 years agoam 0333302a: Merge "add custom head tag to verify developers@android.com as site...
Scott Main [Fri, 20 Sep 2013 17:04:26 +0000 (10:04 -0700)]
am 0333302a: Merge "add custom head tag to verify developers@android.com as site owner" into jb-mr2-docs

* commit '0333302ad7162f66404c08e1c6c5b6b767aa78b3':
  add custom head tag to verify developers@android.com as site owner

10 years agoMerge "add custom head tag to verify developers@android.com as site owner" into jb...
Scott Main [Fri, 20 Sep 2013 16:58:38 +0000 (16:58 +0000)]
Merge "add custom head tag to verify developers@android.com as site owner" into jb-mr2-docs

10 years agoCleanup the shutdown of BatchedScans.
Robert Greenwalt [Fri, 20 Sep 2013 00:27:43 +0000 (17:27 -0700)]
Cleanup the shutdown of BatchedScans.

Fixes binder-death as well as disambiguation when an app has multiple requests in.

bug:10641931
Change-Id: Ib701d531fa51e7e2a027848cfdfcad3b47056923

10 years agoMerge "Include starting windows in the sysui vis calculation." into klp-dev
John Spurlock [Fri, 20 Sep 2013 16:25:30 +0000 (16:25 +0000)]
Merge "Include starting windows in the sysui vis calculation." into klp-dev

10 years agoadd custom head tag to verify developers@android.com as site owner
Scott Main [Fri, 20 Sep 2013 16:10:08 +0000 (09:10 -0700)]
add custom head tag to verify developers@android.com as site owner

Change-Id: I1a79669ab1e30de152354fafe5e397d5d1598f15

10 years agoInclude starting windows in the sysui vis calculation.
John Spurlock [Fri, 20 Sep 2013 16:04:47 +0000 (12:04 -0400)]
Include starting windows in the sysui vis calculation.

Sysui vis needs to be recomputed in the same code path as showing/
hiding the system bar (code path = finishPostLayoutPolicyLw) so
it can perform the new fade in/fade out to transparent modes at
the correct time.

Turns out no new state tracking is required, we already keep track
of this window as mTopFullscreenOpaqueWindowState.

So prefer mFocusedWindow when computing sysui vis as before,
but if null fallback to mTopFullscreenOpaqueWindowState.

Bug:10561554
Change-Id: I492766989a67fdac4f030451dcf00f6741a556c0

10 years agoMerge "UX compliance for CA Cert warning tile in QuickSettings" into klp-dev
Maggie Benthall [Fri, 20 Sep 2013 14:30:29 +0000 (14:30 +0000)]
Merge "UX compliance for CA Cert warning tile in QuickSettings" into klp-dev