Loading core/java/android/view/ViewRoot.java +2 −2 Original line number Diff line number Diff line Loading @@ -947,7 +947,7 @@ public final class ViewRoot extends Handler implements ViewParent, View.AttachIn } } if (hwIntialized) { if (hwIntialized || (windowShouldResize && mHwRenderer != null)) { mHwRenderer.setup(mWidth, mHeight); } Loading tests/HwAccelerationTest/AndroidManifest.xml +10 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,16 @@ </intent-filter> </activity> <activity android:name="ResizeActivity" android:label="_Resize" android:windowSoftInputMode="adjustResize"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="TextGammaActivity" android:label="_Gamma" Loading tests/HwAccelerationTest/res/layout/form.xml 0 → 100644 +66 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2010 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="First name" /> <EditText android:layout_width="0dip" android:layout_weight="1.0" android:layout_height="wrap_content" android:layout_marginLeft="3dip" android:hint="Enter your first name" /> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Last name" /> <EditText android:layout_width="0dip" android:layout_weight="1.0" android:layout_height="wrap_content" android:layout_marginLeft="3dip" android:hint="Enter your last name" /> </LinearLayout> <EditText android:layout_width="match_parent" android:layout_weight="1.0" android:layout_height="0dip" android:background="#ff7f0000" /> </LinearLayout> tests/HwAccelerationTest/src/com/google/android/test/hwui/ResizeActivity.java 0 → 100644 +30 −0 Original line number Diff line number Diff line /* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.android.test.hwui; import android.app.Activity; import android.os.Bundle; @SuppressWarnings({"UnusedDeclaration"}) public class ResizeActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.form); } } Loading
core/java/android/view/ViewRoot.java +2 −2 Original line number Diff line number Diff line Loading @@ -947,7 +947,7 @@ public final class ViewRoot extends Handler implements ViewParent, View.AttachIn } } if (hwIntialized) { if (hwIntialized || (windowShouldResize && mHwRenderer != null)) { mHwRenderer.setup(mWidth, mHeight); } Loading
tests/HwAccelerationTest/AndroidManifest.xml +10 −0 Original line number Diff line number Diff line Loading @@ -30,6 +30,16 @@ </intent-filter> </activity> <activity android:name="ResizeActivity" android:label="_Resize" android:windowSoftInputMode="adjustResize"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="TextGammaActivity" android:label="_Gamma" Loading
tests/HwAccelerationTest/res/layout/form.xml 0 → 100644 +66 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2010 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_parent"> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="First name" /> <EditText android:layout_width="0dip" android:layout_weight="1.0" android:layout_height="wrap_content" android:layout_marginLeft="3dip" android:hint="Enter your first name" /> </LinearLayout> <LinearLayout android:orientation="horizontal" android:layout_width="match_parent" android:layout_height="wrap_content"> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Last name" /> <EditText android:layout_width="0dip" android:layout_weight="1.0" android:layout_height="wrap_content" android:layout_marginLeft="3dip" android:hint="Enter your last name" /> </LinearLayout> <EditText android:layout_width="match_parent" android:layout_weight="1.0" android:layout_height="0dip" android:background="#ff7f0000" /> </LinearLayout>
tests/HwAccelerationTest/src/com/google/android/test/hwui/ResizeActivity.java 0 → 100644 +30 −0 Original line number Diff line number Diff line /* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.google.android.test.hwui; import android.app.Activity; import android.os.Bundle; @SuppressWarnings({"UnusedDeclaration"}) public class ResizeActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.form); } }