OSDN Git Service

android-x86/frameworks-base.git
10 years agoResized thumbnails; async; extend MatrixCursor.
Jeff Sharkey [Tue, 7 May 2013 19:41:33 +0000 (12:41 -0700)]
Resized thumbnails; async; extend MatrixCursor.

When requesting thumbnails, check if their dimensions are larger
than requested, and downscale to avoid memory pressure.  Load them
async and with LruCache.

Extend MatrixCursor so that RowBuilder can offer() columns without
requiring they know the projection map.  This makes it easier to
respond to query() calls, where the remote side controls the
projection map.  Use it to handle custom projections in external
storage backend.

Update date/time formatting to match spec.

Bug: 1033341810331689
Change-Id: I7e947a8e8068af8a39b55e6766b3241de4f3fc16

10 years agoDocuments management mode; API adjustment.
Jeff Sharkey [Thu, 15 Aug 2013 23:17:41 +0000 (16:17 -0700)]
Documents management mode; API adjustment.

Create documents manage mode to support Downloads and transient
storage devices.  Locks user into requested backend root, and forces
file sizes on and sorting by last modified.

Separate API constants for Documents versus Roots, and give concrete
MIME types for roots.

Treat null sizes as unknown.  Documents are always enabled in list
so that divider is drawn.  Mark external storage file as writable.

Bug: 103299831033299310332952
Change-Id: I05f4fdf5b04041a38e1ba7fb30202a3b0c615bf6

10 years agoDocumentsUI handles GET_CONTENT; hinting, errors.
Jeff Sharkey [Thu, 15 Aug 2013 18:24:03 +0000 (11:24 -0700)]
DocumentsUI handles GET_CONTENT; hinting, errors.

Document browser now takes over all GET_CONTENT requests that request
openable Uris. It shows both storage backends and includes other apps
that respond to GET_CONTENT. Only grants transient read permissions.

Better guarding against throwing storage backends. Send sort order
and local-only hinting to backends.

Require that OPEN/CREATE_DOC users include openable category.

Bug: 1033011210329976103407411033168910329971
Change-Id: Ieb8768a6d71201816046f4a4c48832061a313c28

10 years agoMerge "Root invalidation, write and grid flags, local." into klp-dev
Jeff Sharkey [Thu, 15 Aug 2013 16:44:15 +0000 (16:44 +0000)]
Merge "Root invalidation, write and grid flags, local." into klp-dev

10 years agoMerge "Recover tracking pointer going up mid-gesture in shade." into klp-dev
John Spurlock [Thu, 15 Aug 2013 16:38:45 +0000 (16:38 +0000)]
Merge "Recover tracking pointer going up mid-gesture in shade." into klp-dev

10 years agoMerge "Defend against NPE." into klp-dev
Daniel Sandler [Thu, 15 Aug 2013 16:06:49 +0000 (16:06 +0000)]
Merge "Defend against NPE." into klp-dev

10 years agoRecover tracking pointer going up mid-gesture in shade.
John Spurlock [Thu, 15 Aug 2013 13:29:31 +0000 (09:29 -0400)]
Recover tracking pointer going up mid-gesture in shade.

Keep track of the pointer id used in driving the gesture. If
it happens to go up mid-gesture (another pointer is still down),
continue the gesture with another down pointer, instead of
abruptly jumping on next ACTION_MOVE.

Bug:10246050
Change-Id: Ia6e59658635fd696974fe415f37811d27da80519

10 years agoRoot invalidation, write and grid flags, local.
Jeff Sharkey [Thu, 15 Aug 2013 01:29:19 +0000 (18:29 -0700)]
Root invalidation, write and grid flags, local.

Flags to indicate write support, and to indicate that a grid view is
preferred.  Method to inform system that any root caches should be
invalidated.  Methods to mark a Uri as requesting "local only" data.

Helper method for document creation.

Bug: 10330069103301081033021010329976
Change-Id: I6ce6160f6ce6621e6ea05848a31bbbcb84587671

10 years agoMerge "Prevent refocus after entering touch mode" into klp-dev
Alan Viverette [Thu, 15 Aug 2013 00:01:02 +0000 (00:01 +0000)]
Merge "Prevent refocus after entering touch mode" into klp-dev

10 years agoMerge "Ensure LOW_PROFILE is always clear when bars are transient." into klp-dev
John Spurlock [Wed, 14 Aug 2013 23:50:38 +0000 (23:50 +0000)]
Merge "Ensure LOW_PROFILE is always clear when bars are transient." into klp-dev

10 years agoMerge "Add motion event forwarding hidden APIs to View" into klp-dev
Alan Viverette [Wed, 14 Aug 2013 23:01:56 +0000 (23:01 +0000)]
Merge "Add motion event forwarding hidden APIs to View" into klp-dev

10 years agoMerge "Throw exception in FragmentManager when queuing to a destroyed activity" into...
Alan Viverette [Wed, 14 Aug 2013 22:55:55 +0000 (22:55 +0000)]
Merge "Throw exception in FragmentManager when queuing to a destroyed activity" into klp-dev

