/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | ConnectivityServiceTest.java | 383 public void sendLinkProperties(LinkProperties lp) { argument 384 mNetworkAgent.sendLinkProperties(lp); 1553 private Network connectKeepaliveNetwork(LinkProperties lp) { argument 1564 mWiFiNetworkAgent.sendLinkProperties(lp); 1576 LinkProperties lp = new LinkProperties(); 1577 lp.setInterfaceName("wlan12"); 1578 lp.addLinkAddress(new LinkAddress(myIPv6, 64)); 1579 lp.addLinkAddress(new LinkAddress(myIPv4, 25)); 1580 lp.addRoute(new RouteInfo(InetAddress.getByName("fe80::1234"))); 1581 lp [all...] |
/frameworks/base/core/java/android/view/animation/ |
H A D | GridLayoutAnimationController.java | 298 ViewGroup.LayoutParams lp = view.getLayoutParams(); 299 AnimationParameters params = (AnimationParameters) lp.layoutAnimationParameters;
|
/frameworks/base/core/java/com/android/server/net/ |
H A D | NetlinkTracker.java | 296 public synchronized void setDnsServersOn(LinkProperties lp) { argument 297 lp.setDnsServers(mCurrentServers);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | GridScenario.java | 332 final ViewGroup.LayoutParams lp = new AbsListView.LayoutParams( 335 result.setLayoutParams(lp);
|
/frameworks/data-binding/samples/BindingDemo/app/src/main/java/com/android/example/bindingdemo/ |
H A D | MainActivity.java | 183 RecyclerView.LayoutParams lp = (RecyclerView.LayoutParams) v.getLayoutParams(); 184 final int pos = lp.getViewAdapterPosition();
|
/frameworks/support/design/src/android/support/design/widget/ |
H A D | CollapsingToolbarLayout.java | 405 final LayoutParams lp = (LayoutParams) mToolbarDirectChild.getLayoutParams(); 406 bottomOffset = lp.bottomMargin; 461 final ViewGroup.LayoutParams lp = view.getLayoutParams(); 462 if (lp instanceof MarginLayoutParams) { 463 final MarginLayoutParams mlp = (MarginLayoutParams) lp; 1198 final LayoutParams lp = (LayoutParams) child.getLayoutParams(); 1201 switch (lp.mCollapseMode) { 1209 Math.round(-verticalOffset * lp.mParallaxMult));
|
H A D | TextInputLayout.java | 286 private LayoutParams updateEditTextMargin(ViewGroup.LayoutParams lp) { argument 289 LayoutParams llp = lp instanceof LayoutParams ? (LayoutParams) lp : new LayoutParams(lp); 408 final LayoutParams lp = updateEditTextMargin(mEditText.getLayoutParams()); 409 mEditText.setLayoutParams(lp); 438 LayoutParams lp = updateEditTextMargin(mEditText.getLayoutParams()); 439 mEditText.setLayoutParams(lp);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
H A D | VolumeDialog.java | 190 final WindowManager.LayoutParams lp = window.getAttributes(); 191 lp.type = mWindowType; 192 lp.format = PixelFormat.TRANSLUCENT; 193 lp.setTitle(VolumeDialog.class.getSimpleName()); 194 lp.gravity = Gravity.TOP | Gravity.CENTER_HORIZONTAL; 195 lp.y = res.getDimensionPixelSize(R.dimen.volume_offset_top); 196 lp.gravity = Gravity.TOP; 197 lp.windowAnimations = -1; 198 window.setAttributes(lp); 274 final ViewGroup.LayoutParams lp [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
H A D | DataConnection.java | 364 private void checkSetMtu(ApnSetting apn, LinkProperties lp) { argument 365 if (lp == null) return; 367 if (apn == null || lp == null) return; 369 if (lp.getMtu() != PhoneConstants.UNSET_MTU) { 370 if (DBG) log("MTU set by call response to: " + lp.getMtu()); 375 lp.setMtu(apn.mtu); 383 lp.setMtu(mtu); 932 LinkProperties lp) { 942 return response.setLinkProperties(lp, okToUseSystemPropertyDns); 1083 LinkProperties lp 931 setLinkProperties(DataCallResponse response, LinkProperties lp) argument 1772 DcNetworkAgent(Looper l, Context c, String TAG, NetworkInfo ni, NetworkCapabilities nc, LinkProperties lp, int score, NetworkMisc misc) argument [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | LinearLayoutManagerTest.java | 128 ViewGroup.LayoutParams lp = holder.itemView.getLayoutParams(); 129 if (!(lp instanceof ViewGroup.MarginLayoutParams)) { 130 lp = new ViewGroup.MarginLayoutParams(0, 0); 131 holder.itemView.setLayoutParams(lp); 133 ViewGroup.MarginLayoutParams mlp = (ViewGroup.MarginLayoutParams) lp;
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | NestedScrollView.java | 495 final FrameLayout.LayoutParams lp = (LayoutParams) child.getLayoutParams(); 498 getPaddingLeft() + getPaddingRight(), lp.width); 1391 ViewGroup.LayoutParams lp = child.getLayoutParams(); 1397 + getPaddingRight(), lp.width); 1407 final MarginLayoutParams lp = (MarginLayoutParams) child.getLayoutParams(); 1410 getPaddingLeft() + getPaddingRight() + lp.leftMargin + lp.rightMargin 1411 + widthUsed, lp.width); 1413 lp.topMargin + lp [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
H A D | BrowseFragment.java | 1323 MarginLayoutParams lp; 1326 lp = (MarginLayoutParams) containerList.getLayoutParams(); 1327 lp.setMarginStart(onScreen ? 0 : -mContainerListMarginStart); 1328 containerList.setLayoutParams(lp); 1663 MarginLayoutParams lp = (MarginLayoutParams) searchOrbView.getLayoutParams(); 1664 lp.setMarginStart(onScreen ? 0 : -mContainerListMarginStart); 1665 searchOrbView.setLayoutParams(lp);
|
H A D | BrowseSupportFragment.java | 1325 MarginLayoutParams lp; 1328 lp = (MarginLayoutParams) containerList.getLayoutParams(); 1329 lp.setMarginStart(onScreen ? 0 : -mContainerListMarginStart); 1330 containerList.setLayoutParams(lp); 1665 MarginLayoutParams lp = (MarginLayoutParams) searchOrbView.getLayoutParams(); 1666 lp.setMarginStart(onScreen ? 0 : -mContainerListMarginStart); 1667 searchOrbView.setLayoutParams(lp);
|
H A D | GuidedStepFragment.java | 1099 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) 1101 lp.weight = 0; 1102 buttonActionsView.setLayoutParams(lp); 1112 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) actionsRoot 1114 lp.weight = weight; 1115 actionsRoot.setLayoutParams(lp);
|
H A D | GuidedStepSupportFragment.java | 1101 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) 1103 lp.weight = 0; 1104 buttonActionsView.setLayoutParams(lp); 1114 LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) actionsRoot 1116 lp.weight = weight; 1117 actionsRoot.setLayoutParams(lp);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/ |
H A D | Picker.java | 481 ViewGroup.LayoutParams lp = columnView.getLayoutParams(); 482 lp.height = (int) (getPickerItemHeightPixels() * (isActivated() ? 484 columnView.setLayoutParams(lp);
|
/frameworks/base/core/java/android/widget/ |
H A D | AbsListView.java | 2407 LayoutParams lp; 2409 lp = (LayoutParams) generateDefaultLayoutParams(); 2411 lp = (LayoutParams) generateLayoutParams(vlp); 2413 lp = (LayoutParams) vlp; 2417 lp.itemId = mAdapter.getItemId(position); 2419 lp.viewType = mAdapter.getItemViewType(position); 2420 lp.isEnabled = mAdapter.isEnabled(position); 2421 if (lp != vlp) { 2422 child.setLayoutParams(lp); 2458 final ViewGroup.LayoutParams lp [all...] |
H A D | Gallery.java | 900 Gallery.LayoutParams lp = (Gallery.LayoutParams) child.getLayoutParams(); 901 if (lp == null) { 902 lp = (Gallery.LayoutParams) generateDefaultLayoutParams(); 905 addViewInLayout(child, fromLeft != mIsRtl ? -1 : 0, lp, true); 911 mSpinnerPadding.top + mSpinnerPadding.bottom, lp.height); 913 mSpinnerPadding.left + mSpinnerPadding.right, lp.width);
|
H A D | Spinner.java | 721 ViewGroup.LayoutParams lp = child.getLayoutParams(); 722 if (lp == null) { 723 lp = generateDefaultLayoutParams(); 726 addViewInLayout(child, 0, lp); 735 mSpinnerPadding.top + mSpinnerPadding.bottom, lp.height); 737 mSpinnerPadding.left + mSpinnerPadding.right, lp.width);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | DessertCaseView.java | 281 final FrameLayout.LayoutParams lp = new FrameLayout.LayoutParams(mCellSize, mCellSize); 319 lp.width = lp.height = mCellSize; 320 addView(v, lp);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
H A D | CarNavigationBarController.java | 258 LinearLayout.LayoutParams lp = 260 button.setLayoutParams(lp);
|
/frameworks/base/core/java/android/view/ |
H A D | ViewRootImpl.java | 1304 private boolean measureHierarchy(final View host, final WindowManager.LayoutParams lp, argument 1315 if (lp.width == ViewGroup.LayoutParams.WRAP_CONTENT) { 1329 childWidthMeasureSpec = getRootMeasureSpec(baseSize, lp.width); 1330 childHeightMeasureSpec = getRootMeasureSpec(desiredWindowHeight, lp.height); 1343 childWidthMeasureSpec = getRootMeasureSpec(baseSize, lp.width); 1356 childWidthMeasureSpec = getRootMeasureSpec(desiredWindowWidth, lp.width); 1357 childHeightMeasureSpec = getRootMeasureSpec(desiredWindowHeight, lp.height); 1425 private static boolean shouldUseDisplaySize(final WindowManager.LayoutParams lp) { argument 1426 return lp.type == TYPE_STATUS_BAR_PANEL 1427 || lp 2328 performLayout(WindowManager.LayoutParams lp, int desiredWindowWidth, int desiredWindowHeight) argument [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | ChooserActivity.java | 1262 LayoutParams lp = v.getLayoutParams(); 1264 if (lp == null) { 1265 lp = new LayoutParams(LayoutParams.MATCH_PARENT, v.getMeasuredHeight()); 1266 row.setLayoutParams(lp); 1268 lp.height = v.getMeasuredHeight(); 1274 LayoutParams lp = row.getLayoutParams(); 1275 if (lp == null) { 1276 lp = new LayoutParams(LayoutParams.MATCH_PARENT, holder.measuredRowHeight); 1277 row.setLayoutParams(lp); 1279 lp [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | NotificationPanelView.java | 286 FrameLayout.LayoutParams lp = 288 if (lp.width != panelWidth) { 289 lp.width = panelWidth; 290 lp.gravity = panelGravity; 291 mQsAutoReinflateContainer.setLayoutParams(lp); 295 lp = (FrameLayout.LayoutParams) mNotificationStackScroller.getLayoutParams(); 296 if (lp.width != panelWidth) { 297 lp.width = panelWidth; 298 lp.gravity = panelGravity; 299 mNotificationStackScroller.setLayoutParams(lp); [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
H A D | LinearLayoutManager.java | 2045 final LayoutParams lp = (LayoutParams) view.getLayoutParams(); 2046 if (lp.isItemRemoved()) { 2049 if (mCurrentPosition == lp.getViewLayoutPosition()) { 2080 final LayoutParams lp = (LayoutParams) view.getLayoutParams(); 2081 if (view == ignore || lp.isItemRemoved()) { 2084 final int distance = (lp.getViewLayoutPosition() - mCurrentPosition) * 2208 LayoutParams lp = (LayoutParams) child.getLayoutParams(); 2209 return !lp.isItemRemoved() && lp.getViewLayoutPosition() >= 0 2210 && lp [all...] |