139 Commits

Author SHA1 Message Date
Jack Palevich
d6fbffe6ea AI 145255: Further work on correcting the misspelling of RENDERMODE_CONTUOUSLY
--> RENDERMODE_CONTINUOUSLY. This time we update the spelling
  in the list of APIs in SDK release 3. (Which hasn't actually been
  released yet, so it's OK to do this.)
  BUG=1766678

Automated import of CL 145255
2009-04-08 20:33:03 -07:00
Jack Palevich
62d4be411e AI 145250: Update API for GLSurfaceView to account for correcting the spelling of a
constant RENDER_CONTINUOUSLY. (This constant is new to Cupcake, so this is not
  a breaking API change.)
  BUG=1766678

Automated import of CL 145250
2009-04-08 19:41:04 -07:00
Jack Palevich
93f411386a AI 145249: Correct misspelling of constant RENDERMODE_CONTUOUSLY --> RENDERMODE_CONTINUOUSLY
BUG=1766678

Automated import of CL 145249
2009-04-08 19:28:00 -07:00
Jack Palevich
722a96cbb4 AI 145244: Fully document GLSurfaceView and related classes.
BUG=1766685

Automated import of CL 145244
2009-04-08 19:02:20 -07:00
Eric Fischer
9bfc99a308 AI 145225: Import more revised translations into cupcake.
Automated import of CL 145225
2009-04-08 18:43:27 -07:00
Eric Fischer
e5af939c8e AI 145214: Update cupcake translations.
Automated import of CL 145214
2009-04-08 15:59:35 -07:00
Eric Fischer
bb4de4bcbe AI 144977: Import revised translations.
DO NOT MERGE

Automated import of CL 144977
2009-04-07 18:15:15 -07:00
Robert Greenwalt
ae5728d67a AI 144950: Manual integration of 144342 and 144547 from donutburger to cupcake.
Fix bag (string-array, etc) behavior with overlays.
  We used to replace elements in the default with elements from the
  overlay.  This change causes us to empty the array first so if the
  overlay array is smaller we don't end up with elements from the
  default array showing through at the end of the final result.
  Ex: [A,B,C] default with [D] overlay should give [D] but used to
  give [D,B,C]
  BUG=1754390

Automated import of CL 144950
2009-04-07 17:19:28 -07:00
Eric Fischer
f845cd4f23 AI 144891: Import a bunch of revised translations.
Automated import of CL 144891
2009-04-07 11:48:29 -07:00
Dave Sparks
2b7e70bdc4 AI 144739: More notification sounds
BUG=1772686

Automated import of CL 144739
2009-04-06 18:37:29 -07:00
Eric Fischer
1015b379bc AI 144355: Automated g4 rollback of changelist 144335.
*** Reason for rollback ***
  Roll back US Spanish import because it made the build too big.
  *** Original change description ***
  Import US Spanish translations, and a few Japanese changes.

Automated import of CL 144355
2009-04-02 21:42:04 -07:00
Eric Fischer
0c65631515 AI 144335: Import US Spanish translations, and a few Japanese changes.
Automated import of CL 144335
2009-04-02 16:39:20 -07:00
Jean-Michel Trivi
36951ab6c2 AI 144326: Start the thread that initializes the camera for the test under lock to make sure the monitor is notified after it has started waiting.
BUG=1731117

Automated import of CL 144326
2009-04-02 16:11:58 -07:00
Xia Wang
7c3b6285c3 AI 144313: Add two test cases for AudioTrack.java
getMinBufferSize() returns ERROR_BAD_VALUE if
  sampleRateInHz < 4000 or > 48000.

Automated import of CL 144313
2009-04-02 15:21:33 -07:00
Suchi Amalapurapu
633d8cddb8 AI 144308: aapt extensions: required sdk version, dependent software libraries, gadgets
Add new attributes for sdk version, software libs and gadgets
  BUG = 1730924
  BUG=1730924

Automated import of CL 144308
2009-04-02 15:19:31 -07:00
Chris Tate
a48875a7d7 AI 144306: Fix SDK issue 1716562 - Broadcast mechanism documentation should be improved.
BUG=1716562

Automated import of CL 144306
2009-04-02 14:59:14 -07:00
Amith Yamasani
29c1c42e18 AI 144256: Need to show opt-in screen for location collection.
Added a screen to the setup wizard, after login, to ask user to
  opt-in for location collection.
  Added a dialog to Settings when user turns on Network location.
  Fixed a security permission issue in LocationManagerService related
  to this change.
  BUG=1752566

Automated import of CL 144256
2009-04-02 11:39:09 -07:00
Daisuke Miyakawa
196677cf8c AI 144181: Modify ProgressDialog class and its xml so that it follows the
Android's UI guide line. This modification is based on leland's mock.
  See http://b/issue?id=1748136 for more information.
  Put ProgressNumber left side, next to ProgressPercentage.
  Make ProgressPercentage Bold.
  Put ProgressNumber and ProgressPercentage near to the ProgressBar
  above. This is same as the design of Market application.
  Enable ProgressDialog change the ProgressNumber format. This is hidden
  since the interface is premature.
  BUG=1748136,1612476

Automated import of CL 144181
2009-04-01 19:14:59 -07:00
Nick Pelly
de810e407c AI 144150: Fix heap corruption.
Take mutex in close(), and skip write path after turning bluetooth off.
  BUG=1751710

Automated import of CL 144150
2009-04-01 16:40:01 -07:00
Chris Tate
d7c1f5d0dd AI 144134: Fix issue 1750132 - SensorManager listener 'rate' parameter units are undocumented
BUG=1750132

Automated import of CL 144134
2009-04-01 15:59:29 -07:00
Brett Chabot
9a89f145d3 AI 144093: Fix NPE in ActivityUnitTestCase.
BUG=1751731

Automated import of CL 144093
2009-04-01 15:12:07 -07:00
Eric Laurent
1177ece66b AI 144053: Fix issue #1751242 A2DP playback fails first time: Invalid buffer size: minFrameCount 10240, frameCount 4800
The problem comes from the fact that AudioSystem::getOutputFrameCount() calls getOutput() to retrieve the active output (A2DP or Hardware) before calling get_audio_flinger(). If it is the first time AudioSystem::getOutputFrameCount() is called in a given process, getOutput() will return a wrong value because gA2dpEnabled has not yet been updated by get_audio_flinger().
  The fix consists in calling get_audio_flinger() in getOutput() to be sure that gA2dpEnabled is valid when getOutput() reads it.
  BUG=1751242

Automated import of CL 144053
2009-04-01 12:54:49 -07:00
Jean-Baptiste Queru
ffaadd2b6e AI 144006: Set a real 3.xml, which is the current candidate cupcake API.
This allows work done in later codelines to have proper
  backward-compatibility checks.
  BUG=1750515

Automated import of CL 144006
2009-04-01 10:22:26 -07:00
Tadashi Takaoka
c21cf4a9c5 AI 144001: Fix tiny bug in Rfc822Token.java
BUG=1751496

Automated import of CL 144001
2009-04-01 09:52:01 -07:00
Grace Kloba
3192d4a23a AI 143998: Fix #1750489. Call WebKit's setNetworkOnLine from WebCore thread instead of UI thread as WebKit is not thread safe.
Using the same code pattern as the rest of the file:
  . throw IllegalStateException if BrowserFrame.sJavaBridge is null in pauseTimers/resumeTimers.
  . use (msg.arg1 == 1) to pass the boolean from WebView to WebViewCore as in CLEAR_CACHE
  BUG=1750489

Automated import of CL 143998
2009-04-01 09:44:46 -07:00
Jeffrey Sharkey
e1ae350cb9 AI 143907: Make search widget drop-down wider.
BUG=1749373

Automated import of CL 143907
2009-03-31 18:24:45 -07:00
Yu Shan Emily Lau
ba6da788c4 AI 143904: Fix the failure in the media recorder large test by adding the Camera permission.
Automated import of CL 143904
2009-03-31 18:14:38 -07:00
Robert Greenwalt
f05a98cbff AI 143898: Attempt to set the device Locale (if not already set) at phone
init based on the phone's reported carrier ID.
  Uses a core system resource string-array to contain the mapping
  of carrier ID -> default locale.  This should be set per project in
  an overlay.
  BUG=1731384

Automated import of CL 143898
2009-03-31 18:00:50 -07:00
Dianne Hackborn
b378530714 AI 143896: Fix issue #1748954 and #1737952:
#1748954 (New status bar fades into all white background): FrameLayout wasn't updating its foreground drawable when its padding changed, which would happen as the status bar is shown and hidden.  To fix this I also ended up fixing a problem in the view debug stuff where we couldn't get a bitmap for a view that is the full screen size because it is too big...  actually I just went ahead and added another function to snapshot the view hierarchy which works a lot better for us anyway.
  #1737952 (Home screen icons overlap with the notification bar after exiting any camera app): Originally I punted this because it only happened in rare situations, but now that home is always portrait it happens a lot more so it is more important to fix.  This involved a few things to clean up hiding/showing the status bar:
  - We now determine when to hide and show it during layout, which allows us to do this at the time it is actually needed rather than during animation after we can actually catch it for the initial display of a window.  This required tweaking the layout API so the policy can request a second layout pass if needed.
  - When doing layout, we are now much more aggressive about skipping the layout of windows.  Basically anything that we know will be hidden in the near future is ignored for layout, so that it doesn't glitch as it is transfered out of the screen.  The theory being that it is better to leave it as it was originally placed while we are transitioning it out, than to switch it to something slightly more correct.
  BUG=1748954,1737952

Automated import of CL 143896
2009-03-31 17:58:46 -07:00
Brett Chabot
a1d701ef2f AI 143869: Change InstrumentationTestRunner so all tests in the application are run when no other arguments are supplied, instead of running only tests in the app's package.
BUG=1749513

Automated import of CL 143869
2009-03-31 17:03:46 -07:00
Romain Guy
d65addb4c9 AI 143758: Fixes #1749387. When a client of VelocityTracker obtains an instance from the pool, actually remove the object from the pool. Otherwise, several clients can share the same VelocityTracker which can lead to really weird side effects (including concurrency and UI issues.)
BUG=1749387

Automated import of CL 143758
2009-03-31 12:57:35 -07:00
Dianne Hackborn
65c8e11a31 AI 143748: Fix issue #1743326 (More battery stats)
Adds stats for:
  - Number of raw user events that have happened in the system.
  - Number of times user activity has been reported, dividied by UID and type of activity.
  - Duration of screen brightness levels in 4 buckets.
  - Per-UID tracking of who has turned on Wifi and how long we can attribute it being on because of them.
  BUG=1743326

Automated import of CL 143748
2009-03-31 12:11:48 -07:00
Nick Pelly
3f46f0a0cd AI 143740: Don't clear supported profiles in settings app if getRemoteClass returns error.
Also clean up the error codes returned by the framework, so that the settings app can properly detect an error.
  BUG=1748881

Automated import of CL 143740
2009-03-31 12:05:46 -07:00
Sridhar Gurivireddy
41ac221de7 AI 143727: Make the test runner and results assets of DumpRendertree. This is done so that we could have
1) Lab machines can run layout tests without having build environment setup
  2) We could have different set of pass/fail results per branch
  Also added a simple python script which runs run_layout_tests.py