10 years agoDateUtils should use the user's 12/24-hour preference, not the locale's.
Elliott Hughes [Wed, 14 Aug 2013 22:12:43 +0000 (15:12 -0700)]
DateUtils should use the user's 12/24-hour preference, not the locale's.

Bug: 10312832

(cherry picked from commit f0b79aeed36f0839e4effaa36893b7ca71292563)

Change-Id: I0d78725d47009553f9003ccfba06f70f178a6ec1

10 years agoAdd motion event forwarding hidden APIs to View
Alan Viverette [Wed, 14 Aug 2013 21:57:13 +0000 (14:57 -0700)]
Add motion event forwarding hidden APIs to View

Change-Id: Ia7ab5496f8064c96b34912b5f5e9af6fd0978b34

10 years agoMerge "Camera2: Add metadata keys and enum values" into klp-dev
Eino-Ville Talvala [Wed, 14 Aug 2013 20:20:43 +0000 (20:20 +0000)]
Merge "Camera2: Add metadata keys and enum values" into klp-dev

10 years agoEnsure LOW_PROFILE is always clear when bars are transient.
John Spurlock [Wed, 14 Aug 2013 20:08:45 +0000 (16:08 -0400)]
Ensure LOW_PROFILE is always clear when bars are transient.

Bug:10326361
Change-Id: I4d12c4973153aac72bc840840f061ec782e27a87

10 years agoMerge "Add GIDs to packages.list, update SD card perms." into klp-dev
Jeff Sharkey [Wed, 14 Aug 2013 20:08:36 +0000 (20:08 +0000)]
Merge "Add GIDs to packages.list, update SD card perms." into klp-dev

10 years agoam 04b40ee3: (-s ours) Reconcile with jb-mr2-release jb-mr2-zeroday-release jb-mr2...
The Android Open Source Project [Wed, 14 Aug 2013 19:16:21 +0000 (12:16 -0700)]
am 04b40ee3: (-s ours) Reconcile with jb-mr2-release jb-mr2-zeroday-release jb-mr2-zeroday-deb-release - do not merge

* commit '04b40ee33e0f1649bedc9b0b9b3e277b6b37f164':
  Use hostname verifier directly instead of instance DO NOT MERGE
  If in a mobile captive portal is detected enable fail fast.
  Have CaptivePortalTracker use gservices updateable provisioning urls.
  In CaptiviePortalTracker a socket timeout is probably a captive portal.
  Check that hipri has started.
  Fix issue #10226007: Reset apps restores most of the changed settings...
  Fix issue #10226007: Reset apps restores most of the changed settings...

10 years agoReconcile with jb-mr2-release jb-mr2-zeroday-release jb-mr2-zeroday-deb-release ...
The Android Open Source Project [Wed, 14 Aug 2013 19:09:27 +0000 (12:09 -0700)]
Reconcile with jb-mr2-release jb-mr2-zeroday-release jb-mr2-zeroday-deb-release - do not merge

Change-Id: I498651fc3fa9b021570780e8b8848a806c31962f

10 years agoam 30e9065c: am 8ab80f1a: am 1a5bb9d5: Update Typography design guide Bug: 6947941
Roman Nurik [Wed, 14 Aug 2013 18:32:13 +0000 (11:32 -0700)]
am 30e9065c: am 8ab80f1a: am 1a5bb9d5: Update Typography design guide Bug: 6947941

* commit '30e9065c2530d9db5e63807649f1054b4ee33033':
  Update Typography design guide Bug: 6947941

10 years agoam 8ab80f1a: am 1a5bb9d5: Update Typography design guide Bug: 6947941
Roman Nurik [Wed, 14 Aug 2013 18:24:11 +0000 (11:24 -0700)]
am 8ab80f1a: am 1a5bb9d5: Update Typography design guide Bug: 6947941

* commit '8ab80f1a02874a3bc4d9ec1272536e17a888bf3c':
  Update Typography design guide Bug: 6947941

10 years agoam 1a5bb9d5: Update Typography design guide Bug: 6947941
Roman Nurik [Wed, 14 Aug 2013 18:21:45 +0000 (11:21 -0700)]
am 1a5bb9d5: Update Typography design guide Bug: 6947941

* commit '1a5bb9d5cf13a2d2f9086926a7a020cfa08efd66':
  Update Typography design guide Bug: 6947941

10 years agoThrow exception in FragmentManager when queuing to a destroyed activity
Alan Viverette [Wed, 14 Aug 2013 18:17:25 +0000 (11:17 -0700)]
Throw exception in FragmentManager when queuing to a destroyed activity

Change-Id: I0522cf27fd423070f7578c1c43c1f05a335810bf

10 years agoUpdate Typography design guide
Roman Nurik [Wed, 14 Aug 2013 16:52:41 +0000 (09:52 -0700)]
Update Typography design guide
Bug: 6947941

Change-Id: I18a5c9cfd9de511c280d8aa7e410b5b9939c6774

