Searched defs:lp (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/support/v4/api21/android/support/v4/widget/
H A DDrawerLayoutCompatApi21.java49 public static void applyMarginInsets(ViewGroup.MarginLayoutParams lp, Object insets, argument
59 lp.leftMargin = wi.getSystemWindowInsetLeft();
60 lp.topMargin = wi.getSystemWindowInsetTop();
61 lp.rightMargin = wi.getSystemWindowInsetRight();
62 lp.bottomMargin = wi.getSystemWindowInsetBottom();
/frameworks/support/v4/jellybean-mr1/android/support/v4/view/
H A DMarginLayoutParamsCompatJellybeanMr1.java23 public static int getMarginStart(ViewGroup.MarginLayoutParams lp) { argument
24 return lp.getMarginStart();
27 public static int getMarginEnd(ViewGroup.MarginLayoutParams lp) { argument
28 return lp.getMarginEnd();
31 public static void setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart) { argument
32 lp.setMarginStart(marginStart);
35 public static void setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd) { argument
36 lp.setMarginEnd(marginEnd);
39 public static boolean isMarginRelative(ViewGroup.MarginLayoutParams lp) { argument
40 return lp
43 getLayoutDirection(ViewGroup.MarginLayoutParams lp) argument
47 setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
51 resolveLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
[all...]
/frameworks/support/v4/java/android/support/v4/view/
H A DMarginLayoutParamsCompat.java29 int getMarginStart(ViewGroup.MarginLayoutParams lp); argument
30 int getMarginEnd(ViewGroup.MarginLayoutParams lp); argument
31 void setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart); argument
32 void setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd); argument
33 boolean isMarginRelative(ViewGroup.MarginLayoutParams lp); argument
34 int getLayoutDirection(ViewGroup.MarginLayoutParams lp); argument
35 void setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection); argument
36 void resolveLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection); argument
42 public int getMarginStart(ViewGroup.MarginLayoutParams lp) { argument
43 return lp
47 getMarginEnd(ViewGroup.MarginLayoutParams lp) argument
52 setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart) argument
57 setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd) argument
62 isMarginRelative(ViewGroup.MarginLayoutParams lp) argument
67 getLayoutDirection(ViewGroup.MarginLayoutParams lp) argument
72 setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
77 resolveLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
85 getMarginStart(ViewGroup.MarginLayoutParams lp) argument
90 getMarginEnd(ViewGroup.MarginLayoutParams lp) argument
95 setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart) argument
100 setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd) argument
105 isMarginRelative(ViewGroup.MarginLayoutParams lp) argument
110 getLayoutDirection(ViewGroup.MarginLayoutParams lp) argument
115 setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
120 resolveLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
146 getMarginStart(ViewGroup.MarginLayoutParams lp) argument
161 getMarginEnd(ViewGroup.MarginLayoutParams lp) argument
176 setMarginStart(ViewGroup.MarginLayoutParams lp, int marginStart) argument
191 setMarginEnd(ViewGroup.MarginLayoutParams lp, int marginEnd) argument
200 isMarginRelative(ViewGroup.MarginLayoutParams lp) argument
210 getLayoutDirection(ViewGroup.MarginLayoutParams lp) argument
221 setLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
229 resolveLayoutDirection(ViewGroup.MarginLayoutParams lp, int layoutDirection) argument
[all...]
/frameworks/base/core/java/android/inputmethodservice/
H A DSoftInputWindow.java50 WindowManager.LayoutParams lp = getWindow().getAttributes();
51 lp.token = token;
52 getWindow().setAttributes(lp);
112 WindowManager.LayoutParams lp = getWindow().getAttributes();
113 lp.gravity = gravity;
114 updateWidthHeight(lp);
115 getWindow().setAttributes(lp);
122 private void updateWidthHeight(WindowManager.LayoutParams lp) { argument
123 if (lp.gravity == Gravity.TOP || lp
[all...]
/frameworks/base/core/tests/coretests/src/android/net/
H A DLinkPropertiesTest.java234 private void assertAllRoutesHaveInterface(String iface, LinkProperties lp) { argument
235 for (RouteInfo r : lp.getRoutes()) {
247 LinkProperties lp = new LinkProperties();
249 assertTrue(lp.addRoute(r));
250 assertEquals(1, lp.getRoutes().size());
251 assertAllRoutesHaveInterface(null, lp);
254 assertFalse(lp.addRoute(r));
255 assertEquals(1, lp.getRoutes().size());
260 lp.addRoute(r);
265 lp
351 getFirstLinkAddress(LinkProperties lp) argument
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkAgentInfo.java67 LinkProperties lp, NetworkCapabilities nc, int score, Context context, Handler handler,
73 linkProperties = lp;
114 network + "} lp{" +
66 NetworkAgentInfo(Messenger messenger, AsyncChannel ac, NetworkInfo info, LinkProperties lp, NetworkCapabilities nc, int score, Context context, Handler handler, NetworkMisc misc) argument
/frameworks/base/core/java/android/net/
H A DNetworkAgent.java129 NetworkCapabilities nc, LinkProperties lp, int score) {
130 this(looper, context, logTag, ni, nc, lp, score, null);
134 NetworkCapabilities nc, LinkProperties lp, int score, NetworkMisc misc) {
138 if (ni == null || nc == null || lp == null) {
146 new LinkProperties(lp), new NetworkCapabilities(nc), score, misc);
128 NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, NetworkCapabilities nc, LinkProperties lp, int score) argument
133 NetworkAgent(Looper looper, Context context, String logTag, NetworkInfo ni, NetworkCapabilities nc, LinkProperties lp, int score, NetworkMisc misc) argument
H A DConnectivityManager.java2012 public void registerNetworkAgent(Messenger messenger, NetworkInfo ni, LinkProperties lp, argument
2015 mService.registerNetworkAgent(messenger, ni, lp, nc, score, misc);
2231 LinkProperties lp = (LinkProperties)getObject(message,
2234 callbacks.onLinkPropertiesChanged(network, lp);
/frameworks/base/core/java/com/android/server/net/
H A DNetlinkTracker.java285 public synchronized void setDnsServersOn(LinkProperties lp) { argument
286 lp.setDnsServers(mCurrentServers);
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DMultiPaneChallengeLayout.java188 private int getVirtualHeight(LayoutParams lp, int height, int heightUsed) { argument
197 if (lp.childType == LayoutParams.CHILD_TYPE_USER_SWITCHER) {
201 } else if (lp.childType == LayoutParams.CHILD_TYPE_PAGE_DELETE_DROP_TARGET) {
232 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
234 if (lp.childType == LayoutParams.CHILD_TYPE_CHALLENGE) {
244 } else if (lp.childType == LayoutParams.CHILD_TYPE_USER_SWITCHER) {
255 if (lp.maxWidth >= 0) {
257 Math.min(lp.maxWidth, width), MeasureSpec.EXACTLY);
259 if (lp.maxHeight >= 0) {
261 Math.min(lp
[all...]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
H A DSipHelper.java129 ListeningPoint lp = mSipProvider.getListeningPoint(ListeningPoint.UDP);
130 if (lp == null) lp = mSipProvider.getListeningPoint(ListeningPoint.TCP);
131 if (lp == null) {
133 if ((lps != null) && (lps.length > 0)) lp = lps[0];
135 if (lp == null) {
138 return lp;
144 ListeningPoint lp = getListeningPoint();
145 ViaHeader viaHeader = mHeaderFactory.createViaHeader(lp.getIPAddress(),
146 lp
178 createSipUri(String username, String transport, ListeningPoint lp) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DActionBarActivityDelegate.java168 abstract void setContentView(View v, ViewGroup.LayoutParams lp); argument
170 abstract void addContentView(View v, ViewGroup.LayoutParams lp); argument
H A DActionBarActivity.java267 void superSetContentView(View v, ViewGroup.LayoutParams lp) { argument
268 super.setContentView(v, lp);
271 void superAddContentView(View v, ViewGroup.LayoutParams lp) { argument
272 super.addContentView(v, lp);
H A DActionBarActivityDelegateBase.java233 public void setContentView(View v, ViewGroup.LayoutParams lp) { argument
237 contentParent.addView(v, lp);
242 public void addContentView(View v, ViewGroup.LayoutParams lp) { argument
245 contentParent.addView(v, lp);
1302 ViewGroup.LayoutParams lp = mStatusGuard.getLayoutParams();
1303 if (lp.height != insetTop) {
1304 lp.height = insetTop;
1305 mStatusGuard.setLayoutParams(lp);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DBaseCardView.java528 BaseCardView.LayoutParams lp = (BaseCardView.LayoutParams) child
530 if (lp.viewType == LayoutParams.VIEW_TYPE_INFO) {
533 } else if (lp.viewType == LayoutParams.VIEW_TYPE_EXTRA) {
776 protected LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) { argument
777 if (lp instanceof LayoutParams) {
778 return new LayoutParams((LayoutParams) lp);
780 return new LayoutParams(lp);
H A DGridLayoutManager.java573 public RecyclerView.LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) { argument
574 if (lp instanceof LayoutParams) {
575 return new LayoutParams((LayoutParams) lp);
576 } else if (lp instanceof RecyclerView.LayoutParams) {
577 return new LayoutParams((RecyclerView.LayoutParams) lp);
578 } else if (lp instanceof MarginLayoutParams) {
579 return new LayoutParams((MarginLayoutParams) lp);
581 return new LayoutParams(lp);
1024 final ViewGroup.LayoutParams lp = child.getLayoutParams();
1033 0, lp
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DGridLayoutManager.java126 ViewGroup.LayoutParams lp = host.getLayoutParams();
127 if (!(lp instanceof LayoutParams)) {
131 LayoutParams glp = (LayoutParams) lp;
166 final LayoutParams lp = (LayoutParams) getChildAt(i).getLayoutParams();
167 final int viewPosition = lp.getViewPosition();
168 mPreLayoutSpanSizeCache.put(viewPosition, lp.getSpanSize());
169 mPreLayoutSpanIndexCache.put(viewPosition, lp.getSpanIndex());
210 public RecyclerView.LayoutParams generateLayoutParams(ViewGroup.LayoutParams lp) { argument
211 if (lp instanceof ViewGroup.MarginLayoutParams) {
212 return new LayoutParams((ViewGroup.MarginLayoutParams) lp);
219 checkLayoutParams(RecyclerView.LayoutParams lp) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DAppTransition.java295 private AttributeCache.Entry getCachedAnimations(WindowManager.LayoutParams lp) { argument
297 + (lp != null ? lp.packageName : null)
298 + " resId=0x" + (lp != null ? Integer.toHexString(lp.windowAnimations) : null));
299 if (lp != null && lp.windowAnimations != 0) {
303 String packageName = lp.packageName != null ? lp.packageName : "android";
304 int resId = lp
331 loadAnimationAttr(WindowManager.LayoutParams lp, int animAttr) argument
347 loadAnimationRes(WindowManager.LayoutParams lp, int resId) argument
804 loadAnimation(WindowManager.LayoutParams lp, int transit, boolean enter, int appWidth, int appHeight, int orientation, Rect containingFrame, Rect contentInsets, boolean isFullScreen, boolean isVoiceInteraction) argument
[all...]
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java514 final LayoutParams lp = (LayoutParams) child.getLayoutParams();
519 final int colEnd = lp.column + Math.min(mColCount, lp.span);
520 for (int col = lp.column; col < colEnd; col++) {
521 final int colTop = top - rec.getMarginAbove(col - lp.column);
522 final int colBottom = bottom + rec.getMarginBelow(col - lp.column);
759 LayoutParams lp = (LayoutParams) child.getLayoutParams();
760 final int col = lp.column;
771 lp = (LayoutParams) child.getLayoutParams(); // Might have changed
774 final int span = Math.min(mColCount, lp
1344 generateLayoutParams(ViewGroup.LayoutParams lp) argument
1349 checkLayoutParams(ViewGroup.LayoutParams lp) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DToolbar.java834 final LayoutParams lp = generateDefaultLayoutParams();
835 lp.gravity = Gravity.END | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK);
836 mMenuView.setLayoutParams(lp);
988 final LayoutParams lp = generateDefaultLayoutParams();
989 lp.gravity = Gravity.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK);
990 mNavButtonView.setLayoutParams(lp);
998 final LayoutParams lp = generateDefaultLayoutParams();
999 lp.gravity = Gravity.START | (mButtonGravity & Gravity.VERTICAL_GRAVITY_MASK);
1000 lp.mViewType = LayoutParams.EXPANDED;
1001 mCollapseButtonView.setLayoutParams(lp);
1097 onSetLayoutParams(View child, ViewGroup.LayoutParams lp) argument
[all...]
H A DGridLayout.java675 LayoutParams lp = getLayoutParams(view);
677 (leading ? lp.leftMargin : lp.rightMargin) :
678 (leading ? lp.topMargin : lp.bottomMargin);
679 return margin == UNDEFINED ? getDefaultMargin(view, lp, horizontal, leading) : margin;
688 LayoutParams lp = getLayoutParams(view);
689 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
716 private static void setCellGroup(LayoutParams lp, in argument
826 checkLayoutParams(LayoutParams lp, boolean horizontal) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DActionBarView.java254 ViewGroup.LayoutParams lp = mTabScrollView.getLayoutParams();
255 if (lp != null) {
256 lp.width = LayoutParams.WRAP_CONTENT;
257 lp.height = LayoutParams.MATCH_PARENT;
364 ViewGroup.LayoutParams lp = mTabScrollView.getLayoutParams();
365 lp.width = LayoutParams.WRAP_CONTENT;
366 lp.height = LayoutParams.MATCH_PARENT;
1026 final ViewGroup.LayoutParams lp = generateLayoutParams(customView.getLayoutParams());
1027 final ActionBar.LayoutParams ablp = lp instanceof ActionBar.LayoutParams ?
1028 (ActionBar.LayoutParams) lp
1275 generateLayoutParams(ViewGroup.LayoutParams lp) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
H A DDataConnection.java379 private void checkSetMtu(ApnSetting apn, LinkProperties lp) { argument
380 if (lp == null) return;
382 if (apn == null || lp == null) return;
384 if (lp.getMtu() != PhoneConstants.UNSET_MTU) {
385 if (DBG) log("MTU set by call response to: " + lp.getMtu());
390 lp.setMtu(apn.mtu);
398 lp.setMtu(mtu);
978 LinkProperties lp) {
988 return response.setLinkProperties(lp, okToUseSystemPropertyDns);
1132 LinkProperties lp
977 setLinkProperties(DataCallResponse response, LinkProperties lp) argument
1944 DcNetworkAgent(Looper l, Context c, String TAG, NetworkInfo ni, NetworkCapabilities nc, LinkProperties lp, int score) argument
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DDrawerLayout.java259 void applyMarginInsets(MarginLayoutParams lp, Object insets, int drawerGravity); argument
272 public void applyMarginInsets(MarginLayoutParams lp, Object insets, int drawerGravity) { argument
290 public void applyMarginInsets(MarginLayoutParams lp, Object insets, int drawerGravity) { argument
291 DrawerLayoutCompatApi21.applyMarginInsets(lp, insets, drawerGravity);
609 final LayoutParams lp = (LayoutParams) activeDrawer.getLayoutParams();
610 if (lp.onScreen == 0) {
612 } else if (lp.onScreen == 1) {
627 final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams();
628 if (lp.knownOpen) {
629 lp
[all...]
/frameworks/support/v7/gridlayout/src/android/support/v7/widget/
H A DGridLayout.java660 LayoutParams lp = getLayoutParams(view);
662 (leading ? lp.leftMargin : lp.rightMargin) :
663 (leading ? lp.topMargin : lp.bottomMargin);
664 return margin == UNDEFINED ? getDefaultMargin(view, lp, horizontal, leading) : margin;
677 LayoutParams lp = getLayoutParams(view);
678 Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
705 private static void setCellGroup(LayoutParams lp, in argument
803 checkLayoutParams(LayoutParams lp, boolean horizontal) argument
[all...]

Completed in 589 milliseconds

12