Automated import of CL 143727
2009-03-31 10:57:18 -07:00
Eric Laurent
08defa0354 AI 143620: Attempt for fixing crash in AudioFlinger::MixerThread::dumpTracks() seen in bug report for issue 1747119.
AudioFlinger::MixerThread::dumpTracks() was reading mTracks[] vector instead of mActiveTracks[] when dumping active tracks.
  BUG=1747119

Automated import of CL 143620
2009-03-31 09:38:57 -07:00
Evan Millar
ac7df3fdfb AI 143615: -Add more stats:
-total network sent/received
  -total full/partial wakelock times.
  -Format the network sent/received amounts to be more easily readable.
  BUG=1743333

Automated import of CL 143615
2009-03-31 08:56:16 -07:00
Dirk Dougherty
836330f26a AI 143576: SDK doc change: Fix links from SDK upgrading docs to migration and diff info.
BUG=1744782

Automated import of CL 143576
2009-03-30 18:32:45 -07:00
Eric Fischer
631cf99982 AI 143547: Import revised translations.
BUG=1738388

Automated import of CL 143547
2009-03-30 15:52:26 -07:00
Eric Fischer
15095be060 AI 143540: Try not to start TextView lines with non-starter characters.
TextView was previously following the "relaxed" line breaking
  convention and would allow a line break between any two
  ideographic characters.  Tighten that up and do not allow
  line breaks before non-starter characters (sound and iteration
  marks and small Hiragana and Katakana).
  BUG=1735619