10 years agoRemove comment that's only relevant for the underlying SkMatrix. Matrix has construc...
Mike Klein [Wed, 14 Aug 2013 17:13:30 +0000 (13:13 -0400)]
Remove comment that's only relevant for the underlying SkMatrix.  Matrix has constructors.

bug: 8470620

Change-Id: I00063dc03f752955c27c73e9c59b0496a1795924

10 years agoMerge "Expose MediaCodec.setParameters API to" into klp-dev
Andreas Huber [Wed, 14 Aug 2013 15:39:14 +0000 (15:39 +0000)]
Merge "Expose MediaCodec.setParameters API to" into klp-dev

10 years agoNormalize dream service dump check with other services.
John Spurlock [Wed, 14 Aug 2013 13:46:52 +0000 (09:46 -0400)]
Normalize dream service dump check with other services.

Bug:10310128
Change-Id: Ieeeccc01832b569cf7fb3d1633d7dde60fceb7b2

10 years agoMerge "LE: Add peripheral role support (1/4)" into klp-dev
Matthew Xie [Wed, 14 Aug 2013 08:14:08 +0000 (08:14 +0000)]
Merge "LE: Add peripheral role support (1/4)" into klp-dev

10 years agoLE: Add peripheral role support (1/4)
Andre Eisenbach [Wed, 7 Aug 2013 02:57:48 +0000 (19:57 -0700)]
LE: Add peripheral role support (1/4)

Initial stack support for the LE peripheral role.

Change-Id: I6222493488822b4289b90888ccc97ad9306f54d1

10 years agoMerge "LE: Add instance ID to descriptors (1/4)" into klp-dev
Matthew Xie [Wed, 14 Aug 2013 07:27:49 +0000 (07:27 +0000)]
Merge "LE: Add instance ID to descriptors (1/4)" into klp-dev

10 years agoMerge "Partial implementation for the favorite and available printer tracking." into...
Svetoslav [Wed, 14 Aug 2013 07:09:25 +0000 (07:09 +0000)]
Merge "Partial implementation for the favorite and available printer tracking." into klp-dev

10 years agoPartial implementation for the favorite and available printer tracking.
Svetoslav [Tue, 13 Aug 2013 05:36:50 +0000 (22:36 -0700)]
Partial implementation for the favorite and available printer tracking.

1. Added a dedicated class that keeps track of the user's favorite printers
   based on past usage. We keep the last 50 uses and assign a decreasing weight
   to older historical use records. The printer whose records' sum is the
   largest is considered the favorite for the user and so on.

2. Factored out the printer discovery logic from the print job config activity
   into a separate available printers provider class. It encapsulates all the
   logic to communicated with the remote print services to discover printers,
   keep track of added, updated, and removed printers.

3. Preliminary scetch of the printer chooser acitivty that will show all the
   printers.

Change-Id: I5524665f2a9a565f186db85214d5e41a44f4812e

10 years agoMerge "Toward regularizing color & level across battery indicators." into klp-dev
Daniel Sandler [Wed, 14 Aug 2013 06:29:05 +0000 (06:29 +0000)]
Merge "Toward regularizing color & level across battery indicators." into klp-dev

10 years agoToward regularizing color & level across battery indicators.
Daniel Sandler [Fri, 12 Apr 2013 05:39:02 +0000 (01:39 -0400)]
Toward regularizing color & level across battery indicators.

Each of our existing assets is slightly incorrect in some
way: inconsistent pixel jumps from one percent to the next,
inconsistent color change, etc. The only way to get it
perfectly right is to draw it programmatically.

Bug: 8504254 // inconsistent color change threshold
-- previously --
Bug: 3136046 // in Gingerbread
Bug: 3387973 // Honeycomb
Bug: 5070948 // ICS
Change-Id: I6a3e7409ecec55e10328541ecb1e9d54aebdbe96

10 years agoMerge "How did that get there?" into klp-dev
Daniel Sandler [Wed, 14 Aug 2013 05:24:33 +0000 (05:24 +0000)]
Merge "How did that get there?" into klp-dev

10 years agoHow did that get there?
Daniel Sandler [Wed, 14 Aug 2013 05:19:45 +0000 (22:19 -0700)]
How did that get there?

Whoever checked this in: Turn in your badge and your gun.

Change-Id: I635dbc3bae6a58bf425241fb4105e26cc03a9869

10 years agoDefend against NPE.
Daniel Sandler [Wed, 14 Aug 2013 03:18:01 +0000 (20:18 -0700)]
Defend against NPE.

During SystemUI startup, populating accessibility for other
views can race with attaching SignalClusterView to its parent.

Bug: 9999664
Change-Id: Iba34a3edba403ae65ff3c37b953d0736068a67b9

10 years agoMerge "Drop simultaneous pointer events when tracking velocity." into klp-dev
Daniel Sandler [Wed, 14 Aug 2013 02:35:33 +0000 (02:35 +0000)]
Merge "Drop simultaneous pointer events when tracking velocity." into klp-dev

