4167 Commits

Author SHA1 Message Date
Sean Barbeau
67662767d9 Adds utility method to convert 0.25 secs to decimal degrees
This patch adds a utility method that converts latitude and longitude
in quarter seconds units to decimal degrees units.  The Telephony API
returns CDMA base station latitude and longitude in quarter seconds
due to a 3GPP telecom standard, while the Android Location API, and
the vast majority of application-level code, uses decimal degrees.

For example, to measure the distance from the user's current location
to the base station using the Location API Location.distanceBetween()
method (http://goo.gl/YjO8O), the base station lat and long would need
to be converted to decimal degrees first.

Since most application developers will likely never use lat/long information
in quarter seconds units, and instead will need this information in decimal
degrees, this utility method will frequently be used by anyone querying
base station location data from CdmaCellLocation.

Sample values to test conversion:

0.25 seconds: lat = 399491, long = -1189145
is equivalent to
decimal degrees: lat = 27.742430555555554, long = -82.57951388888888

Change-Id: If03e741f5035a37519f50d4fb2fb3e3eef2505da
Signed-off-by: Sean Barbeau <sjbarbeau@gmail.com>
2012-05-02 16:22:16 -07:00
Adam Cohen
dfed49a285 Merge "Changing app widget "extras" to "options" and another small API Review issue" into jb-dev 2012-05-02 10:38:01 -07:00
Adrian Ludwig
dc410cb349 Reorganizing permissions into groups oriented around user-understandable concepts.
These groups are assigned priority for sort-order when displayed to users, and use
the new permissionGroupFlags to indicate whether they contain personalInfo.

Change-Id: I27e81912e08b8d7766b8ce449b4b3bd6473d8f07
2012-05-02 09:56:41 -07:00
Adam Cohen
d2097ebacf Changing app widget "extras" to "options" and another small API Review issue
-> (issue 6427146), (issue 6427861)

Change-Id: Ib69a9b3717a5b62317ec227936bc3b2fd5954043
2012-05-02 09:32:42 -07:00
Adam Powell
f78a8444a9 API modifications for TaskStackBuilder
Change-Id: Ic9e11caa4541962d32b2c197f4f7b19ee67a0eda
2012-05-01 18:51:40 -07:00
Eric Laurent
f3afe15754 Merge "AudioManager: deprecate vibrate settings" into jb-dev 2012-05-01 16:29:39 -07:00
Eric Laurent
cd1cd73bae AudioManager: deprecate vibrate settings
Deprecate methods, intent and constants related to vibrate
settings management: getVibrateSetting(), setVibrateSetting(),
shouldVibrate() ...

According to new vibrate/notification policy, applications should
maintain their own vibrate settings.

Issue 6036529.

Change-Id: I99bcef2c5f602131f1d9b0222f7fb39f3bbef823
2012-05-01 16:26:04 -07:00
Gilles Debunne
61552bc81f Merge "API fix in CheckedTextView" into jb-dev 2012-05-01 16:19:40 -07:00
Stephen Hines
d28030ae51 Merge "Start passing element/dim information along with FieldPacker." into jb-dev 2012-05-01 15:54:37 -07:00
Stephen Hines
a7228c882c Merge "Unhide FONT." into jb-dev 2012-05-01 15:54:16 -07:00
James Dong
cb6662ac53 Merge "Add video scaling mode support with a new public method in MediaPlayer.java class" into jb-dev 2012-05-01 13:34:28 -07:00
Andreas Huber
f72d392f5d Merge "Make java constants consistent with native counterparts." into jb-dev 2012-05-01 13:32:18 -07:00
Andreas Huber
48dc91b514 Make java constants consistent with native counterparts.
Change-Id: I481dfc18c170b4c60682ef1b38b57e10fb73d004
2012-05-01 12:27:26 -07:00
James Dong
454014e55f Add video scaling mode support with a new public method in MediaPlayer.java class
o related-to-bug: 5454345

Change-Id: I379b679eb6dd87f47f87a58791a5d0c7251b3a74
2012-05-01 12:22:35 -07:00
Gilles Debunne
2fb40285c7 API fix in CheckedTextView
Bug 6103310

Change-Id: Ic144ed99199a296df3ef1a16f59caff08af58fd9
2012-05-01 12:11:23 -07:00
Gilles Debunne
8ed491b75b Merge "API fix, AutoCompleteTextView" into jb-dev 2012-05-01 11:58:35 -07:00
Gilles Debunne
1dcd2bfcab Merge "API fix in TextView" into jb-dev 2012-05-01 11:58:26 -07:00
Michael Jurka
c81a075196 Merge "Revert "Adding getters/setters for StackView xml attrs. (Bug 6104219)"" into jb-dev 2012-05-01 11:47:36 -07:00
Winson Chung
0b3d3a3a56 Revert "Adding getters/setters for StackView xml attrs. (Bug 6104219)"
This reverts commit 7ced8f9cabfed2e11c125a1a6b4ff18f1cc50060
2012-05-01 11:46:09 -07:00
Dianne Hackborn
a25c8a97af Merge "Add new APIs for permission group flags and priorities." into jb-dev 2012-05-01 11:15:51 -07:00
Winson Chung
7e400cfb71 Merge "Adding getters/setters for StackView xml attrs. (Bug 6104219)" into jb-dev 2012-05-01 10:55:14 -07:00
Stephen Hines
adeb809201 Start passing element/dim information along with FieldPacker.
BUG=6009244

Change-Id: I3c82c8b40c899b875831f53cf0ad82ea36c1a043
2012-05-01 00:29:52 -07:00
Stephen Hines
9da1b5d030 Unhide FONT.
Change-Id: I86258076817bb8f34ce3bb76031df41c08750f8c
2012-05-01 00:29:52 -07:00
Gilles Debunne
f03acef0ab API fix in TextView
Bug 6104140

Change-Id: I44af54ac7c194335a649e5878ff47dc894fa46fe
2012-04-30 21:08:41 -07:00
Winson Chung
7ced8f9cab Adding getters/setters for StackView xml attrs. (Bug 6104219)
Change-Id: Iaa1ba0292b0d40f73e315028d9f01ef407021e57
2012-04-30 18:50:52 -07:00
Dianne Hackborn
fd5015be41 Add new APIs for permission group flags and priorities.
Change-Id: I2d476c6aa9dbd05407ec49be45986f42d2acf9e7
2012-04-30 18:19:09 -07:00
Gilles Debunne
5c49d11a57 API fix, AutoCompleteTextView
Bug 6102885

Didn't fix dropDownSelector nor completionHintView at that point.

Change-Id: If080cbefd5189b79e4fa042e28dfa6a71524b93d
2012-04-30 18:13:56 -07:00
Andreas Huber
b12a539069 New API to set the video rendering mode on a MediaCodec instance.
Change-Id: I6d765bb4cab7bcf29f09364293c24e8a6930078b
related-to-bug: 6364139
2012-04-30 14:46:22 -07:00
Dave Burke
ec3f31f621 Added support for HE-AAC recording.
Not unhiding HE-AACv2 since that requires stereo mics.

Bug: 6275957

Change-Id: I953a6d21e615c8fd23f9390e3c86d63089f5fb75
2012-04-30 09:24:01 -07:00
James Dong
6d6f233a62 Merge "Unhide APIs for timed text and multiple audio track switch APIs" into jb-dev 2012-04-27 17:49:28 -07:00
Philip Milne
7a23b49a8c Fixes for optical bounds feature.
1. Make the feature opt-in (ViewGroup::layoutMode defaults to CLIP_BOUNDS) without inheritance.
2. Rename COMPONENT_BOUNDS to CLIP_BOUNDS.
3. Rename LAYOUT_BOUNDS to OPTICAL_BOUNDS.
4. Complete GridLayout implementation.
5. Change the default_gap between components to 8dp, to align with the Style Guide.

Change-Id: I8d40dfc5f4ca469f6424eb3ff60d07bec56e3a9f
2012-04-27 16:46:57 -07:00
James Dong
7a9734d769 Unhide APIs for timed text and multiple audio track switch APIs
o made all the member variables in helper classes for TimedText to be public and final
  since they are read-only
o removed Text and TextPos helper classes
o added two public methods in TimedText class: getText() and getBounds()
o cleaned up the javadoc of related methods in MediaPlayer.java and TimedText.java classes
o make the inner classes of TimedText static and final
o change invoke and let it throw RuntimeException on failure (thus a test class needs to be
  modified also).

o related-to-bug: 6110705,5542712

Change-Id: Ia1dd1fd5eb8e9fd1b61c6c0d67405edb627a3002
2012-04-27 15:48:46 -07:00
Michael Jurka
f0fb68d8c9 Merge "Make APIs to get global search provider public" into jb-dev 2012-04-27 14:41:27 -07:00
Michael Jurka
3f5cfcf2d9 Make APIs to get global search provider public 2012-04-27 14:23:48 -07:00
Steve Block
886f138dfe Merge "Fix build warning due to WebSettings now being abstract" into jb-dev 2012-04-27 11:09:41 -07:00
Steve Block
d26286684b Fix build warning due to WebSettings now being abstract
WebSettings was made abstract in
https://android-git.corp.google.com/g/#/c/177360

current.txt was updated, but this causes a build warning because 16.txt was not
updated to match.

Change-Id: I4e00297361048509fab236f292c07d8a0df28f28
2012-04-27 12:08:43 +01:00
Dianne Hackborn
493f74e5a4 Merge "Add new Activity.finishAffinity() method." into jb-dev 2012-04-26 19:25:41 -07:00
Dianne Hackborn
ecc5a9cca0 Add new Activity.finishAffinity() method.
It's cool!

Change-Id: I9fdcd9535b7f1ca2b311d3a1b23e5d058977b095
2012-04-26 18:56:09 -07:00
Adam Cohen
2938ac3f9f Merge "Enabling RemoteViews to have a landscape and portrait layout" into jb-dev 2012-04-26 15:35:13 -07:00
Amith Yamasani
7a4be122cd Merge "Add some missing getters for XML/Java API consistency." into jb-dev 2012-04-26 15:28:52 -07:00
Dianne Hackborn
a6517ae300 Merge "Update process importance documentation." into jb-dev 2012-04-26 14:19:12 -07:00
Adam Cohen
5d20064651 Enabling RemoteViews to have a landscape and portrait layout
-> Implmented BitmapCache to ensure no bitmap data is duplicated
   within a RemoteViews hierarchy.

Change-Id: I68f0f5e2882ee2a2a9a110c1642b93c4c7518743
2012-04-26 11:11:17 -07:00
Dave Burke
2996cf03a2 Merge "Unhide new AAC-ELD audio record type." into jb-dev 2012-04-26 10:58:57 -07:00
Dianne Hackborn
c5bf758442 Update process importance documentation.
Also be more direct about some of the wallpaper APIs.

Change-Id: I2112898c0cd4415d6c5fd47923de682d59b8291f
2012-04-26 10:58:37 -07:00
Andreas Huber
f2855b3df5 The MediaExtractor can now unselect tracks and has more control over seeking.
Change-Id: I12c28bf31fe9fb4057352999fa38213ae289a417
related-to-bug: 6276111
2012-04-26 10:43:31 -07:00
Dave Burke
6644a826a1 Unhide new AAC-ELD audio record type.
Change-Id: Ibb9d3cd797c0b14c495776dc172ff7dadf6df7d6
2012-04-25 23:15:22 -07:00
Amith Yamasani
eca59d39c3 Add some missing getters for XML/Java API consistency.
Bug: 6103517
Change-Id: I46dca62d4d6465a4d0b0d2eafd9013ab4a90fb3c
2012-04-25 18:57:18 -07:00
Michael Jurka
ba0ee8fce6 Make Advanceable a public API. 2012-04-25 14:02:21 -07:00
Svetoslav Ganov
9ca10c8c3c Merge "Adding explicit text traversal granularities and actions for web navigation." 2012-04-24 19:27:13 -07:00
Michael Jurka
2c8e19e81f Merge "New API to allow third-party apps to bind widgets" 2012-04-24 19:06:14 -07:00