/packages/experimental/Bummer/src/com/android/dreams/bummer/ |
Bummer.java | 40 mFrame.setLayoutParams(new ViewGroup.LayoutParams( 41 ViewGroup.LayoutParams.MATCH_PARENT, 42 ViewGroup.LayoutParams.MATCH_PARENT 54 final FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( 55 ViewGroup.LayoutParams.WRAP_CONTENT, 56 ViewGroup.LayoutParams.WRAP_CONTENT
|
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/frametestapp/src/android/server/frametestapp/ |
MovingChildTestActivity.java | 29 import android.view.ViewGroup.LayoutParams; 45 final WindowManager.LayoutParams attribs = w.getAttributes(); 46 attribs.privateFlags = WindowManager.LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION; 60 WindowManager.LayoutParams p = new WindowManager.LayoutParams( 61 WindowManager.LayoutParams.TYPE_APPLICATION_PANEL); 62 p.privateFlags = WindowManager.LayoutParams.PRIVATE_FLAG_NO_MOVE_ANIMATION; 77 final LayoutParams p = new LayoutParams(100, 100);
|
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/ |
AwareActivity.java | 32 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON 33 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON 34 | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
|
UnawareActivity.java | 32 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON 33 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON 34 | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
|
/cts/tests/tests/print/src/android/print/cts/ |
PrintDocumentActivity.java | 33 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON 34 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON 35 | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
|
/cts/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/ |
ToastActivity.java | 35 view.setLayoutParams(new ViewGroup.LayoutParams( 36 ViewGroup.LayoutParams.MATCH_PARENT, 37 ViewGroup.LayoutParams.MATCH_PARENT));
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
NinePatchesActivity.java | 33 b.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, 34 FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER));
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/ |
TestEncryptionActivity.java | 41 getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); 43 getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON); 44 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
|
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/auto/ |
GrantPermissionsAutoViewHandler.java | 38 * Update the given {@link android.view.WindowManager.LayoutParams} to allow the dialog to take 42 public void updateWindowAttributes(WindowManager.LayoutParams outLayoutParams) { 43 outLayoutParams.width = WindowManager.LayoutParams.MATCH_PARENT; 44 outLayoutParams.height = WindowManager.LayoutParams.WRAP_CONTENT;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
ViewLayoutUtils.java | 36 return new FrameLayout.LayoutParams(width, height); 38 return new RelativeLayout.LayoutParams(width, height); 49 final ViewGroup.LayoutParams lp = view.getLayoutParams(); 59 final WindowManager.LayoutParams params = window.getAttributes(); 67 final ViewGroup.LayoutParams params = view.getLayoutParams(); 75 final ViewGroup.LayoutParams lp = view.getLayoutParams(); 76 if (lp instanceof LinearLayout.LayoutParams) { 77 final LinearLayout.LayoutParams params = (LinearLayout.LayoutParams)lp; 82 } else if (lp instanceof FrameLayout.LayoutParams) { [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
TableLayout_LayoutParamsTest.java | 40 * Test {@link TableLayout.LayoutParams}. 55 TableLayout.LayoutParams layoutParams = new TableLayout.LayoutParams(); 56 assertEquals(TableLayout.LayoutParams.MATCH_PARENT, layoutParams.width); 57 assertEquals(TableLayout.LayoutParams.WRAP_CONTENT, layoutParams.height); 60 layoutParams = new TableLayout.LayoutParams(mContext, null) [all...] |
AdapterViewCtsActivity.java | 21 import android.view.ViewGroup.LayoutParams; 42 mView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, 43 LayoutParams.WRAP_CONTENT));
|
LinearLayout_LayoutParamsTest.java | 28 import android.view.ViewGroup.LayoutParams; 48 LinearLayout.LayoutParams linearLayoutParams = 49 new LinearLayout.LayoutParams(context, p); 50 assertEquals(LayoutParams.MATCH_PARENT, linearLayoutParams.width); 51 assertEquals(LayoutParams.WRAP_CONTENT, linearLayoutParams.height); 55 linearLayoutParams = new LinearLayout.LayoutParams(320, 240); 61 linearLayoutParams = new LinearLayout.LayoutParams(360, 320, 0.4f); 67 LayoutParams layoutParams = new LayoutParams(200, 480) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
BoxInsetLayout.java | 117 LayoutParams lp = (BoxInsetLayout.LayoutParams) child.getLayoutParams(); 124 if ((lp.boxedEdges & LayoutParams.BOX_LEFT) == 0) { 127 if ((lp.boxedEdges & LayoutParams.BOX_RIGHT) == 0) { 130 if ((lp.boxedEdges & LayoutParams.BOX_TOP) == 0) { 133 if ((lp.boxedEdges & LayoutParams.BOX_BOTTOM) == 0) { 178 final LayoutParams lp = (BoxInsetLayout.LayoutParams) child.getLayoutParams(); 190 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_LEFT) != 0)) { 195 if (mLastKnownRound && ((lp.boxedEdges & LayoutParams.BOX_RIGHT) != 0)) [all...] |
/cts/hostsidetests/incident/apps/errorsapp/src/com/android/server/cts/errors/ |
ANRActivity.java | 44 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON 45 | WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED 46 | WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD 47 | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
|
/cts/hostsidetests/trustedvoice/app/src/android/trustedvoice/app/ |
TrustedVoiceActivity.java | 24 import android.view.WindowManager.LayoutParams; 45 getWindow().addFlags(LayoutParams.FLAG_DISMISS_KEYGUARD 46 | LayoutParams.FLAG_TURN_SCREEN_ON 47 | LayoutParams.FLAG_KEEP_SCREEN_ON);
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
LightBarActivity.java | 22 import android.view.ViewGroup.LayoutParams; 37 mContent.setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, 38 LayoutParams.MATCH_PARENT));
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
ScrollView2.java | 41 LinearLayout.LayoutParams p = new LinearLayout.LayoutParams( 42 LinearLayout.LayoutParams.MATCH_PARENT, 43 LinearLayout.LayoutParams.WRAP_CONTENT
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowLinearLayout.java | 10 setLayoutParams(new LinearLayout.LayoutParams(0, 0));
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
LinearLayoutTest.java | 17 ViewGroup.LayoutParams layoutParams = new LinearLayout(null).getLayoutParams(); 19 assertThat(layoutParams, instanceOf(LinearLayout.LayoutParams.class)); 25 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(1, 2);
|
/frameworks/base/core/tests/coretests/src/android/view/ |
CreateViewTest.java | 24 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT; 25 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT; 48 new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); 56 vert.addView(one, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); 59 vert.addView(two, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); 62 vert.addView(three, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); 65 vert.addView(four, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); 68 vert.addView(five, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); 71 vert.addView(six, new LinearLayout.LayoutParams(MATCH_PARENT, MATCH_PARENT, 0)); 86 vert.addView(text, new LinearLayout.LayoutParams(MATCH_PARENT, WRAP_CONTENT, 0)) [all...] |
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
NekoLockedActivity.java | 31 getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); 32 getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD); 33 getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); 34 getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
|
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
LinearLayoutTest.java | 23 import android.widget.LinearLayout.LayoutParams; 25 import static android.widget.LinearLayout.LayoutParams.WRAP_CONTENT; 36 LayoutParams lp = new LayoutParams(WRAP_CONTENT, WRAP_CONTENT);
|
/frameworks/base/tools/layoutlib/create/tests/mock_data/mock_android/widget/ |
LinearLayout.java | 25 public class LayoutParams extends MarginLayoutParams {
|
/frameworks/support/core-utils/tests/java/android/support/v4/app/ |
FrameMetricsActivity.java | 36 mLayout.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 37 ViewGroup.LayoutParams.MATCH_PARENT)); 42 mView.setLayoutParams(new LinearLayout.LayoutParams(500, 500));
|