10 years agoLE: Add instance ID to descriptors (1/4)
Andre Eisenbach [Tue, 9 Jul 2013 06:58:16 +0000 (23:58 -0700)]
LE: Add instance ID to descriptors (1/4)

If a remote devices offers multiple descriptors with the same UUID, the
instance ID is used to differentiate between them.

Change-Id: I0c36494c980c86abd23f9647196af8d59ef663e9

10 years agoDrop simultaneous pointer events when tracking velocity.
Daniel Sandler [Wed, 14 Aug 2013 02:24:19 +0000 (19:24 -0700)]
Drop simultaneous pointer events when tracking velocity.

They're not really simultaneous, but within 1ms of one
another, which is too close for getEventTime() to
distinguish; these events were causing the velocity
computation to become (understandably) confused and
resulting in failed panel flings.

Bug: 10246454
Change-Id: I3829192cdf9ad2a222ec8deca031d772d58de0da

10 years agoMerge "MediaCodecInfo.java: Added isFeatureSupported method to CodecCapabilities...
Lajos Molnar [Wed, 14 Aug 2013 01:26:38 +0000 (01:26 +0000)]
Merge "MediaCodecInfo.java: Added isFeatureSupported method to CodecCapabilities" into klp-dev

10 years agoam 5ad480c8: am 965eb258: am 1c2cb653: am 999ddae7: am ae24c0d5: am bf15c7ce: am...
Kenny Root [Wed, 14 Aug 2013 01:26:06 +0000 (18:26 -0700)]
am 5ad480c8: am 965eb258: am 1c2cb653: am 999ddae7: am ae24c0d5: am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance

* commit '5ad480c8fba9a7044d827c38db235cffd52fbc13':
  Use hostname verifier directly instead of instance

10 years agoMerge "Delay transient navigation confirmation prompt." into klp-dev
John Spurlock [Wed, 14 Aug 2013 01:05:38 +0000 (01:05 +0000)]
Merge "Delay transient navigation confirmation prompt." into klp-dev

10 years agoam 965eb258: am 1c2cb653: am 999ddae7: am ae24c0d5: am bf15c7ce: am dceda36b: am...
Kenny Root [Wed, 14 Aug 2013 00:59:31 +0000 (17:59 -0700)]
am 965eb258: am 1c2cb653: am 999ddae7: am ae24c0d5: am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance

* commit '965eb258438619774d37cce0ccf9edc976c7a343':
  Use hostname verifier directly instead of instance

10 years agoam 1c2cb653: am 999ddae7: am ae24c0d5: am bf15c7ce: am dceda36b: am 1c5e33d3: am...
Kenny Root [Wed, 14 Aug 2013 00:57:10 +0000 (17:57 -0700)]
am 1c2cb653: am 999ddae7: am ae24c0d5: am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance

* commit '1c2cb6533bfebf8b930850215e24327420e34a4b':
  Use hostname verifier directly instead of instance

10 years agoam 999ddae7: am ae24c0d5: am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am...
Kenny Root [Wed, 14 Aug 2013 00:54:18 +0000 (17:54 -0700)]
am 999ddae7: am ae24c0d5: am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance

* commit '999ddae70360fc99e804d0b176af487582cd37c8':
  Use hostname verifier directly instead of instance

10 years agoam ae24c0d5: am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am...
Kenny Root [Wed, 14 Aug 2013 00:51:15 +0000 (17:51 -0700)]
am ae24c0d5: am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance

* commit 'ae24c0d539414805a6c979f9318d0765506221ae':
  Use hostname verifier directly instead of instance

10 years agoam bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use...
Kenny Root [Wed, 14 Aug 2013 00:48:20 +0000 (17:48 -0700)]
am bf15c7ce: am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance

* commit 'bf15c7cecefba8fdb3070c389a4966f11a8d8656':
  Use hostname verifier directly instead of instance

10 years agoam dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifie...
Kenny Root [Wed, 14 Aug 2013 00:44:27 +0000 (17:44 -0700)]
am dceda36b: am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance

* commit 'dceda36b0052aca7a93a265ea6eb8e8fb71cd322':
  Use hostname verifier directly instead of instance

10 years agoam 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly...
Kenny Root [Wed, 14 Aug 2013 00:42:45 +0000 (17:42 -0700)]
am 1c5e33d3: am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance

* commit '1c5e33d37dd4f8c68ccc16758e21572f193a8eb2':
  Use hostname verifier directly instead of instance

10 years agoam 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of...
Kenny Root [Wed, 14 Aug 2013 00:36:42 +0000 (17:36 -0700)]
am 3bc3240f: am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance

* commit '3bc3240ffb51358fa706099cfc5e120cf0f1b60d':
  Use hostname verifier directly instead of instance

10 years agoDelay transient navigation confirmation prompt.
John Spurlock [Wed, 14 Aug 2013 00:02:46 +0000 (20:02 -0400)]
Delay transient navigation confirmation prompt.

