Home
last modified time | relevance | path

Searched refs:getType (Results 1 – 25 of 1066) sorted by relevance

12345678910>>...43

/frameworks/layoutlib/bridge/tests/src/android/content/res/
DBridgeTypedArrayTest.java39 public void getType() { in getType() method in BridgeTypedArrayTest
40 assertEquals(TYPE_NULL, BridgeTypedArray.getType(null)); in getType()
41 assertEquals(TYPE_STRING, BridgeTypedArray.getType("")); in getType()
42 assertEquals(TYPE_REFERENCE, BridgeTypedArray.getType("@drawable/my_drawable")); in getType()
43 assertEquals(TYPE_ATTRIBUTE, BridgeTypedArray.getType("?attr/colorPrimary")); in getType()
44 assertEquals(TYPE_INT_BOOLEAN, BridgeTypedArray.getType("true")); in getType()
45 assertEquals(TYPE_STRING, BridgeTypedArray.getType("False")); in getType()
46 assertEquals(TYPE_INT_HEX, BridgeTypedArray.getType("0xffa39d")); in getType()
47 assertEquals(TYPE_STRING, BridgeTypedArray.getType("0xnothex")); in getType()
48 assertEquals(TYPE_INT_COLOR_RGB4, BridgeTypedArray.getType("#f34")); in getType()
[all …]
/frameworks/base/rs/java/android/renderscript/
DScriptIntrinsicHistogram.java91 if (ain.getType().getElement().getVectorSize() < in forEach()
92 mOut.getType().getElement().getVectorSize()) { in forEach()
97 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) && in forEach()
98 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) && in forEach()
99 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) && in forEach()
100 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) { in forEach()
144 if (mOut.getType().getElement() != Element.U32(mRS) && in setOutput()
145 mOut.getType().getElement() != Element.U32_2(mRS) && in setOutput()
146 mOut.getType().getElement() != Element.U32_3(mRS) && in setOutput()
147 mOut.getType().getElement() != Element.U32_4(mRS) && in setOutput()
[all …]
DScriptIntrinsicBLAS.java281 int M = A.getType().getY(); in validateGEMV()
282 int N = A.getType().getX(); in validateGEMV()
283 if (!A.getType().getElement().isCompatible(e) || in validateGEMV()
284 !X.getType().getElement().isCompatible(e) || in validateGEMV()
285 !Y.getType().getElement().isCompatible(e)) { in validateGEMV()
288 if (X.getType().getY() > 1 || Y.getType().getY() > 1) { in validateGEMV()
303 if (X.getType().getX() != expectedXDim || in validateGEMV()
304 Y.getType().getX() != expectedYDim) { in validateGEMV()
326 int M = A.getType().getY(); in SGEMV()
327 int N = A.getType().getX(); in SGEMV()
[all …]
DAllocationAdapter.java108 if (!mAdaptedAllocation.getType().hasMipmaps()) { in setLOD()
127 if (!mAdaptedAllocation.getType().hasFaces()) { in setFace()
150 if (mAdaptedAllocation.getType().getX() <= x) { in setX()
153 if (mWindow.getX() == mAdaptedAllocation.getType().getX()) { in setX()
156 if ((mWindow.getX() + x) >= mAdaptedAllocation.getType().getX()) { in setX()
172 if (mAdaptedAllocation.getType().getY() == 0) { in setY()
175 if (mAdaptedAllocation.getType().getY() <= y) { in setY()
178 if (mWindow.getY() == mAdaptedAllocation.getType().getY()) { in setY()
181 if ((mWindow.getY() + y) >= mAdaptedAllocation.getType().getY()) { in setY()
197 if (mAdaptedAllocation.getType().getZ() == 0) { in setZ()
[all …]
/frameworks/rs/support/java/src/androidx/renderscript/
DScriptIntrinsicHistogram.java101 if (ain.getType().getElement().getVectorSize() <
102 mOut.getType().getElement().getVectorSize()) {
107 if (!ain.getType().getElement().isCompatible(Element.U8(mRS)) &&
108 !ain.getType().getElement().isCompatible(Element.U8_2(mRS)) &&
109 !ain.getType().getElement().isCompatible(Element.U8_3(mRS)) &&
110 !ain.getType().getElement().isCompatible(Element.U8_4(mRS))) {
154 if (mOut.getType().getElement() != Element.U32(mRS) &&
155 mOut.getType().getElement() != Element.U32_2(mRS) &&
156 mOut.getType().getElement() != Element.U32_3(mRS) &&
157 mOut.getType().getElement() != Element.U32_4(mRS) &&
[all …]
DScriptIntrinsicBLAS.java288 int M = A.getType().getY();
289 int N = A.getType().getX();
290 if (!A.getType().getElement().isCompatible(e) ||
291 !X.getType().getElement().isCompatible(e) ||
292 !Y.getType().getElement().isCompatible(e)) {
295 if (X.getType().getY() > 1 || Y.getType().getY() > 1) {
310 if (X.getType().getX() != expectedXDim ||
311 Y.getType().getX() != expectedYDim) {
333 int M = A.getType().getY(); in SGEMV()
334 int N = A.getType().getX(); in SGEMV()
[all …]
/frameworks/rs/cpp/
DScriptIntrinsics.cpp59 if (ain->getType()->getElement()->isCompatible(mElement) == false || in forEach()
60 aout->getType()->getElement()->isCompatible(mElement) == false) { in forEach()
67 sp<const Type> t = lut->getType(); in setLUT()
93 if (in->getType()->getElement()->isCompatible(mElement) == false || in forEachClear()
94 out->getType()->getElement()->isCompatible(mElement) == false) { in forEachClear()
101 if (in->getType()->getElement()->isCompatible(mElement) == false || in forEachSrc()
102 out->getType()->getElement()->isCompatible(mElement) == false) { in forEachSrc()
109 if (in->getType()->getElement()->isCompatible(mElement) == false || in forEachDst()
110 out->getType()->getElement()->isCompatible(mElement) == false) { in forEachDst()
117 if (in->getType()->getElement()->isCompatible(mElement) == false || in forEachSrcOver()
[all …]
DScriptIntrinsicBLAS.cpp185 int M = A->getType()->getY(); in validateGEMV()
186 int N = A->getType()->getX(); in validateGEMV()
187 if (!A->getType()->getElement()->isCompatible(e) || in validateGEMV()
188 !X->getType()->getElement()->isCompatible(e) || in validateGEMV()
189 !Y->getType()->getElement()->isCompatible(e)) { in validateGEMV()
192 if (X->getType()->getY() > 1 || Y->getType()->getY() > 1) { in validateGEMV()
207 if ((int)X->getType()->getX() != expectedXDim || in validateGEMV()
208 (int)Y->getType()->getX() != expectedYDim) { in validateGEMV()
216 int M = A->getType()->getY(); in SGEMV()
217 int N = A->getType()->getX(); in SGEMV()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DInfoMediaDeviceTest.java102 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_TV); in getDrawableResId_returnCorrectResId()
107 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_SPEAKER); in getDrawableResId_returnCorrectResId()
112 when(mRouteInfo.getType()).thenReturn(TYPE_GROUP); in getDrawableResId_returnCorrectResId()
117 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_TABLET); in getDrawableResId_returnCorrectResId()
122 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_TABLET_DOCKED); in getDrawableResId_returnCorrectResId()
127 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_COMPUTER); in getDrawableResId_returnCorrectResId()
132 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_GAME_CONSOLE); in getDrawableResId_returnCorrectResId()
137 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_CAR); in getDrawableResId_returnCorrectResId()
142 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_SMARTWATCH); in getDrawableResId_returnCorrectResId()
147 when(mRouteInfo.getType()).thenReturn(TYPE_REMOTE_SMARTPHONE); in getDrawableResId_returnCorrectResId()
DPhoneMediaDeviceTest.java87 when(mInfo.getType()).thenReturn(TYPE_WIRED_HEADPHONES); in getDrawableResId_returnCorrectResId()
91 when(mInfo.getType()).thenReturn(TYPE_WIRED_HEADSET); in getDrawableResId_returnCorrectResId()
95 when(mInfo.getType()).thenReturn(TYPE_BUILTIN_SPEAKER); in getDrawableResId_returnCorrectResId()
104 when(mInfo.getType()).thenReturn(TYPE_WIRED_HEADPHONES); in getName_returnCorrectName()
110 when(mInfo.getType()).thenReturn(TYPE_USB_DEVICE); in getName_returnCorrectName()
115 when(mInfo.getType()).thenReturn(TYPE_BUILTIN_SPEAKER); in getName_returnCorrectName()
133 when(mInfo.getType()).thenReturn(TYPE_WIRED_HEADPHONES); in getId_whenAdvancedWiredRoutingDisabled_returnCorrectId()
138 when(mInfo.getType()).thenReturn(TYPE_USB_DEVICE); in getId_whenAdvancedWiredRoutingDisabled_returnCorrectId()
143 when(mInfo.getType()).thenReturn(TYPE_BUILTIN_SPEAKER); in getId_whenAdvancedWiredRoutingDisabled_returnCorrectId()
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/
DFisheye.java80 mInPixelsAllocation.getType().getX(), in do_init()
81 mInPixelsAllocation.getType().getY(), center_x, in do_init()
85 mInPixelsAllocation.getType().getX(), in do_init()
86 mInPixelsAllocation.getType().getY(), center_x, in do_init()
90 mInPixelsAllocation.getType().getX(), in do_init()
91 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
95 mInPixelsAllocation.getType().getX(), in do_init()
96 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
DVignette.java102 mInPixelsAllocation.getType().getX(), in do_init()
103 mInPixelsAllocation.getType().getY(), center_x, in do_init()
107 mInPixelsAllocation.getType().getX(), in do_init()
108 mInPixelsAllocation.getType().getY(), center_x, in do_init()
112 mInPixelsAllocation.getType().getX(), in do_init()
113 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
117 mInPixelsAllocation.getType().getX(), in do_init()
118 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
DBlend.java63 image1 = Allocation.createTyped(mRS, mInPixelsAllocation.getType()); in createTest()
64 image2 = Allocation.createTyped(mRS, mInPixelsAllocation2.getType()); in createTest()
113 …image1.copy2DRangeFrom(0, 0, mInPixelsAllocation.getType().getX(), mInPixelsAllocation.getType().g… in runTest()
114 …image2.copy2DRangeFrom(0, 0, mInPixelsAllocation2.getType().getX(), mInPixelsAllocation2.getType()… in runTest()
167 …mOutPixelsAllocation.copy2DRangeFrom(0, 0, image2.getType().getX(), image2.getType().getY(), image… in runTest()
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DFisheye.java78 mInPixelsAllocation.getType().getX(), in do_init()
79 mInPixelsAllocation.getType().getY(), center_x, in do_init()
83 mInPixelsAllocation.getType().getX(), in do_init()
84 mInPixelsAllocation.getType().getY(), center_x, in do_init()
88 mInPixelsAllocation.getType().getX(), in do_init()
89 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
93 mInPixelsAllocation.getType().getX(), in do_init()
94 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
DVignette.java100 mInPixelsAllocation.getType().getX(), in do_init()
101 mInPixelsAllocation.getType().getY(), center_x, in do_init()
105 mInPixelsAllocation.getType().getX(), in do_init()
106 mInPixelsAllocation.getType().getY(), center_x, in do_init()
110 mInPixelsAllocation.getType().getX(), in do_init()
111 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
115 mInPixelsAllocation.getType().getX(), in do_init()
116 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
DBlend.java70 image1 = Allocation.createTyped(mRS, mInPixelsAllocation.getType()); in createTest()
71 image2 = Allocation.createTyped(mRS, mInPixelsAllocation2.getType()); in createTest()
121 …image1.copy2DRangeFrom(0, 0, mInPixelsAllocation.getType().getX(), mInPixelsAllocation.getType().g… in runTest()
122 …image2.copy2DRangeFrom(0, 0, mInPixelsAllocation2.getType().getX(), mInPixelsAllocation2.getType()… in runTest()
175 …mOutPixelsAllocation.copy2DRangeFrom(0, 0, image2.getType().getX(), image2.getType().getY(), image… in runTest()
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DVignette.java102 mInPixelsAllocation.getType().getX(), in do_init()
103 mInPixelsAllocation.getType().getY(), center_x, in do_init()
107 mInPixelsAllocation.getType().getX(), in do_init()
108 mInPixelsAllocation.getType().getY(), center_x, in do_init()
112 mInPixelsAllocation.getType().getX(), in do_init()
113 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
117 mInPixelsAllocation.getType().getX(), in do_init()
118 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
DFisheye.java83 mInPixelsAllocation.getType().getX(), in do_init()
84 mInPixelsAllocation.getType().getY(), center_x, in do_init()
88 mInPixelsAllocation.getType().getX(), in do_init()
89 mInPixelsAllocation.getType().getY(), center_x, in do_init()
93 mInPixelsAllocation.getType().getX(), in do_init()
94 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
98 mInPixelsAllocation.getType().getX(), in do_init()
99 mInPixelsAllocation.getType().getY(), center_x, center_y, in do_init()
DBlend.java70 image1 = Allocation.createTyped(mRS, mInPixelsAllocation.getType()); in createTest()
71 image2 = Allocation.createTyped(mRS, mInPixelsAllocation2.getType()); in createTest()
120 …image1.copy2DRangeFrom(0, 0, mInPixelsAllocation.getType().getX(), mInPixelsAllocation.getType().g… in runTest()
121 …image2.copy2DRangeFrom(0, 0, mInPixelsAllocation2.getType().getX(), mInPixelsAllocation2.getType()… in runTest()
174 …mOutPixelsAllocation.copy2DRangeFrom(0, 0, image2.getType().getX(), image2.getType().getY(), image… in runTest()
/frameworks/base/core/java/android/database/
DAbstractWindowedCursor.java96 return mWindow.getType(mPos, columnIndex) == Cursor.FIELD_TYPE_NULL; in isNull()
104 return getType(columnIndex) == Cursor.FIELD_TYPE_BLOB; in isBlob()
112 return getType(columnIndex) == Cursor.FIELD_TYPE_STRING; in isString()
120 return getType(columnIndex) == Cursor.FIELD_TYPE_INTEGER; in isLong()
128 return getType(columnIndex) == Cursor.FIELD_TYPE_FLOAT; in isFloat()
132 public int getType(int columnIndex) { in getType() method in AbstractWindowedCursor
134 return mWindow.getType(mPos, columnIndex); in getType()
/frameworks/rs/tests/java_api/CannyLive/src/com/android/example/cannylive/
DViewfinderProcessor.java191 opt.setX(2, mBlurAllocation.getType().getX() - 2); in run()
192 opt.setY(2, mBlurAllocation.getType().getY() - 2); in run()
195 opt.setX(3, mBlurAllocation.getType().getX() - 3); in run()
196 opt.setY(3, mBlurAllocation.getType().getY() - 3); in run()
199 opt.setX(4, mBlurAllocation.getType().getX() - 4); in run()
200 opt.setY(4, mBlurAllocation.getType().getY() - 4); in run()
203 opt.setX(5, mBlurAllocation.getType().getX() - 5); in run()
204 opt.setY(5, mBlurAllocation.getType().getY() - 5); in run()
281 opt.setX(2, blur_alloc.getType().getX() - 2); in processImage()
282 opt.setY(2, blur_alloc.getType().getY() - 2); in processImage()
[all …]
/frameworks/compile/slang/tests/P_reduce_general_inputs/
DScriptC_reduce_general_inputs.java.expect162 if (!ain1.getType().getElement().isCompatible(__F16)) {
166 if (!ain2.getType().getElement().isCompatible(__F16)) {
170 t0 = ain1.getType();
171 t1 = ain2.getType();
226 if (!ain1.getType().getElement().isCompatible(__F16)) {
230 if (!ain2.getType().getElement().isCompatible(__F16)) {
234 t0 = ain1.getType();
235 t1 = ain2.getType();
294 if (!ain1.getType().getElement().isCompatible(__F16)) {
298 if (!ain2.getType().getElement().isCompatible(__F16_2)) {
[all …]
/frameworks/native/libs/ui/tests/
DTransform_test.cpp33 EXPECT_TRUE(t.getType() & Transform::ROTATE); in TEST()
34 EXPECT_TRUE(inverse.getType() & Transform::ROTATE); in TEST()
36 EXPECT_FALSE(t.getType() & Transform::ROTATE); in TEST()
37 EXPECT_FALSE(inverse.getType() & Transform::ROTATE); in TEST()
/frameworks/av/media/img_utils/include/img_utils/
DTiffEntryImpl.h46 TagType getType() const;
86 TagType TiffEntryImpl<T>::getType() const { in getType() function
105 if (getType() == RATIONAL || getType() == SRATIONAL) { in getActualSize()
135 if (getType() == RATIONAL || getType() == SRATIONAL) { in writeTagInfo()
161 if (getType() == RATIONAL || getType() == SRATIONAL) { in writeData()
/frameworks/base/services/tests/media/mediarouterservicetest/src/com/android/server/media/
DAudioManagerRouteControllerTest.java158 assertThat(mControllerUnderTest.getSelectedRoute().getType()) in getSelectedRoute_afterDevicesConnect_returnsRightSelectedRoute()
165 assertThat(mControllerUnderTest.getSelectedRoute().getType()) in getSelectedRoute_afterDevicesConnect_returnsRightSelectedRoute()
171 assertThat(mControllerUnderTest.getSelectedRoute().getType()) in getSelectedRoute_afterDevicesConnect_returnsRightSelectedRoute()
187 assertThat(mControllerUnderTest.getSelectedRoute().getType()) in getSelectedRoute_afterDeviceRemovals_returnsExpectedRoutes()
193 assertThat(mControllerUnderTest.getSelectedRoute().getType()) in getSelectedRoute_afterDeviceRemovals_returnsExpectedRoutes()
199 assertThat(mControllerUnderTest.getSelectedRoute().getType()) in getSelectedRoute_afterDeviceRemovals_returnsExpectedRoutes()
225 .map(MediaRoute2Info::getType) in getAvailableDevices_ignoresInvalidMediaOutputs()
228 assertThat(mControllerUnderTest.getSelectedRoute().getType()) in getAvailableDevices_ignoresInvalidMediaOutputs()
266 assertThat(selectedRoute.getType()).isEqualTo(MediaRoute2Info.TYPE_WIRED_HEADSET); in updateVolume_propagatesCorrectlyToRouteInfo()
277 assertThat(onlyTransferrableRoute.getType()) in updateVolume_propagatesCorrectlyToRouteInfo()
[all …]

12345678910>>...43