2277 Commits

Author SHA1 Message Date
Jason Sams
519b492a4d am df06d51f: am 4ee6a63d: Merge "Move gfx samples to test directory for compatibility testing." into jb-dev
* commit 'df06d51ffa38c86ea138d24c0129763878553c71':
  Move gfx samples to test directory for compatibility testing.
2012-05-17 15:33:32 -07:00
Romain Guy
1b283b4e7f Merge "Fix TextureView OpenGL sample" into jb-dev 2012-05-16 20:04:46 -07:00
Romain Guy
4c43f66d06 Fix TextureView OpenGL sample
The sample was doing something dumb: instead of binding the texture unit
to the shader's sampler, it was binding the texture name. Oops.

Change-Id: I13450dacbbd2dad362a2573aebb95e8eb87b25f0
2012-05-16 20:01:17 -07:00
Jason Sams
e5f2f66f8c Move gfx samples to test directory for compatibility testing.
Change-Id: Iede1c0a14abf9aa3f31ab219fba3bf3a15ef8c90
2012-05-16 15:43:25 -07:00
Stephen Hines
030ab67e7b am 69b2bda2: am a7ea0d39: Merge "Add unit tests for convert (with relaxed precision)." into jb-dev
* commit '69b2bda2e967a2f53e689c9622c748c0a810fb46':
  Add unit tests for convert (with relaxed precision).
2012-05-15 15:17:53 -07:00
Stephen Hines
a7ea0d3968 Merge "Add unit tests for convert (with relaxed precision)." into jb-dev 2012-05-15 15:11:55 -07:00
Stephen Hines
8a07109585 Merge "Test float vector versions of rsDebug()." 2012-05-15 15:08:09 -07:00
Romain Guy
ae197fd160 am d5cfec8d: am 7b8523aa: Merge "Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)" into jb-dev
* commit 'd5cfec8d34a59f2a4e98b655b5e49775d69ad64c':
  Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)
2012-05-15 11:39:12 -07:00
Romain Guy
e651cc6239 Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)
Change-Id: Ie28538a2104d21154fdc78a56525e7403f08287d
2012-05-14 19:44:40 -07:00
Stephen Hines
0ccbd524e6 Test float vector versions of rsDebug().
Change-Id: I74cf2e23cd323d25af6e46587da8d442fdd058c8
2012-05-14 18:06:03 -07:00
Stephen Hines
724de98edb Add unit tests for convert (with relaxed precision).
BUG=6127576

Change-Id: Ia5b4efa99de4f6df644779eeee6763eb31be4d90
2012-05-14 15:05:58 -07:00
Stephen Hines
4106d56b6e am 8470381b: am dcc1996b: Merge "Test clamp (full and relaxed precision)." into jb-dev
* commit '8470381b0c6866a0d2fabda2ff02ae550ca60715':
  Test clamp (full and relaxed precision).
2012-05-14 07:48:56 -07:00
Stephen Hines
a25b2e80c7 Test clamp (full and relaxed precision).
BUG=6127576

Change-Id: I9501be7db42daa11dcc71bd619a993c80ef097de
2012-05-10 15:25:11 -07:00
Fabrice Di Meglio
8396830d8f Merge "Hide RTL related APIs - DO NOT MERGE" into jb-dev 2012-05-04 13:19:41 -07:00
Fabrice Di Meglio
66388dcb09 Hide RTL related APIs - DO NOT MERGE
- fix bug #6441155 API review: @hide RTL layout APIs

Change-Id: I13c5ea5f579cecffed9d517f06180ab0576cd26a
2012-05-04 13:15:12 -07:00
Daniel Sandler
ed5632d0e9 am f53716ed: am a1f084e8: Merge "Fix NPEs in StatusBarTest." into jb-dev
* commit 'f53716ed9e544c3042813d70383bdc23c7b00a77':
  Fix NPEs in StatusBarTest.
2012-05-04 13:07:35 -07:00
Daniel Sandler
a1f084e8a2 Merge "Fix NPEs in StatusBarTest." into jb-dev 2012-05-04 13:01:25 -07:00
Chet Haase
035744064b am d92c5c03: am 6c5f4cd0: Merge "Fix hang/crash in native path code" into jb-dev
* commit 'd92c5c03d0fafe6f4c5f689eabd5024a4bbf262d':
  Fix hang/crash in native path code