Ensure the nav bar is hidden, then wait about the same amount
of time before showing the prompt.

Bug:10312565
Change-Id: Ifbbbc55edf2e40844296e3e96fcc5b491f1b246f

10 years agoam a6226a2d: am 32c99004: Use hostname verifier directly instead of instance
Kenny Root [Wed, 14 Aug 2013 00:31:32 +0000 (17:31 -0700)]
am a6226a2d: am 32c99004: Use hostname verifier directly instead of instance

* commit 'a6226a2d202619ddb7e3e9765a3dc9f20241f853':
  Use hostname verifier directly instead of instance

10 years agoam 32c99004: Use hostname verifier directly instead of instance
Kenny Root [Wed, 14 Aug 2013 00:27:49 +0000 (17:27 -0700)]
am 32c99004: Use hostname verifier directly instead of instance

* commit '32c990044f027542a034a7606cf010dca6df252f':
  Use hostname verifier directly instead of instance

10 years agoMerge "API for location settings injection" into klp-dev
Tom O'Neill [Wed, 14 Aug 2013 00:18:16 +0000 (00:18 +0000)]
Merge "API for location settings injection" into klp-dev

10 years agoMerge "camera2: Clear up docs for CameraDevice#configureOutputs" into klp-dev
Igor Murashkin [Tue, 13 Aug 2013 23:33:18 +0000 (23:33 +0000)]
Merge "camera2: Clear up docs for CameraDevice#configureOutputs" into klp-dev

10 years agoMerge "Don't allow airplane mode to affect location status icon. Gps still operates...
David Christie [Wed, 14 Aug 2013 00:10:36 +0000 (00:10 +0000)]
Merge "Don't allow airplane mode to affect location status icon. Gps still operates when airplane mode is on, and consumes just as much power so the icon shouldn't be hidden." into klp-dev

10 years agoMerge "Update location AppOp monitoring to respect settings. If a provider is disable...
David Christie [Wed, 14 Aug 2013 00:07:58 +0000 (00:07 +0000)]
Merge "Update location AppOp monitoring to respect settings. If a provider is disabled, we don't mark an app as actively using location just because it's requested that provider.  Also updates the concept of high power to support third party custom providers (doesn't hard code gps but looks at the provider's actual stated power requirement)." into klp-dev

10 years agoPrevent refocus after entering touch mode
Alan Viverette [Tue, 13 Aug 2013 23:57:28 +0000 (16:57 -0700)]
Prevent refocus after entering touch mode

BUG: 10210009
Change-Id: I9a5d7016728cc7d1fb1c759708b6df41c81865bb

10 years agoMerge "Add support in the platform for Flp Geofencing." into klp-dev
destradaa [Tue, 13 Aug 2013 23:56:31 +0000 (23:56 +0000)]
Merge "Add support in the platform for Flp Geofencing." into klp-dev

10 years agoMerge "Add support for batched wifi scans." into klp-dev
Robert Greenwalt [Tue, 13 Aug 2013 23:22:52 +0000 (23:22 +0000)]
Merge "Add support for batched wifi scans." into klp-dev

10 years agoDon't allow airplane mode to affect location status icon.
David Christie [Tue, 13 Aug 2013 23:14:10 +0000 (16:14 -0700)]
Don't allow airplane mode to affect location status icon.
Gps still operates when airplane mode is on, and consumes
just as much power so the icon shouldn't be hidden.

Change-Id: I10edc8771d3dd1831e94d26c6f61ca82d805cc12

10 years agoUpdate location AppOp monitoring to respect settings.
David Christie [Tue, 13 Aug 2013 22:54:32 +0000 (15:54 -0700)]
Update location AppOp monitoring to respect settings.
If a provider is disabled, we don't mark an app as
actively using location just because it's requested
that provider.  Also updates the concept of high
power to support third party custom providers
(doesn't hard code gps but looks at the provider's
actual stated power requirement).

Change-Id: Ie01243bf04d7301962ea9cdb25fb7d8d97566e02

10 years agoAdd support in the platform for Flp Geofencing.
destradaa [Tue, 13 Aug 2013 01:50:30 +0000 (18:50 -0700)]
Add support in the platform for Flp Geofencing.

Change-Id: I0fb0e276d3a06322697bb5d46323779aca1f78c5

10 years agoMerge "In isMobileOk don't execute finally if mobile data is not supported." into...
Wink Saville [Tue, 13 Aug 2013 22:57:54 +0000 (22:57 +0000)]
Merge "In isMobileOk don't execute finally if mobile data is not supported." into klp-dev

10 years agoMerge "Sysui flag-related doc fixes." into klp-dev
John Spurlock [Tue, 13 Aug 2013 22:35:57 +0000 (22:35 +0000)]
Merge "Sysui flag-related doc fixes." into klp-dev

10 years agoMerge "Fix NPE in ActivityManagerService" into klp-dev
Adam Skory [Tue, 13 Aug 2013 22:30:51 +0000 (22:30 +0000)]
Merge "Fix NPE in ActivityManagerService" into klp-dev

