Home
last modified time | relevance | path

Searched refs:lp (Results 1 – 15 of 15) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/view/
DCustomLayout.java99 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onMeasure() local
100 if (lp.position == LayoutParams.POSITION_LEFT) { in onMeasure()
102 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin); in onMeasure()
103 } else if (lp.position == LayoutParams.POSITION_RIGHT) { in onMeasure()
105 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin); in onMeasure()
108 child.getMeasuredWidth() + lp.leftMargin + lp.rightMargin); in onMeasure()
111 child.getMeasuredHeight() + lp.topMargin + lp.bottomMargin); in onMeasure()
151 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); in onLayout() local
157 if (lp.position == LayoutParams.POSITION_LEFT) { in onLayout()
158 mTmpContainerRect.left = leftPos + lp.leftMargin; in onLayout()
[all …]
DList9.java80 WindowManager.LayoutParams lp = new WindowManager.LayoutParams( in onCreate()
86 mWindowManager.addView(mDialogText, lp); in onCreate()
DExpandableList1.java113 AbsListView.LayoutParams lp = new AbsListView.LayoutParams( in getGenericView() local
117 textView.setLayoutParams(lp); in getGenericView()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DLocalPlayer.java488 ViewGroup.LayoutParams lp = mSurfaceView.getLayoutParams(); in updateSize() local
492 lp.width = surfaceWidth; in updateSize()
493 lp.height = surfaceWidth * height / width; in updateSize()
497 lp.width = surfaceHeight * width / height; in updateSize()
498 lp.height = surfaceHeight; in updateSize()
500 Log.i(TAG, "video rect is " + lp.width + "x" + lp.height); in updateSize()
501 mSurfaceView.setLayoutParams(lp); in updateSize()
559 ViewGroup.LayoutParams lp = mPresentationSurfaceView.getLayoutParams(); in updateSize() local
561 lp.width = surfaceWidth; in updateSize()
562 lp.height = surfaceWidth * height / width; in updateSize()
[all …]
/development/samples/MultiClientInputMethod/src/com/example/android/multiclientinputmethod/
DSoftInputWindow.java54 final LayoutParams lp = getWindow().getAttributes(); in SoftInputWindow() local
55 lp.type = LayoutParams.TYPE_INPUT_METHOD; in SoftInputWindow()
56 lp.setTitle("InputMethod"); in SoftInputWindow()
57 lp.gravity = Gravity.BOTTOM; in SoftInputWindow()
58 lp.width = LayoutParams.MATCH_PARENT; in SoftInputWindow()
59 lp.height = LayoutParams.WRAP_CONTENT; in SoftInputWindow()
60 lp.token = token; in SoftInputWindow()
61 getWindow().setAttributes(lp); in SoftInputWindow()
/development/apps/Development/src/com/android/development/
DPointerLocation.java36 WindowManager.LayoutParams lp = getWindow().getAttributes(); in onCreate() local
37 lp.screenBrightness = 1.0f; in onCreate()
38 getWindow().setAttributes(lp); in onCreate()
DPackageSummary.java160 LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( in onCreate() local
181 activities.addView(view, lp); in onCreate()
196 receivers.addView(view, lp); in onCreate()
209 services.addView(view, lp); in onCreate()
222 providers.addView(view, lp); in onCreate()
235 instrumentation.addView(view, lp); in onCreate()
DConnectivity.java295 public void onLinkPropertiesChanged(Network network, LinkProperties lp) { in onLinkPropertiesChanged() argument
296 Log.d(TAG, "onLinkPropertiesChanged: " + network.netId + " " + lp.toString()); in onLinkPropertiesChanged()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DActionBarDisplayOptions.java102 ActionBar.LayoutParams lp = (ActionBar.LayoutParams) mCustomView.getLayoutParams(); in onClick() local
104 switch (lp.gravity & Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK) { in onClick()
115 lp.gravity = lp.gravity & ~Gravity.RELATIVE_HORIZONTAL_GRAVITY_MASK | newGravity; in onClick()
116 bar.setCustomView(mCustomView, lp); in onClick()
DNotificationDisplay.java56 RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams( in onCreate() local
59 lp.addRule(RelativeLayout.CENTER_IN_PARENT); in onCreate()
61 container.addView(button, lp); in onCreate()
DMenuInflateFromXml.java113 LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams( in onCreate() local
116 lp.setMargins(10, 10, 10, 10); in onCreate()
117 layout.addView(mInstructionsText, lp); in onCreate()
DFragmentReceiveResult.java40 FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams( in onCreate() local
45 setContentView(frame, lp); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/media/projection/
DMediaProjectionDemo.java176 ViewGroup.LayoutParams lp = mSurfaceView.getLayoutParams(); in onItemSelected() local
185 lp.height = mDisplayHeight; in onItemSelected()
186 lp.width = mDisplayWidth; in onItemSelected()
187 mSurfaceView.setLayoutParams(lp); in onItemSelected()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DMainActivity.java183 final ViewGroup.LayoutParams lp = titlesView.getLayoutParams(); in toggleVisibleTitles() local
191 lp.height = (Integer) valueAnimator.getAnimatedValue(); in toggleVisibleTitles()
193 lp.width = (Integer) valueAnimator.getAnimatedValue(); in toggleVisibleTitles()
195 titlesView.setLayoutParams(lp); in toggleVisibleTitles()
/development/tools/repo_diff/service/repodiff/persistence/filesystem/testdata/
Dcommit.csv8835 …atform/tools/test/connectivity,fake_bSGCCfG8QJOGRRU95wUSsg@fakeemail.com,Fixed bug with -tp and -lp