35912 Commits

Author SHA1 Message Date
Jesse Wilson
9d9b4e70a1 Decode JSON literal types eagerly and with our own decoder.
Previously we relied on Double.parseDouble() to decode tokens. Since
that method is expensive, we deferred calling it unless absolutely
necessary.

Now we decode the literal type immediately. For efficiency we decode
the token right out of the char buffer. This makes things more
complicated but it saves many calls to charAt().

With this change overall performance is 7% faster for JSON documents
cited in the bug.

    benchmark                     run  ms linear runtime                    %
GsonParseFull no switch, no int parse 309 ============================    93%
GsonParseFull                baseline 330 ============================== 100%

http://b/3201883
Change-Id: I436b6769956b1357a17c807a327d3a234691c73f
2010-11-18 23:06:50 -08:00
Jesse Wilson
762b33f949 am 2d2f10fa: am 28c74257: Add @Deprecated to match @deprecated where it\'s missing.
* commit '2d2f10fa3412adc07a08c25ba5d2df600fb654bf':
  Add @Deprecated to match @deprecated where it's missing.
2010-11-09 10:26:39 -08:00
Jesse Wilson
385125c654 Merge "Test to demonstrate that HTTP cookie hostnames aren't case-sensitive." 2010-11-09 10:25:04 -08:00
Jesse Wilson
40811b0154 Test to demonstrate that HTTP cookie hostnames aren't case-sensitive.
Change-Id: I05c764876acdc1e85b41f4558bd03fff526da1b4
http://b/3167208
2010-11-09 10:23:36 -08:00
Jesse Wilson
2d2f10fa34 am 28c74257: Add @Deprecated to match @deprecated where it\'s missing.
* commit '28c742573ccaeb55c16bc02fb25fdd86b8d1f76a':
  Add @Deprecated to match @deprecated where it's missing.
2010-11-09 10:17:33 -08:00
Jesse Wilson
28c742573c Add @Deprecated to match @deprecated where it's missing.
Change-Id: Ice95022671968386a601f32df7850f9baa1d2dd0
2010-11-09 10:10:11 -08:00
Scott Main
916e4d1404 am 86372ec4: am 9eb48bb2: Merge "docs: revisions to ndk release notes" into gingerbread
* commit '86372ec41c2ec23917fabff56b786edbb94e24d9':
  docs: revisions to ndk release notes
2010-11-09 09:43:51 -08:00
Gilles Debunne
de87598837 Merge "Amended 9patch border documentation" 2010-11-09 09:36:38 -08:00
Scott Main
86372ec41c am 9eb48bb2: Merge "docs: revisions to ndk release notes" into gingerbread
* commit '9eb48bb2b1627ef8182d260f8b3fd080c57bed4d':
  docs: revisions to ndk release notes
2010-11-09 09:35:24 -08:00
Scott Main
9eb48bb2b1 Merge "docs: revisions to ndk release notes" into gingerbread 2010-11-09 09:30:30 -08:00
Iain Merrick
dfa448f759 Merge "Include .php tests in DumpRenderTree2." 2010-11-09 08:15:33 -08:00
Joe Onorato
e8934a6774 Add CHAR LIMIT and translatable=false to SystemUI strings.
Bug: 3147304
Bug: 3174712
Change-Id: I318da54da861d15e1528335eeba9319eda9cc84d
2010-11-09 08:01:20 -08:00
Iain Merrick
ace92b871a Include .php tests in DumpRenderTree2.
I've manually checked the existing LayoutTests for false positives.
There are non-test .php files, but they're all in "resources"
subdirectories, so they should be caught by isTestDir(). Added an
extra @warning to isTestFile() just in case.

Bug: 3164771
Change-Id: Ib282acf46f6e839439ce521c4b2cb5820fcd263c
2010-11-09 15:44:16 +00:00
Chet Haase
494081aab9 Merge "Fix GL rendering of translucent surfaces" 2010-11-09 07:14:23 -08:00
Jeff Hamilton
e7f3396130 am cc798d96: am 2e2983c6: Merge "Reduce log clutter." into gingerbread
* commit 'cc798d9675b105775c9736fc68b68d7c8cd0c5a7':
  Reduce log clutter.
2010-11-09 07:06:02 -08:00
Jeff Hamilton
cc798d9675 am 2e2983c6: Merge "Reduce log clutter." into gingerbread
* commit '2e2983c6efe0e4223086e4675b715ed0e20e8d26':
  Reduce log clutter.
2010-11-09 06:59:33 -08:00
Jeff Hamilton
2e2983c6ef Merge "Reduce log clutter." into gingerbread 2010-11-09 06:54:51 -08:00
Chet Haase
0d200833fd Fix GL rendering of translucent surfaces
GL renderer was not initializing scissor correctly for translucent
surfaces, resulting in invisible window backgrounds in some cases
like fading popup windows

