/cts/tests/app/app/src/android/app/stubs/ |
ScreenOnActivity.java | 32 getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD 33 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON 34 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
/cts/tests/tests/display/src/android/display/cts/ |
ScreenOnActivity.java | 32 getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD 33 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON 34 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
/development/samples/CrossCompatibility/src/com/example/android/touchexample/ |
TouchExampleActivity.java | 29 view.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 30 ViewGroup.LayoutParams.MATCH_PARENT));
|
/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/ |
PrintTestActivity.java | 28 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON 29 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON 30 | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
MultiLayersActivity.java | 38 grid.addView(row1, new LinearLayout.LayoutParams( 39 LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.0f)); 43 grid.addView(row2, new LinearLayout.LayoutParams( 44 LinearLayout.LayoutParams.MATCH_PARENT, 0, 1.0f)); 46 row1.addView(new LayerView(this, 0xffff0000), new LinearLayout.LayoutParams( 47 0, LinearLayout.LayoutParams.MATCH_PARENT, 1.0f)); 48 row1.addView(new LayerView(this, 0x0f00ff00), new LinearLayout.LayoutParams( 49 0, LinearLayout.LayoutParams.MATCH_PARENT, 1.0f)); 51 row2.addView(new LayerView(this, 0x0f0000ff), new LinearLayout.LayoutParams( 52 0, LinearLayout.LayoutParams.MATCH_PARENT, 1.0f)) [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
PermissionStubActivity.java | 23 import android.view.ViewGroup.LayoutParams; 37 mListView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 38 LayoutParams.WRAP_CONTENT));
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
GoneParentFocusedChild.java | 60 mLayout.setLayoutParams(new ViewGroup.LayoutParams( 61 ViewGroup.LayoutParams.MATCH_PARENT, 62 ViewGroup.LayoutParams.MATCH_PARENT)); 67 mGoneGroup.setLayoutParams(new ViewGroup.LayoutParams( 68 ViewGroup.LayoutParams.MATCH_PARENT, 69 ViewGroup.LayoutParams.MATCH_PARENT)); 72 mButton.setLayoutParams(new LinearLayout.LayoutParams( 73 ViewGroup.LayoutParams.WRAP_CONTENT, 74 ViewGroup.LayoutParams.WRAP_CONTENT));
|
ListOfEditTexts.java | 47 mLinearLayout.setLayoutParams(new ViewGroup.LayoutParams( 48 ViewGroup.LayoutParams.MATCH_PARENT, 49 ViewGroup.LayoutParams.MATCH_PARENT)); 54 new LinearLayout.LayoutParams( 55 ViewGroup.LayoutParams.MATCH_PARENT, 56 ViewGroup.LayoutParams.WRAP_CONTENT)); 62 mListView.setLayoutParams(new ViewGroup.LayoutParams( 63 ViewGroup.LayoutParams.MATCH_PARENT, 64 ViewGroup.LayoutParams.MATCH_PARENT)); 67 mListView.setLayoutParams((new LinearLayout.LayoutParams( [all...] |
HorizontalFocusSearch.java | 63 mLayout.setLayoutParams(new ViewGroup.LayoutParams( 64 ViewGroup.LayoutParams.MATCH_PARENT, 65 ViewGroup.LayoutParams.MATCH_PARENT)); 96 button.setLayoutParams(new LinearLayout.LayoutParams( 97 ViewGroup.LayoutParams.WRAP_CONTENT, 98 ViewGroup.LayoutParams.MATCH_PARENT)); 105 button.setLayoutParams(new LinearLayout.LayoutParams( 106 ViewGroup.LayoutParams.WRAP_CONTENT, 112 filler.setLayoutParams(new LinearLayout.LayoutParams( 113 ViewGroup.LayoutParams.WRAP_CONTENT [all...] |
VerticalFocusSearch.java | 70 mLayout.setLayoutParams(new ViewGroup.LayoutParams( 71 ViewGroup.LayoutParams.MATCH_PARENT, 72 ViewGroup.LayoutParams.MATCH_PARENT)); 104 button.setLayoutParams(new LinearLayout.LayoutParams( 105 ViewGroup.LayoutParams.MATCH_PARENT, 106 ViewGroup.LayoutParams.WRAP_CONTENT)); 121 button.setLayoutParams(new LinearLayout.LayoutParams( 123 ViewGroup.LayoutParams.WRAP_CONTENT, 128 filler.setLayoutParams(new LinearLayout.LayoutParams( 130 ViewGroup.LayoutParams.WRAP_CONTENT [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
InputMethodClient.java | 20 import android.view.WindowManager.LayoutParams; 21 import android.view.WindowManager.LayoutParams.SoftInputModeFlags; 111 final int state = softInputMode & LayoutParams.SOFT_INPUT_MASK_STATE; 112 final int adjust = softInputMode & LayoutParams.SOFT_INPUT_MASK_ADJUST; 114 (softInputMode & LayoutParams.SOFT_INPUT_IS_FORWARD_NAVIGATION) != 0; 117 case LayoutParams.SOFT_INPUT_STATE_UNSPECIFIED: 120 case LayoutParams.SOFT_INPUT_STATE_UNCHANGED: 123 case LayoutParams.SOFT_INPUT_STATE_HIDDEN: 126 case LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN: 129 case LayoutParams.SOFT_INPUT_STATE_VISIBLE [all...] |
/frameworks/base/core/java/android/widget/ |
AbsoluteLayout.java | 75 AbsoluteLayout.LayoutParams lp 76 = (AbsoluteLayout.LayoutParams) child.getLayoutParams(); 100 * {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}, 101 * a height of {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT} 105 protected ViewGroup.LayoutParams generateDefaultLayoutParams() { 106 return new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT, 0, 0); 118 AbsoluteLayout.LayoutParams lp = 119 (AbsoluteLayout.LayoutParams) child.getLayoutParams() [all...] |
TableRow.java | 39 * {@link android.widget.TableLayout.LayoutParams#MATCH_PARENT} and 40 * {@link android.widget.TableLayout.LayoutParams#WRAP_CONTENT}.</p> 43 * Also see {@link TableRow.LayoutParams android.widget.TableRow.LayoutParams} 163 final LayoutParams layoutParams = (LayoutParams) child.getLayoutParams(); 165 if (layoutParams.column >= virtualCount) { 166 virtualCount = layoutParams.column; 169 for (int j = 0; j < layoutParams.span; j++) [all...] |
/cts/tests/acceleration/src/android/acceleration/ |
WindowFlagHardwareAcceleratedActivity.java | 27 getWindow().setFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED, 28 WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowWindow.java | 12 public WindowManager.LayoutParams getAttributes() { 13 return new WindowManager.LayoutParams();
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/tapjacking/ |
OverlayingActivity.java | 19 import static android.view.WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON; 20 import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS; 21 import static android.view.WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 22 import static android.view.WindowManager.LayoutParams.FLAG_NOT_TOUCH_MODAL; 37 WindowManager.LayoutParams params = getWindow().getAttributes();
|
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
TextureTestActivity.java | 31 getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD 32 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON 33 | WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON 34 | WindowManager.LayoutParams.FLAG_FULLSCREEN 35 | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
AbsoluteLayoutTest.java | 34 import android.widget.AbsoluteLayout.LayoutParams; 58 private LayoutParams mAbsoluteLayoutParams; 69 mAbsoluteLayoutParams = new LayoutParams(DEFAULT_WIDTH, DEFAULT_HEIGHT, 95 ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(1, 2); 96 assertFalse(mMyAbsoluteLayout.checkLayoutParams(layoutParams)); 103 LayoutParams params = (LayoutParams) mAbsoluteLayout.generateLayoutParams( 107 assertEquals(LayoutParams.MATCH_PARENT, params.width) [all...] |
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
CustomLayout.java | 27 public static class LayoutParams extends ViewGroup.LayoutParams { 30 public LayoutParams(int left, int top, int right, int bottom) { 44 CustomLayout.LayoutParams lp = (CustomLayout.LayoutParams) child.getLayoutParams();
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
RotationAnimation.java | 25 import android.view.WindowManager.LayoutParams; 33 private int mRotationAnimation = LayoutParams.ROTATION_ANIMATION_ROTATE; 59 mRotationAnimation = LayoutParams.ROTATION_ANIMATION_ROTATE; 62 mRotationAnimation = LayoutParams.ROTATION_ANIMATION_CROSSFADE; 65 mRotationAnimation = LayoutParams.ROTATION_ANIMATION_JUMPCUT; 68 mRotationAnimation = LayoutParams.ROTATION_ANIMATION_SEAMLESS; 79 WindowManager.LayoutParams winParams = win.getAttributes(); 81 winParams.flags |= WindowManager.LayoutParams.FLAG_FULLSCREEN; 83 winParams.flags &= ~WindowManager.LayoutParams.FLAG_FULLSCREEN; 90 WindowManager.LayoutParams winParams = win.getAttributes() [all...] |
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
FakeBackgroundService.java | 77 dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY); 79 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 80 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE 81 | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS 82 | WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED, 83 WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE 84 | WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE 85 | WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS 86 | WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED 87 | WindowManager.LayoutParams.FLAG_DIM_BEHIND) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListItemISVAndButton.java | 49 isv.setLayoutParams(new LinearLayout.LayoutParams( 50 ViewGroup.LayoutParams.MATCH_PARENT, 54 final LinearLayout.LayoutParams buttonLp = 55 new LinearLayout.LayoutParams( 56 ViewGroup.LayoutParams.MATCH_PARENT, 65 filler.setLayoutParams(new LinearLayout.LayoutParams( 66 ViewGroup.LayoutParams.MATCH_PARENT,
|
/frameworks/base/tests/ImfTest/src/com/android/imftest/samples/ |
BigEditTextActivityScrollablePanScan.java | 39 getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN); 43 mRootView.setLayoutParams(new ViewGroup.LayoutParams( 44 ViewGroup.LayoutParams.MATCH_PARENT, 45 ViewGroup.LayoutParams.MATCH_PARENT)); 49 mLayout.setLayoutParams(new ViewGroup.LayoutParams( 50 ViewGroup.LayoutParams.MATCH_PARENT, 51 ViewGroup.LayoutParams.MATCH_PARENT));
|
BigEditTextActivityScrollableResize.java | 39 getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); 43 mRootView.setLayoutParams(new ViewGroup.LayoutParams( 44 ViewGroup.LayoutParams.MATCH_PARENT, 45 ViewGroup.LayoutParams.MATCH_PARENT)); 49 mLayout.setLayoutParams(new ViewGroup.LayoutParams( 50 ViewGroup.LayoutParams.MATCH_PARENT, 51 ViewGroup.LayoutParams.MATCH_PARENT));
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
PagerRecyclerViewActivity.java | 42 rv.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 43 ViewGroup.LayoutParams.MATCH_PARENT)); 46 public RecyclerView.LayoutParams getLayoutParams() { 47 return new RecyclerView.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 48 ViewGroup.LayoutParams.MATCH_PARENT);
|