10 years agoUse hostname verifier directly instead of instance DO NOT MERGE
Kenny Root [Wed, 24 Jul 2013 03:36:03 +0000 (20:36 -0700)]
Use hostname verifier directly instead of instance DO NOT MERGE

Instead of local instance of the default HostnameVerifier, use it
directly from HttpsURLConnection. This avoids class preloading creating
an instance of it before it's necessary.

(cherry picked from commit 928ee1e48fa89302d02fdf8a8a2c7315d7195e7c)

Bug: 9984058
Change-Id: I79d8a934bfc390e4cd503fd592e21bc4e5446a7d

10 years agoam 1adbf6b9: (-s ours) am 61768c97: am 3870c570: Use hostname verifier directly inste...
Kenny Root [Tue, 13 Aug 2013 21:51:52 +0000 (14:51 -0700)]
am 1adbf6b9: (-s ours) am 61768c97: am 3870c570: Use hostname verifier directly instead of instance DO NOT MERGE

* commit '1adbf6b900a621675cd1928307bb88bb2c6501e5':
  Use hostname verifier directly instead of instance DO NOT MERGE

10 years agoam 9b979448: am 261e00cb: am b478b10f: Revert "Doc change: collapse key fix." To...
Scott Main [Tue, 13 Aug 2013 21:51:31 +0000 (14:51 -0700)]
am 9b979448: am 261e00cb: am b478b10f: Revert "Doc change: collapse key fix." To resolve conflict. I\'ll fix it all later.

* commit '9b979448581311f27456c1dcb9623a8d21bcf64f':
  Revert "Doc change: collapse key fix." To resolve conflict. I'll fix it all later.

10 years agoAPI for location settings injection
Tom O'Neill [Tue, 13 Aug 2013 21:41:22 +0000 (14:41 -0700)]
API for location settings injection

- Partial fix for b/10287745

Change-Id: Ie998ce0a7b350e4183fce5753bfac3eb51238ff4

10 years agocamera2: Clear up docs for CameraDevice#configureOutputs
Igor Murashkin [Fri, 9 Aug 2013 23:26:14 +0000 (16:26 -0700)]
camera2: Clear up docs for CameraDevice#configureOutputs

Change-Id: Id2397ca17c5968cb4dfdb337ea56be9d5f481669

10 years agoAdd support for batched wifi scans.
Robert Greenwalt [Fri, 2 Aug 2013 01:24:13 +0000 (18:24 -0700)]
Add support for batched wifi scans.

bug:9301872

Change-Id: I5a7edfdbd2b78a65119d11acad491eae350c0870

10 years agoSysui flag-related doc fixes.
John Spurlock [Tue, 13 Aug 2013 21:21:09 +0000 (17:21 -0400)]
Sysui flag-related doc fixes.

Add new flags to existing flag listings, fix a broken @link, and
tweak wording.

Change-Id: Iebc4f5fc1c6fc3f8685c6252f88d8044fe08b79d

10 years agoFix NPE in ActivityManagerService
Adam Skory [Tue, 13 Aug 2013 20:32:31 +0000 (13:32 -0700)]
Fix NPE in ActivityManagerService

Bug: 10294281
Change-Id: Iaf608ae099b90fac8ad726285652b5c3e74e1632

10 years agoUse hostname verifier directly instead of instance
Kenny Root [Wed, 24 Jul 2013 03:36:03 +0000 (20:36 -0700)]
Use hostname verifier directly instead of instance

Instead of local instance of the default HostnameVerifier, use it
directly from HttpsURLConnection. This avoids class preloading creating
an instance of it before it's necessary.

(cherry picked from commit 928ee1e48fa89302d02fdf8a8a2c7315d7195e7c)

Bug: 9984058
Change-Id: I56565afa0394dc98054abbaef06ac9bfff009e56

10 years agoMerge "Code cleaning for Drawables" into klp-dev
Fabrice Di Meglio [Tue, 13 Aug 2013 20:13:46 +0000 (20:13 +0000)]
Merge "Code cleaning for Drawables" into klp-dev

10 years agoIn isMobileOk don't execute finally if mobile data is not supported.
Wink Saville [Tue, 13 Aug 2013 19:41:06 +0000 (12:41 -0700)]
In isMobileOk don't execute finally if mobile data is not supported.

Move the early return outside the try {} finally so we don't call
setEnableFailFastMobileData(DctContants.DISABLED). Otherwise
referencing counting is wrong and an exception is thrown in DcTrackerBase.

Bug: 10304904
Change-Id: I5ba5121e473bada9f3daa8d6f3d3577cec8212fc

10 years agoMerge "Fix Configuration layout direction comparison." into klp-dev
Craig Mautner [Tue, 13 Aug 2013 19:38:01 +0000 (19:38 +0000)]
Merge "Fix Configuration layout direction comparison." into klp-dev