Change-Id: I87a964986e1ba2c4f59708c8892c5fa71903e6fc
2010-11-09 06:38:56 -08:00
Steve Block
c55fa1b999 Merge changes I650518a4,If15fddac
* changes:
  Fix DumpRenderTree2 to not attempt to read expected results over HTTPS
  Fix FsUtils.readDataFromUrl() to do the network request on a background thread
2010-11-09 06:32:13 -08:00
Steve Block
ca501d2036 Fix DumpRenderTree2 to not attempt to read expected results over HTTPS
This is required now that we have HTTPS tests in the triaged set of
tests.

Change-Id: I650518a4536ed903f637a44c0901b1e38bdc1a84
2010-11-09 13:36:43 +00:00
Steve Block
cda9448206 Fix FsUtils.readDataFromUrl() to do the network request on a background thread
This is required now that doing network requests on the main thread
throws NetworkOnMainThreadException.

Also updates TestsListPreloaderThread to create the FileFilter lazily
and removes a superfluous FileFilter param from the Summarizer
constructor.

Change-Id: If15fddac934cd8be611f6693b25837657abbddc3
2010-11-09 12:33:28 +00:00
Ben Murdoch
f7093befbb Calculate memory thresholds that V8 can use to control GC.
V8 can be smarter about the memory it uses and the frequency
of garbage collection but we need to inform it of the values
to use. As this varies device to device look it up and store
it on the WebViewCore to be read by native code over JNI.

See also https://android-git.corp.google.com/g/#change,78691

Bug: 3075565

Change-Id: Ib52f4df775b80b386fc98f1d71b5687f01c12b2e
2010-11-09 10:09:42 +00:00
Wu-cheng Li
b7d633c7ab am 482083c5: (-s ours) am f6bd761f: Use back-facing camera as default in camera/camcorder profile.do not merge
* commit '482083c57fc21516099d4f9987512f649e362960':
  Use back-facing camera as default in camera/camcorder profile.do not merge
2010-11-09 00:02:44 -08:00
Wu-cheng Li
9805d2cc87 Merge "Use back-facing camera as default in camera/camcorder profile." 2010-11-09 00:01:33 -08:00
Wu-cheng Li
482083c57f am f6bd761f: Use back-facing camera as default in camera/camcorder profile.do not merge
* commit 'f6bd761f9407a35cc1c4a4b9e199e6a0dc8e4943':
  Use back-facing camera as default in camera/camcorder profile.do not merge
2010-11-08 23:56:20 -08:00
satok
1ab852fbcf Add a history of InputMethodSubtype for getting the last subtype of selected IME when IME was changed.
Change-Id: I66752a881726c0ce2816a9d54de60fb0d992e968
2010-11-09 16:43:00 +09:00
Wu-cheng Li
5680635f39 Use back-facing camera as default in camera/camcorder profile.
bug:3173302
Change-Id: Iae9565eb58949a1c9c2f2a1f5251b2df097ec167
2010-11-09 15:36:59 +08:00
Wu-cheng Li
f6bd761f94 Use back-facing camera as default in camera/camcorder profile.do not merge
bug:3173302
Change-Id: I11eaed32bb393206b560834d52c412f3e5a1a7d9
2010-11-09 14:11:45 +08:00
Huahui Wu
5912f90e60 Merge "Expose the cert validator to JNI." 2010-11-08 21:00:13 -08:00
James Dong
d1604c7313 am 9cebb86c: am 1b2efbca: Merge "Update a comment about when setOrientationHint() should be called" into gingerbread
* commit '9cebb86c95ad4846ecc771e4b40d2dbd5cf1494b':
  Update a comment about when setOrientationHint() should be called
2010-11-08 20:43:10 -08:00
Adam Powell
ef3018ccab am 8bd41ac1: (-s ours) Merge "Fix typo in manual merge" into gingerbread-plus-aosp
* commit '8bd41ac175f8e254d67d31cf020932e4f02d00c5':
  Fix typo in manual merge
2010-11-08 20:43:03 -08:00
James Dong
9cebb86c95 am 1b2efbca: Merge "Update a comment about when setOrientationHint() should be called" into gingerbread
* commit '1b2efbca7120cf799d1242d277af354df7b0a9bb':
  Update a comment about when setOrientationHint() should be called
2010-11-08 20:14:19 -08:00
James Dong
2bff83930d Fix a build break due to the missing kKeyRotation
Change-Id: I6bf030c946abe7a95f8f7bc464e6507fb02cf39c
2010-11-08 20:09:22 -08:00
Mathias Agopian
e3cfa1b8b2 am f8c24a66: am cd43fbb4: Merge "improve sensorservice dumpsys and increase the max sensor rate to 1 ms (1000Hz)" into gingerbread
* commit 'f8c24a66a7318554604ae63d0ae4948c41b0d6e1':
  improve sensorservice dumpsys and increase the max sensor rate to 1 ms (1000Hz)