2012-05-04 10:53:21 -07:00
Daniel Sandler
e7e9b6e033 Fix NPEs in StatusBarTest.
Change-Id: I9245a297a9a09c09415dd38e662692665ae7e109
2012-05-04 13:31:18 -04:00
Chet Haase
d34dd71800 Fix hang/crash in native path code
An optimization for paths is to only create a texture for the original native
Path object, and have all copies of that object use that texture. This works in
most cases, but sometimes that original path object may get destroyed (when the
SDK path object is finalized) while we are still referencing and using that object
in the DisplayList code. This causes undefined errors such as crashes and hanging
as we iterate through the operations of a destroyed (and garbage-filled) path object.

The fix is to use the existing ResourceCache to refcount the original path until
we are done with it.

Issue #6414050 Analytics Dogfood App crashes reliably on Jellybean

Change-Id: I5dbec5c069f7d6a1e68c13424f454976a7d188e9
2012-05-03 11:14:50 -07:00
Chet Haase
64d6143c0d am dcc81035: am fe5984f4: Merge "Corrects invalidation logic for layered views" into jb-dev
* commit 'dcc81035423c1c221409f20b28ba94a8ca74d55d':
  Corrects invalidation logic for layered views
2012-05-02 12:04:21 -07:00
Chet Haase
fe5984f43a Merge "Corrects invalidation logic for layered views" into jb-dev 2012-05-02 11:56:56 -07:00
Chet Haase
810a8676df Corrects invalidation logic for layered views
A bug in the invalidation logic meant that changes to a view
would not cause parents in the view hiearchy that were set to have
a layer (e.g., View.LAYER_TYPE_HARDWARE) to get invalidated properly.
So even though the child view was all set to recreate its display list
according to the property change, the layer in the tree above it would stay
as-is, meaning that the change would not show up on the screen.

Issue #5887530 DropTarget text does not change color with the icon

Change-Id: Ie6eac4f406d172cb437822d9fe76340ab2afaf1c
2012-05-02 10:44:33 -07:00
Tsu Chiang Chuang
40b97d4634 Merge "App Compatibility test. Launches a given app and detects crashes or ANRs." 2012-05-01 17:39:22 -07:00
Tsu Chiang Chuang
fea39c3755 App Compatibility test. Launches a given app and detects crashes or ANRs.
Change-Id: I504868ca2b7785849960be287b8d92ca3055b9ff
2012-05-01 17:30:09 -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
9b9e74eea1 Move mesh to end of test list until we fix LLVM.
Change-Id: I8f06e80d7cea4b51e47625186e45ad44adb45b6b
2012-05-01 00:29:52 -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
Omari Stephens
ca7086f5bd Merge "Create a catch-all testcase to handle asynchronous crashes and ANRs" into jb-dev 2012-04-27 11:10:02 -07:00
Omari Stephens
a6a353653d Create a catch-all testcase to handle asynchronous crashes and ANRs
Bug: 5913065
Change-Id: I391aff6919a9586159ec0898279e7254eed990f8
2012-04-26 15:46:30 -07:00
Steve Block
e9e260fbc0 Add tests for uncaught exceptions from methods called through the Java Bridge
This is a cherry-pick from master. See
https://android-git.corp.google.com/g/184260

If a method called on a Java object through the Java Bridge throws an uncaught
exception, we throw a JavaScript exception.

See WebKit change https://android-git.corp.google.com/g/184252

Bug: 6386557
Change-Id: Ie2a97a26372fb11782b35db09bc2046fb7eb1f86
2012-04-26 13:59:51 +01:00
Steve Block
2318889909 Merge "Add tests for reflection and improve JavaDoc for Java Bridge" 2012-04-24 14:11:26 -07:00
Chris Craik
177a4bb37f Merge "Add useMinimalMemory=true test to TileBenchmark" 2012-04-24 13:55:26 -07:00
Steve Block
3aa800b9f9 Add tests for reflection and improve JavaDoc for Java Bridge
Bug: 5461416
Change-Id: Ic339b97a9424d8848f8afd47ba00cbbee4d60c9d
2012-04-24 21:34:42 +01:00
Philip Milne
b2b15716d8 Merge "Promote layout debugging code from GridLayout to ViewGroup." 2012-04-24 11:36:54 -07:00
Philip Milne
10ca24a97c Promote layout debugging code from GridLayout to ViewGroup.
Layout debugging code draws rectangles around:

