Home
last modified time | relevance | path

Searched refs:container (Results 1 – 25 of 332) sorted by relevance

12345678910>>...14

/frameworks/base/core/java/android/view/
DGravity.java138 public static void apply(int gravity, int w, int h, Rect container, Rect outRect) { in apply() argument
139 apply(gravity, w, h, container, 0, 0, outRect); in apply()
159 public static void apply(int gravity, int w, int h, Rect container, in apply() argument
162 apply(absGravity, w, h, container, 0, 0, outRect); in apply()
186 public static void apply(int gravity, int w, int h, Rect container, in apply() argument
190 outRect.left = container.left in apply()
191 + ((container.right - container.left - w)/2) + xAdj; in apply()
195 if (outRect.left < container.left) { in apply()
196 outRect.left = container.left; in apply()
198 if (outRect.right > container.right) { in apply()
[all …]
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
DShadowOverlayContainerTest.java33 ShadowOverlayContainer container = new ShadowOverlayContainer(getContext()); in testWrapContent() local
34 container.initialize(true, true, true); in testWrapContent()
35 container.wrap(textView); in testWrapContent()
36 frameLayout.addView(container); in testWrapContent()
44 assertEquals(container.getWidth(), textView.getWidth()); in testWrapContent()
45 assertEquals(container.getHeight(), textView.getHeight()); in testWrapContent()
54 assertEquals(container.getWidth(), textView.getWidth()); in testWrapContent()
55 assertEquals(container.getHeight(), textView.getHeight()); in testWrapContent()
63 ShadowOverlayContainer container = new ShadowOverlayContainer(getContext());
64 container.initialize(true, true, true);
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DPagerAdapter.java94 public void startUpdate(ViewGroup container) { in startUpdate() argument
95 startUpdate((View) container); in startUpdate()
109 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument
110 return instantiateItem((View) container, position); in instantiateItem()
123 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
124 destroyItem((View) container, position, object); in destroyItem()
136 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument
137 setPrimaryItem((View) container, position, object); in setPrimaryItem()
147 public void finishUpdate(ViewGroup container) { in finishUpdate() argument
148 finishUpdate((View) container); in finishUpdate()
[all …]
/frameworks/support/v4/java/android/support/v4/view/
DPagerAdapter.java95 public void startUpdate(ViewGroup container) { in startUpdate() argument
96 startUpdate((View) container); in startUpdate()
110 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument
111 return instantiateItem((View) container, position); in instantiateItem()
124 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
125 destroyItem((View) container, position, object); in destroyItem()
137 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument
138 setPrimaryItem((View) container, position, object); in setPrimaryItem()
148 public void finishUpdate(ViewGroup container) { in finishUpdate() argument
149 finishUpdate((View) container); in finishUpdate()
[all …]
DGravityCompat.java30 void apply(int gravity, int w, int h, Rect container, Rect outRect, int layoutDirection); in apply() argument
31 void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, in apply() argument
44 public void apply(int gravity, int w, int h, Rect container, Rect outRect, in apply() argument
46 Gravity.apply(gravity, w, h, container, outRect); in apply()
50 public void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, in apply() argument
52 Gravity.apply(gravity, w, h, container, xAdj, yAdj, outRect); in apply()
69 public void apply(int gravity, int w, int h, Rect container, Rect outRect, in apply() argument
71 GravityCompatJellybeanMr1.apply(gravity, w, h, container, outRect, layoutDirection); in apply()
75 public void apply(int gravity, int w, int h, Rect container, int xAdj, int yAdj, in apply() argument
77 GravityCompatJellybeanMr1.apply(gravity, w, h, container, xAdj, yAdj, outRect, in apply()
[all …]
/frameworks/av/camera/ndk/
DNdkCameraDevice.cpp89 void ACaptureSessionOutputContainer_free(ACaptureSessionOutputContainer* container) { in ACaptureSessionOutputContainer_free() argument
91 if (container != nullptr) { in ACaptureSessionOutputContainer_free()
92 delete container; in ACaptureSessionOutputContainer_free()
121 ACaptureSessionOutputContainer* container, const ACaptureSessionOutput* output) { in ACaptureSessionOutputContainer_add() argument
123 if (container == nullptr || output == nullptr) { in ACaptureSessionOutputContainer_add()
125 __FUNCTION__, container, output); in ACaptureSessionOutputContainer_add()
128 auto pair = container->mOutputs.insert(*output); in ACaptureSessionOutputContainer_add()
137 ACaptureSessionOutputContainer* container, const ACaptureSessionOutput* output) { in ACaptureSessionOutputContainer_remove() argument
139 if (container == nullptr || output == nullptr) { in ACaptureSessionOutputContainer_remove()
141 __FUNCTION__, container, output); in ACaptureSessionOutputContainer_remove()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
DMDnsUtils.java60 private static boolean containsVendor(String container, String[] vendorValues) { in containsVendor() argument
61 if ((container == null) || (vendorValues == null)) return false; in containsVendor()
63 if (containsString(container, value) in containsVendor()
64 || containsString(container.toLowerCase(Locale.US), value.toLowerCase(Locale.US)) in containsVendor()
65 || containsString(container.toUpperCase(Locale.US), value.toUpperCase(Locale.US))) in containsVendor()
71 private static boolean containsString(String container, String contained) { in containsString() argument
72 …return (container != null) && (contained != null) && (container.equalsIgnoreCase(contained) || con… in containsString()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/hp/
DMDnsUtils.java60 private static boolean containsVendor(String container, String[] vendorValues) { in containsVendor() argument
61 if ((container == null) || (vendorValues == null)) return false; in containsVendor()
63 if (containsString(container, value) in containsVendor()
64 || containsString(container.toLowerCase(Locale.US), value.toLowerCase(Locale.US)) in containsVendor()
65 || containsString(container.toUpperCase(Locale.US), value.toUpperCase(Locale.US))) in containsVendor()
71 private static boolean containsString(String container, String contained) { in containsString() argument
72 …return (container != null) && (contained != null) && (container.equalsIgnoreCase(contained) || con… in containsString()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewLayerInvalidationActivity.java36 LinearLayout container = null; field in ViewLayerInvalidationActivity
52 container = (LinearLayout) findViewById(R.id.container); in onCreate()
64 collectLinearLayouts(container); in onCreate()
65 collectTextViews(container); in onCreate()
75 container.postDelayed(textColorSetter, TEXT_COLOR_INTERVAL); in onCreate()
76 container.postDelayed(nestedLayerSetter, NESTING_INTERVAL); in onCreate()
77 container.postDelayed(randomInvalidatesSetter, INVALIDATING_INTERVAL); in onCreate()
88 randomInvalidator(container);
90 container.postDelayed(textColorSetter, TEXT_COLOR_INTERVAL);
99 container.postDelayed(randomInvalidatesSetter, INVALIDATING_INTERVAL);
[all …]
DViewLayersActivity5.java90 ((ClipFrameLayout) findViewById(R.id.container)).setClipEnabled(true); in enableClip()
94 ((ClipFrameLayout) findViewById(R.id.container)).setClipEnabled(false); in disableClip()
98 findViewById(R.id.container).setLayerType(View.LAYER_TYPE_HARDWARE, mPaint); in enableLayer()
102 findViewById(R.id.container).setLayerType(View.LAYER_TYPE_NONE, null); in disableLayer()
106 findViewById(R.id.container).getLayoutParams().height = ViewGroup.LayoutParams.MATCH_PARENT; in growLayer()
107 findViewById(R.id.container).requestLayout(); in growLayer()
111 findViewById(R.id.container).getLayoutParams().height = 300; in shrinkLayer()
112 findViewById(R.id.container).requestLayout(); in shrinkLayer()
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
DScaleDrawableTests.java47 GridLayout container = new GridLayout(this); in onCreate() local
48 scrollView.addView(container); in onCreate()
49 container.setColumnCount(4); in onCreate()
50 container.setBackgroundColor(0xFF888888); in onCreate()
59 container.addView(t); in onCreate()
67 container.addView(png_view); in onCreate()
73 container.addView(view); in onCreate()
79 container.addView(avd_view); in onCreate()
DBitmapDrawableDupe.java58 GridLayout container = new GridLayout(this); in onCreate() local
59 scrollView.addView(container); in onCreate()
60 container.setColumnCount(5); in onCreate()
61 container.setBackgroundColor(0xFF888888); in onCreate()
69 container.addView(button); in onCreate()
76 container.addView(t); in onCreate()
DVectorDrawable01.java58 GridLayout container = new GridLayout(this); in onCreate() local
59 container.setColumnCount(5); in onCreate()
60 container.setBackgroundColor(0xFF888888); in onCreate()
78 container.addView(toggle); in onCreate()
85 container.addView(button); in onCreate()
90 setContentView(container); in onCreate()
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/xerox/
DMDnsUtils.java74 private static boolean containsVendor(String container, String[] vendorValues) { in containsVendor() argument
75 if ((container == null) || (vendorValues == null)) return false; in containsVendor()
77 if (containsString(container, value) in containsVendor()
78 … || containsString(container.toLowerCase(Locale.US), value.toLowerCase(Locale.US)) in containsVendor()
79 … || containsString(container.toUpperCase(Locale.US), value.toUpperCase(Locale.US))) in containsVendor()
90 private static boolean containsString(String container, String contained) { in containsString() argument
91 …return (container != null) && (contained != null) && (container.equalsIgnoreCase(contained) || con… in containsString()
/frameworks/support/v4/java/android/support/v4/app/
DFragmentPagerAdapter.java79 public void startUpdate(ViewGroup container) { in startUpdate() argument
80 if (container.getId() == View.NO_ID) { in startUpdate()
87 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument
95 String name = makeFragmentName(container.getId(), itemId); in instantiateItem()
103 mCurTransaction.add(container.getId(), fragment, in instantiateItem()
104 makeFragmentName(container.getId(), itemId)); in instantiateItem()
115 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
125 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument
141 public void finishUpdate(ViewGroup container) { in finishUpdate() argument
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DImageLoader.java219 ImageContainer container = new ImageContainer(cachedBitmap, requestUrl, null, null);
220 imageListener.onResponse(container, true);
221 return container;
408 public BatchedImageRequest(Request<?> request, ImageContainer container) {
410 mContainers.add(container);
431 public void addContainer(ImageContainer container) {
432 mContainers.add(container);
441 public boolean removeContainerAndCancelIfNecessary(ImageContainer container) {
442 mContainers.remove(container);
465 for (ImageContainer container : bir.mContainers) {
[all …]
/frameworks/support/v13/java/android/support/v13/app/
DFragmentPagerAdapter.java83 public void startUpdate(ViewGroup container) { in startUpdate() argument
84 if (container.getId() == View.NO_ID) { in startUpdate()
91 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument
99 String name = makeFragmentName(container.getId(), itemId); in instantiateItem()
107 mCurTransaction.add(container.getId(), fragment, in instantiateItem()
108 makeFragmentName(container.getId(), itemId)); in instantiateItem()
119 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
129 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem() argument
145 public void finishUpdate(ViewGroup container) { in finishUpdate() argument
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DDelayedTransition.java41 final LinearLayout container = (LinearLayout) findViewById(R.id.container); in onCreate() local
46 int containerWidth = container.getWidth(); in onCreate()
48 TransitionManager.beginDelayedTransition(container, null); in onCreate()
51 TransitionManager.beginDelayedTransition(container, null); in onCreate()
55 TransitionManager.beginDelayedTransition(container, null); in onCreate()
58 TransitionManager.beginDelayedTransition(container, null); in onCreate()
DUniqueIds.java43 LinearLayout container = (LinearLayout) findViewById(R.id.container); in onCreate() local
46 container.addView(button); in onCreate()
47 ToggleScene scene = new ToggleScene(container, button); in onCreate()
50 container.addView(button); in onCreate()
51 scene = new ToggleScene(container, button); in onCreate()
/frameworks/base/libs/hwui/tests/common/scenes/
DGlyphStressAnimation.cpp35 sp<RenderNode> container; member in GlyphStressAnimation
37 container = TestUtils::createNode(0, 0, width, height, nullptr); in createContent()
41 canvas.drawRenderNode(container.get()); in createContent()
50 container->stagingProperties().getWidth(), in doFrame()
51 container->stagingProperties().getHeight()); in doFrame()
62 container->setStagingDisplayList(canvas.finishRecording(), nullptr); in doFrame()
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
DBaseFragmentPagerAdapter.java67 public void startUpdate(View container) { in startUpdate() argument
71 public Object instantiateItem(View container, int position) { in instantiateItem() argument
77 String name = makeFragmentName(container.getId(), position); in instantiateItem()
93 mCurTransaction.add(container.getId(), fragment, in instantiateItem()
94 makeFragmentName(container.getId(), position)); in instantiateItem()
104 public void destroyItem(View container, int position, Object object) { in destroyItem() argument
117 name = makeFragmentName(container.getId(), position); in destroyItem()
125 public void setPrimaryItem(View container, int position, Object object) { in setPrimaryItem() argument
140 public void finishUpdate(View container) { in finishUpdate() argument
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DViewsStateBundle.java157 SparseArray<Parcelable> container = mChildStates.remove(key); in loadView() local
158 if (container != null) { in loadView()
159 view.restoreHierarchyState(container); in loadView()
173 SparseArray<Parcelable> container = new SparseArray<Parcelable>(); in saveViewUnchecked() local
174 view.saveHierarchyState(container); in saveViewUnchecked()
175 mChildStates.put(key, container); in saveViewUnchecked()
190 SparseArray<Parcelable> container = new SparseArray<Parcelable>(); in saveOnScreenView() local
191 view.saveHierarchyState(container); in saveOnScreenView()
195 bundle.putSparseParcelableArray(key, container); in saveOnScreenView()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerResizeTest.java58 final FrameLayout container = getRecyclerViewContainer(); in resize() local
62 container.setPadding(0, 0, 0, 0); in resize()
79 container.setPadding(0, 0, container.getWidth() / 2, 0); in resize()
81 container.setPadding(0, 0, 0, container.getWidth() / 2); in resize()
/frameworks/base/docs/html/design/auto/
Dindex.jd61 <div class="auto-img-container-single">
62 <div class="auto-img-container">
77 <div class="auto-img-container-single">
78 <div class="auto-img-container">
93 <div class="auto-img-container-single">
94 <div class="auto-img-container">
102 <div class="auto-img-container-single">
103 <div class="auto-img-container">
117 <div class="auto-img-container-single">
118 <div class="auto-img-container">
[all …]
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java189 return view == holder.container; in isViewFromObject()
213 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem() argument
214 final View itemView = mInflater.inflate(mLayoutResId, container, false); in instantiateItem()
266 container.addView(itemView); in instantiateItem()
272 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem() argument
274 container.removeView(holder.container); in destroyItem()
317 public final View container; field in DayPickerPagerAdapter.ViewHolder
320 public ViewHolder(int position, View container, SimpleMonthView calendar) { in ViewHolder() argument
322 this.container = container; in ViewHolder()

12345678910>>...14