2010-11-08 20:00:33 -08:00
Adam Powell
b765d32e81 am 3c09ba3f: (-s ours) resolved conflicts for merge of 06fd1dc5 to gingerbread-plus-aosp
* commit '3c09ba3f798c8dafed4846c6782bc489b841cdbb':
  DO NOT MERGE Fix bug 3121030 - Text handles erroneously appear over extract mode IME window
2010-11-08 20:00:26 -08:00
James Dong
1b2efbca71 Merge "Update a comment about when setOrientationHint() should be called" into gingerbread 2010-11-08 19:59:16 -08:00
Adam Powell
8bd41ac175 Merge "Fix typo in manual merge" into gingerbread-plus-aosp 2010-11-08 19:59:13 -08:00
Adam Powell
dd11387e58 Fix typo in manual merge
Change-Id: Idaf98e368e032cfbd7fbe3aa2d965b04eea3f43e
2010-11-08 19:56:44 -08:00
Mathias Agopian
f8c24a66a7 am cd43fbb4: Merge "improve sensorservice dumpsys and increase the max sensor rate to 1 ms (1000Hz)" into gingerbread
* commit 'cd43fbb4537487a9c3185e919904f8b0c93daee6':
  improve sensorservice dumpsys and increase the max sensor rate to 1 ms (1000Hz)
2010-11-08 19:38:28 -08:00
Adam Powell
848ae6e48b am 6bb4f67a: am 26153a33: Fix bug 3163052 - always use 32-bit drawing caches when destination window is 32-bit
* commit '6bb4f67ac29b916b8ea4f08b79a7bc46c5844646':
  Fix bug 3163052 - always use 32-bit drawing caches when destination window is 32-bit
2010-11-08 19:25:54 -08:00
James Dong
d1959717c2 am c4a2ead2: am d2d62d04: Merge "Support extracting thumbnail from rotated video tracks" into gingerbread
* commit 'c4a2ead2aa5ab4403553e4956ba71b44782f0c84':
  Support extracting thumbnail from rotated video tracks
2010-11-08 19:25:41 -08:00
Andy McFadden
76526a1f55 am d962bca6: am 08686b07: am c10a4773: Set capabilities sooner.
* commit 'd962bca66fb99d437f065e9a7c66e7fe9abac20e':
  Set capabilities sooner.
2010-11-08 19:25:34 -08:00
Justin Ho
02117bd50a am 38f1196e: (-s ours) am dee7335b: Merge "DO NOT MERGE - Updated textfield pressed states" into gingerbread
* commit '38f1196e2bf1695810e42b83520575e7837da3a9':
  DO NOT MERGE - Updated textfield pressed states
2010-11-08 19:25:26 -08:00
Scott Main
762323b180 am 2487efb0: am 05de5a15: Merge "docs: remove quick start; make it an overview of the steps and go to installing guide" into gingerbread
* commit '2487efb0e01f6e612984f006af09db4eb90ea16c':
  docs: remove quick start; make it an overview of the steps and go to installing guide
2010-11-08 19:24:55 -08:00
Mathias Agopian
0440f023dc am f704645b: am 5fd30540: Merge "possibly fix [2265804] OpenGL GLSurfaceView apps don\'t draw status bar drop shadow correctly" into gingerbread
* commit 'f704645b0ccf6feac9f41c82caf0ec34370a3bd0':
  possibly fix [2265804] OpenGL GLSurfaceView apps don't draw status bar drop shadow correctly
2010-11-08 19:24:13 -08:00
Mathias Agopian
a0e6929a26 am 2ab77748: am fe40e9e0: Merge "fix [3148312] Region can access data out of bounds" into gingerbread
* commit '2ab777483c650b12f447a414c8bf9c175e8384e7':
  fix [3148312] Region can access data out of bounds
2010-11-08 19:24:02 -08:00
Wu-cheng Li
0a514792ed am 2ee0af48: am a48b70fa: Camera.open() should only return back-facing camera.
* commit '2ee0af48a3ebb4ac1bbf5e867850519b424e5a06':
  Camera.open() should only return back-facing camera.
2010-11-08 19:23:33 -08:00
Wu-cheng Li
0bae616364 am 6025ecec: am 17ae3597: Revert "android.hardware.Camera.open only returns back-facing camera."
* commit '6025ecec2a0c37cdd0b25c85f6ffc54e35b42426':
  Revert "android.hardware.Camera.open only returns back-facing camera."
2010-11-08 19:23:15 -08:00
Wu-cheng Li
f90a0e84fe am 28345ef6: am 07b88fef: android.hardware.Camera.open only returns back-facing camera.
* commit '28345ef6e1171bf5da792bb743c1a986a539ee4b':
  android.hardware.Camera.open only returns back-facing camera.
2010-11-08 19:22:53 -08:00
Adam Powell
3c09ba3f79 resolved conflicts for merge of 06fd1dc5 to gingerbread-plus-aosp
Change-Id: Iae11cabdc3c6b6b59dfdcc3b4944088dded91a52
2010-11-08 19:21:58 -08:00