1. Layout insets (red)
2. Bounds (blue)
3. Margins (magenta)

Layout debug mode is enabled with:

adb shell setprop debug.layout true

Change-Id: Ia155a2d0fbf33693a1e3c040f627ea3a534e1aff
2012-04-23 16:41:04 -07:00
Jonathan Dixon
d3101b1d30 Seperate interface and implementation of 4 WebView classes
GeolocationPermissionsClassic
CookieManagerClassic
WebIconDatabaseClassic
WebStorageClassic

Also creats a WebViewFactory top level class - this remains hidden
for now, as it's currently only used implicitly by the other
public WebView classes to create the provider instances.

Bug: 5626244

Change-Id: Id0ca1c16d8058f31a86414bbc0e8a55db4b907ba
2012-04-23 12:43:02 +01:00
Guang Zhu
b0668e4d19 follow up file original policy change
enable the access for webview test

Change-Id: Iebde5f3175eabf6e084dc1a2fe8b9dce280ebe7c
2012-04-19 22:02:04 -07:00
Chris Craik
9e6fa17b47 Add useMinimalMemory=true test to TileBenchmark
Change-Id: I1d0d0eebbf0847fe03dfbc7176275a40e7ca0c52
2012-04-19 15:08:47 -07:00
Daniel Sandler
3dfc82b567 Merge "Expand too-small notifications to fill 64dp." 2012-04-19 07:01:37 -07:00
Daniel Sandler
bc5559f192 Expand too-small notifications to fill 64dp.
Also fix NotificationTestList so it runs again.

Change-Id: I2fb28cd9cfad25a7a1b17ccef9ccd741c3aa99b0
2012-04-19 01:08:15 -04:00
Philip Milne
bbd51f1e36 Share Insets instances between views that have the same background (Drawable)
Change-Id: I47d93ccca6f553b678d25966d10d7a0a97cfa5ea
2012-04-18 16:06:27 -07:00
Guang Zhu
d7f256dd2f TileBenchmark test app needs read sdcard permission
Since the app is using JB API level, it's required to declare
an explicit READ_EXTERNAL_STORAGE permission

Change-Id: I84142d51aeab4bc28269a6fea716c8663e080118
2012-04-17 16:01:34 -07:00
Alex Sakhartchouk
91b7be1867 Merge "Fixing test affected by API renaming." 2012-04-17 10:34:41 -07:00
Brett Chabot
c24ad53241 Merge "Build Smoke tests against the SDK." 2012-04-16 14:37:24 -07:00
Alex Sakhartchouk
64275552a6 Fixing test affected by API renaming.
Change-Id: Ib42e1958b385069461ca9fec1ccd9f578c5d47d3
2012-04-16 11:21:02 -07:00
Brett Chabot
8debcfa290 Build Smoke tests against the SDK.
Done so the new 'launch all apps' test can be utilized on older platforms.

Change-Id: Ie74ce258ceb372e78a0634a633bbb19dcd8e2779
2012-04-16 10:35:32 -07:00
Philip Milne
4e1cb3b794 Merge "Fix for bug 6110465." 2012-04-16 10:03:17 -07:00
Philip Milne
1557fd7809 Fix for bug 6110465.
Add layout bound metadata to 9-patch files and make layouts take them into account.

This CL contains a proposed API for dealing with layout bounds.

This solution exposes:

1. Class: Insets - for storing layout Insets (and later possibly padding).
2. Methods: View:(get/set)LayoutInsets() - for storing layoutBounds.
3. Methods: ViewGroup:(get/set)LayoutMode() - for controlling layoutMode.

It also iuncudes the changes to GridLayout to support layout bounds.

Change-Id: I60c836b6530b61c5abf37f93ee9c44aad73573f1
2012-04-13 16:25:08 -07:00
Jeff Brown
c2346134bb Extract Vibrator implementation from interface.
Moved the core logic of Vibrator into SystemVibrator, potentially
allowing for the creation of other Vibrator subclasses.

Fixed several places where we were creating new Vibrator
instances unnecessarily instead of getting it from the Context.

It is safe to make Vibrator abstract because its constructor
was hidden from the SDK so it was not possible to subclass it.

Bug: 6334179
Change-Id: I18ece6544c26a7efb2d5099f8346a10aef8a5e18
2012-04-13 04:05:17 -07:00