10 years agoCamera2: Add metadata keys and enum values
Eino-Ville Talvala [Thu, 8 Aug 2013 19:38:36 +0000 (12:38 -0700)]
Camera2: Add metadata keys and enum values

- Insert metadata enum ints into CameraMetadata
- Insert metadata Keys into relevant files
- Remove some dead code in CameraMetadata

Generated from /system/media/camera/docs.

Change-Id: I3d864ad8c7add5f35ca740860cb2883d54a0791e

10 years agoam 61768c97: am 3870c570: Use hostname verifier directly instead of instance DO NOT...
Kenny Root [Tue, 13 Aug 2013 18:44:05 +0000 (11:44 -0700)]
am 61768c97: am 3870c570: Use hostname verifier directly instead of instance DO NOT MERGE

* commit '61768c97d6e066d633afe61a790a24473f59572c':
  Use hostname verifier directly instead of instance DO NOT MERGE

10 years agoam 3870c570: Use hostname verifier directly instead of instance DO NOT MERGE
Kenny Root [Tue, 13 Aug 2013 18:41:11 +0000 (11:41 -0700)]
am 3870c570: Use hostname verifier directly instead of instance DO NOT MERGE

* commit '3870c570bbd438cefd09a061b9481314a15dd659':
  Use hostname verifier directly instead of instance DO NOT MERGE

10 years agoam 261e00cb: am b478b10f: Revert "Doc change: collapse key fix." To resolve conflict...
Scott Main [Tue, 13 Aug 2013 18:00:49 +0000 (11:00 -0700)]
am 261e00cb: am b478b10f: Revert "Doc change: collapse key fix." To resolve conflict. I\'ll fix it all later.

* commit '261e00cb046db01b2bae9342f34ff99e99ada368':
  Revert "Doc change: collapse key fix." To resolve conflict. I'll fix it all later.

10 years agoUse hostname verifier directly instead of instance DO NOT MERGE
Kenny Root [Wed, 24 Jul 2013 03:36:03 +0000 (20:36 -0700)]
Use hostname verifier directly instead of instance DO NOT MERGE

Instead of local instance of the default HostnameVerifier, use it
directly from HttpsURLConnection. This avoids class preloading creating
an instance of it before it's necessary.

(cherry picked from commit 928ee1e48fa89302d02fdf8a8a2c7315d7195e7c)

Bug: 9984058
Change-Id: I79d8a934bfc390e4cd503fd592e21bc4e5446a7d

10 years agoam b478b10f: Revert "Doc change: collapse key fix." To resolve conflict. I\'ll fix...
Scott Main [Tue, 13 Aug 2013 17:57:31 +0000 (10:57 -0700)]
am b478b10f: Revert "Doc change: collapse key fix." To resolve conflict. I\'ll fix it all later.

* commit 'b478b10f34a9fa9c6b42f54047eb9e77111a16c7':
  Revert "Doc change: collapse key fix." To resolve conflict. I'll fix it all later.

10 years agoMerge "Camera.applyToCanvas() now works with hardware canvases" into klp-dev
Romain Guy [Tue, 13 Aug 2013 17:46:19 +0000 (17:46 +0000)]
Merge "Camera.applyToCanvas() now works with hardware canvases" into klp-dev

10 years agoCamera.applyToCanvas() now works with hardware canvases
Romain Guy [Tue, 13 Aug 2013 17:37:25 +0000 (10:37 -0700)]
Camera.applyToCanvas() now works with hardware canvases

Change-Id: I7f06b2a74ccc1941d51e12a0417028e094c1b669

10 years agoMediaCodecInfo.java: Added isFeatureSupported method to CodecCapabilities
Lajos Molnar [Fri, 10 May 2013 16:24:12 +0000 (09:24 -0700)]
MediaCodecInfo.java: Added isFeatureSupported method to CodecCapabilities

Added isFeatureSupported method to CodecCapabilities, so that applications
can query whether codecs support various features.  For now
added one video-decoder feature:

FEATURE_AdaptivePlayback

Media playback applications can query it to see if the codec
supports seamless resolution changes during decoding.

Change-Id: I56b2cf1429f39f9b9e0243a990c95e7a64dd7ff7
Signed-off-by: Lajos Molnar <lajos@google.com>
Related-to-bug: 7093648

10 years agoDistinguish transient + transparent bar styles.
John Spurlock [Mon, 12 Aug 2013 14:16:29 +0000 (10:16 -0400)]
Distinguish transient + transparent bar styles.

Transient bars = 30% black scrim per spec (formerly view alpha).
Transparent nav bar = Simple gradient drawable from 50% to 0% black.
Transparent status bar = Fully transparent.

Smoother transitions between bar modes will be tricky due to
coordination with window manager, and thus deferred to a separate
future change.

Pre-baked assets instead of the gradient drawable will also be
part of a separate future change, this change is simply meant to
move closer to the final look and feel to minimize confusion for
those kicking the tires on the new flags.

Bug:10012887
Change-Id: I8c35a660187903224a6bfe604b5313e9115c4a73