Automated import of CL 143540
2009-03-30 15:38:38 -07:00
Eric Fischer
8e13d66b8d AI 143495: Add more accented letters to the character picker.
The hardware keyboard doesn't have all the accents needed for
  Czech and Polish, so round out the selection.
  BUG=1742856

Automated import of CL 143495
2009-03-30 12:01:15 -07:00
Dave Sparks
ba9844ee12 AI 143127: Media recorder service requires android.permission.CAMERA to record video
BUG=1742392

Automated import of CL 143127
2009-03-27 12:57:40 -07:00
Eric Shienbrood
50108e9282 AI 143124: Fix bug #1731826, in which auto-connect to remembered networks does not
take place.
  This has the same underlying cause as bug #1739874, so this fixes that
  bug as well. The problem was that if the supplicant was in the DORMANT
  state at the time a scan-only Wi-Fi lock was released, the command to
  stop the Wi-Fi driver would never be issued. This had two main results:
  first, the driver would stay awake when the screen was blank and it was
  supposed to be sleeping, leading to excessive battery drain, and second,
  when the screen was turned back on, there would be no DRIVER-STARTED
  event generated (because the driver was already running). The
  DRIVER-STARTED event is the trigger for the framework to issue a
  RECONNECT command to the supplicant to cause it leave the DORMANT state
  and look for available remembered networks.
  To assist in tracking down this problem, and any such problems in the
  future, I added four counters to keep track of how many times full and
  scan-only Wi-Fi locks are acquired and released. The counter values
  are output in the dump() method of WifiService. While doing this, I
  noticed that because of missing "break" statements, the battery stats
  that keep track of how much time Wi-Fi locks are held were including
  the time for full locks in the time reported for scan-only locks.
  BUG=1731826,1739874

Automated import of CL 143124
2009-03-27 12:21:17 -07:00
Dianne Hackborn
499e098f0c AI 143101: Fix issue # 1741546 (Put back private resources used by maps.)
BUG=1741546

Automated import of CL 143101
2009-03-27 09:53:15 -07:00
Karl Rosaen
3f2fd987b2 Automated import from //branches/cupcake/...@143046,143046 2009-03-26 19:20:36 -07:00
Dianne Hackborn
2b4d828e1d Automated import from //branches/cupcake/...@143009,143009 2009-03-26 16:28:25 -07:00
Mike Lockwood
d4d70d95ea Automated import from //branches/cupcake/...@143001,143001 2009-03-26 15:59:52 -07:00
Evan Millar
2323bf7181 Automated import from //branches/cupcake/...@142996,142996 2009-03-26 15:33:04 -07:00
Dianne Hackborn
f473433e4d Automated import from //branches/cupcake/...@142986,142986 2009-03-26 14:39:43 -07:00
Satoshi Kataoka
4194592b9c Automated import from //branches/cupcake/...@142964,142964 2009-03-26 12:42:10 -07:00
Nicolas Roard
33b7987c5c Automated import from //branches/cupcake/...@142930,142930 2009-03-26 10:00:25 -07:00