Home
last modified time | relevance | path

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

123456789

/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DAnyTest.java47 TestAny container = TestAny.newBuilder() in testAnyGeneratedApi() local
50 assertTrue(container.getValue().is(TestAllTypes.class)); in testAnyGeneratedApi()
51 assertFalse(container.getValue().is(TestAny.class)); in testAnyGeneratedApi()
53 TestAllTypes result = container.getValue().unpack(TestAllTypes.class); in testAnyGeneratedApi()
59 TestAny wrongMessage = container.getValue().unpack(TestAny.class); in testAnyGeneratedApi()
66 TestAny.Builder containerBuilder = container.toBuilder(); in testAnyGeneratedApi()
69 container = containerBuilder.build(); in testAnyGeneratedApi()
71 TestAllTypes parsingFailed = container.getValue().unpack(TestAllTypes.class); in testAnyGeneratedApi()
83 TestAny container = TestAny.newBuilder() in testCustomTypeUrls() local
88 container.getValue().getTypeUrl()); in testCustomTypeUrls()
[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/av/drm/mediacas/plugins/clearkey/
DClearKeyFetcher.cpp58 EcmContainer container; in ObtainKey() local
59 status_t status = container.Parse(buffer); in ObtainKey()
63 ALOGV("descriptor_size=%zu", container.descriptor_size()); in ObtainKey()
69 if (container.descriptor_size() == 2) { in ObtainKey()
71 bool same_parity = (((container.descriptor(0).id() & 0x01) ^ in ObtainKey()
72 (container.descriptor(1).id() & 0x01)) == 0); in ObtainKey()
76 container.descriptor(0).ecm().asset_id(), in ObtainKey()
77 container.descriptor(0).id(), in ObtainKey()
78 container.descriptor(1).id()); in ObtainKey()
82 *asset_id = container.descriptor(0).ecm().asset_id(); in ObtainKey()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowContainerControllerTests.java46 final WindowContainer container = new WindowContainer(mWm); in testCreation() local
48 container.setController(controller); in testCreation()
49 assertEquals(controller, container.getController()); in testCreation()
50 assertEquals(controller.mContainer, container); in testCreation()
56 final WindowContainer container = new WindowContainer(mWm); in testSetContainer() local
58 controller.setContainer(container); in testSetContainer()
59 assertEquals(controller.mContainer, container); in testSetContainer()
78 final WindowContainer container = new WindowContainer(mWm); in testRemoveContainer() local
80 controller.setContainer(container); in testRemoveContainer()
81 assertEquals(controller.mContainer, container); in testRemoveContainer()
[all …]
/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/base/core/java/android/view/textclassifier/
DExtrasUtils.java77 static void putForeignLanguageExtra(Bundle container, Bundle extra) { in putForeignLanguageExtra() argument
78 container.putParcelable(FOREIGN_LANGUAGE, extra); in putForeignLanguageExtra()
98 static void putTopLanguageScores(Bundle container, EntityConfidence languageScores) { in putTopLanguageScores() argument
106 container.putStringArray(ENTITY_TYPE, languages); in putTopLanguageScores()
107 container.putFloatArray(SCORE, scores); in putTopLanguageScores()
141 public static void putTextLanguagesExtra(Bundle container, Bundle extra) { in putTextLanguagesExtra() argument
142 container.putBundle(TEXT_LANGUAGES, extra); in putTextLanguagesExtra()
149 static void putActionsIntents(Bundle container, ArrayList<Intent> actionsIntents) { in putActionsIntents() argument
150 container.putParcelableArrayList(ACTIONS_INTENTS, actionsIntents); in putActionsIntents()
157 public static void putActionIntent(Bundle container, @Nullable Intent actionIntent) { in putActionIntent() argument
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDimmer.java182 private DimState getDimState(WindowContainer container) { in getDimState() argument
191 if (container == null) { in getDimState()
199 mLastRequestedDimContainer = container; in getDimState()
203 private void dim(SurfaceControl.Transaction t, WindowContainer container, int relativeLayer, in dim() argument
205 final DimState d = getDimState(container); in dim()
211 if (container != null) { in dim()
215 t.setRelativeLayer(d.mDimLayer, container.getSurfaceControl(), relativeLayer); in dim()
259 void dimAbove(SurfaceControl.Transaction t, WindowContainer container, float alpha) { in dimAbove() argument
260 dim(t, container, 1, alpha); in dimAbove()
271 void dimBelow(SurfaceControl.Transaction t, WindowContainer container, float alpha) { in dimBelow() argument
[all …]
DWindowContainerController.java49 void setContainer(E container) { in setContainer() argument
50 if (mContainer != null && container != null) { in setContainer()
51 throw new IllegalArgumentException("Can't set container=" + container in setContainer()
54 mContainer = container; in setContainer()
/frameworks/base/libs/hwui/tests/common/scenes/
DGlyphStressAnimation.cpp33 sp<RenderNode> container; member in GlyphStressAnimation
35 container = TestUtils::createNode(0, 0, width, height, nullptr); in createContent()
39 canvas.drawRenderNode(container.get()); in createContent()
46 Canvas::create_recording_canvas(container->stagingProperties().getWidth(), in doFrame()
47 container->stagingProperties().getHeight(), in doFrame()
48 container.get())); in doFrame()
58 container->setStagingDisplayList(canvas->finishRecording()); in doFrame()
/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/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()
DVectorCheckbox.java54 GridLayout container = new GridLayout(this); in onCreate() local
55 container.setColumnCount(5); in onCreate()
56 container.setBackgroundColor(0xFF888888); in onCreate()
64 container.addView(checkBox); in onCreate()
66 setContentView(container); in onCreate()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewLayerInvalidationActivity.java36 LinearLayout container = null; field in ViewLayerInvalidationActivity
52 container = 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()
DProjectionActivity.java58 container.setTranslationX(100f); in setProject()
59 container.setTranslationX(0.0f); in setProject()
74 static View container; field in ProjectionActivity
80 container = findViewById(R.id.container); in onCreate()
/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 = 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()
DScenesTestv21.java42 View container = findViewById(R.id.container); in onCreate() local
43 mSceneRoot = (ViewGroup) container.getParent(); in onCreate()
54 transitionToResults.addTransition(new Recolor().addTarget(R.id.container)); in onCreate()
60 transitionToSearch.addTransition(new Recolor().addTarget(R.id.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/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/
Dstl_util.h99 void STLDeleteElements(T *container) { in STLDeleteElements() argument
100 if (!container) return; in STLDeleteElements()
101 STLDeleteContainerPointers(container->begin(), container->end()); in STLDeleteElements()
102 container->clear(); in STLDeleteElements()
/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/av/camera/ndk/
DNdkCameraDevice.cpp124 void ACaptureSessionOutputContainer_free(ACaptureSessionOutputContainer* container) { in ACaptureSessionOutputContainer_free() argument
126 if (container != nullptr) { in ACaptureSessionOutputContainer_free()
127 delete container; in ACaptureSessionOutputContainer_free()
233 ACaptureSessionOutputContainer* container, const ACaptureSessionOutput* output) { in ACaptureSessionOutputContainer_add() argument
235 if (container == nullptr || output == nullptr) { in ACaptureSessionOutputContainer_add()
237 __FUNCTION__, container, output); in ACaptureSessionOutputContainer_add()
240 auto pair = container->mOutputs.insert(*output); in ACaptureSessionOutputContainer_add()
249 ACaptureSessionOutputContainer* container, const ACaptureSessionOutput* output) { in ACaptureSessionOutputContainer_remove() argument
251 if (container == nullptr || output == nullptr) { in ACaptureSessionOutputContainer_remove()
253 __FUNCTION__, container, output); in ACaptureSessionOutputContainer_remove()
[all …]
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/
DLinearLayoutTest.java29 LinearLayout container = new LinearLayout(context); in create() local
30 container.setOrientation(LinearLayout.VERTICAL); in create()
39 container.addView(v, lp); in create()
43 return container; in create()

123456789