10 years agoUpdate transient navigation confirmation logic.
John Spurlock [Sat, 10 Aug 2013 10:52:28 +0000 (06:52 -0400)]
Update transient navigation confirmation logic.

Show the confirmation toast when hiding the transient
navigation bar only the first time per app, per reboot.

Hitting the power key while the transient nav is hidden
is taken as a signal of possible user confusion, so reshow
the prompt the next time.

This requires the confirmation prompt to live in policy
(not sysui).  It arguably should have been here in the first
place, since the transient bar state/policy was here, and
sysui should not have not been able to fail to display
the prompt correctly.

Also take this opportunity to remove a hack wrt positioning
the confirmation properly while the nav bar is transitioning.
Toasts now support LAYOUT_HIDE_NAVIGATION if applied to the
toast's view.

Bug: 10246225
Change-Id: Ieb6355e4ca975c0758918a39e3c2ec13da81c7f4

10 years agoFix Configuration layout direction comparison.
Craig Mautner [Tue, 13 Aug 2013 00:56:34 +0000 (17:56 -0700)]
Fix Configuration layout direction comparison.

If the Configuration layout direction is not changing don't indicate
that it has changed. When the indication is made incorrectly it
causes the window manager to believe that the configuration has
changed and it will start freezing the screen and setting up
animations. Bad jank is the result.

In Configuration.updateFrom() anytime that the screenLayouts were
different the code was setting ActivityInfo.CONFIG_LAYOUT_DIRECTION
in the return bitmask. Even if the only difference was between
UNDEFINED fields. This fix makes sure that the layout direction
field has actually changed before setting
ActivityInfo.CONFIG_LAYOUT_DIRECTION in the return bitmask.

In Configuration.diff() if the passed Configuration had
SCREENLAYOUT_LAYOUTDIR_UNDEFINED the code was setting
ActivityInfo.CONFIG_LAYOUT_DIRECTION in the return bitmask. This fix
makes sure that if the passed Configuration has fields set to
SCREENLAYOUT_*_UNDEFINED then corresponding bits will no longer be set
in the returned bitmask.

Fixes bug 10291622.
Fixes bug 10247094.

Change-Id: If26de662206fe85dc4671adbae39dfb99dc1038c

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 13 Aug 2013 07:29:07 +0000 (07:29 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Import translations. DO NOT MERGE" into klp-dev
Baligh Uddin [Tue, 13 Aug 2013 07:25:29 +0000 (07:25 +0000)]
Merge "Import translations. DO NOT MERGE" into klp-dev

10 years agoMerge "Remove exceptions from the printer discovery session APIs." into klp-dev
Svetoslav Ganov [Tue, 13 Aug 2013 05:31:23 +0000 (05:31 +0000)]
Merge "Remove exceptions from the printer discovery session APIs." into klp-dev

10 years agoRemove exceptions from the printer discovery session APIs.
Svetoslav Ganov [Tue, 13 Aug 2013 05:16:30 +0000 (22:16 -0700)]
Remove exceptions from the printer discovery session APIs.

It is not possible for a client to check whether the session is not
closed and add/update/remove printers atomically. It is always possible
that in between the two method calls the session is closed. Therefore,
we cannot enforce the exceptions.

Change-Id: If0e89e4429c4c360515da8f4bbe0ea3781e8e8fd

10 years agoAdd GIDs to packages.list, update SD card perms.
Jeff Sharkey [Tue, 13 Aug 2013 03:31:36 +0000 (20:31 -0700)]
Add GIDs to packages.list, update SD card perms.

Write supplementary GIDs to packages.list for lower-level system
components to parse.

WRITE_EXTERNAL_STORAGE also implies sdcard_r GID. Switch to always
enforce READ_EXTERNAL_STORAGE permission. Update permission docs to
mention new behavior.

Change-Id: I316ba4b21beebb387ac05c80980ae9b38235b37d

10 years agoMerge "Allow configuration of Toast gravity settings" into klp-dev
Jose Lima [Tue, 13 Aug 2013 02:24:34 +0000 (02:24 +0000)]
Merge "Allow configuration of Toast gravity settings" into klp-dev

10 years agoMerge "Update Quick Settings to use new consolidated master location method. This...
David Christie [Tue, 13 Aug 2013 01:44:41 +0000 (01:44 +0000)]
Merge "Update Quick Settings to use new consolidated master location method. This is an effort to consolidate the logic of what the "master location switch" means.  Quick settings will no longeer explicitly enable/disable gps and network providers." into klp-dev

10 years agoMerge "Change the exception msg" into klp-dev
Kristian Monsen [Tue, 13 Aug 2013 01:35:28 +0000 (01:35 +0000)]
Merge "Change the exception msg" into klp-dev

10 years agoChange the exception msg
Selim Gurun [Mon, 12 Aug 2013 20:37:53 +0000 (13:37 -0700)]
Change the exception msg

Change the exception msg to better identify the webview version.

Change-Id: I64c9a433144f9aa0362ad6c9217da92acbb655bc