Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 423) sorted by relevance

12345678910>>...17

/cts/tests/signature/lib/common/src/android/signature/cts/
DDexMember.java27 protected DexMember(String className, String name, String type, String[] flags) { in DexMember() argument
30 mType = type; in DexMember()
61 protected static String dexToJavaType(String type) { in dexToJavaType() argument
63 while (type.startsWith("[")) { in dexToJavaType()
65 type = type.substring(1); in dexToJavaType()
69 if ("V".equals(type)) { in dexToJavaType()
71 } else if ("Z".equals(type)) { in dexToJavaType()
73 } else if ("B".equals(type)) { in dexToJavaType()
75 } else if ("C".equals(type)) { in dexToJavaType()
77 } else if ("S".equals(type)) { in dexToJavaType()
[all …]
DDexMethod.java70 String type = firstDexTypeFromList(typeSequence); in parseDexTypeList() local
71 list.add(type); in parseDexTypeList()
72 typeSequence = typeSequence.substring(type.length()); in parseDexTypeList()
88 String type = null; in firstDexTypeFromList() local
98 type = typeList.substring(0, 1); in firstDexTypeFromList()
100 type = typeList.substring(0, typeList.indexOf(";") + 1); in firstDexTypeFromList()
105 return dexDimension + type; in firstDexTypeFromList()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DSmallStructsTest.java74 Class<?> getUnwrappedClassForType(String type) { in getUnwrappedClassForType() argument
75 if (type.equals("i8")) { in getUnwrappedClassForType()
77 } else if (type.equals("i16")) { in getUnwrappedClassForType()
79 } else if (type.equals("i32")) { in getUnwrappedClassForType()
81 } else if (type.equals("i64")) { in getUnwrappedClassForType()
83 } else if (type.equals("f32")) { in getUnwrappedClassForType()
85 } else if (type.equals("f64")) { in getUnwrappedClassForType()
87 } else if (type.equals("v128")) { in getUnwrappedClassForType()
90 fail("Unknown type tag: " + type); in getUnwrappedClassForType()
98 Method getInitialValueSetter(String type) throws Exception { in getInitialValueSetter() argument
[all …]
/cts/tests/tests/drm/src/android/drm/cts/
DDrmEventTest.java149 int type = DrmInfoEvent.TYPE_RIGHTS_INSTALLED; in createDrmEvent() local
151 return new DrmInfoEvent(id, type, msg); in createDrmEvent()
153 return new DrmInfoEvent(id, type, msg, attributes); in createDrmEvent()
156 int type = DrmErrorEvent.TYPE_NOT_SUPPORTED; in createDrmEvent() local
158 return new DrmErrorEvent(id, type, msg); in createDrmEvent()
160 return new DrmErrorEvent(id, type, msg, attributes); in createDrmEvent()
194 private static void checkValidInfoType(int type) throws Exception { in checkValidInfoType() argument
195 DrmInfoEvent infoEvent = new DrmInfoEvent(0, type, ""); in checkValidInfoType()
196 assertEquals(infoEvent.getType(), type); in checkValidInfoType() local
199 private static void checkValidErrorType(int type) throws Exception { in checkValidErrorType() argument
[all …]
DDrmInfoRequestTest.java115 private static void checkGetInfoType(int type) throws Exception { in checkGetInfoType() argument
116 DrmInfoRequest request = new DrmInfoRequest(type, DEFAULT_MIME); in checkGetInfoType()
117 assertEquals(request.getInfoType(), type); in checkGetInfoType() local
120 private static void checkInvalidInfoType(int type) throws Exception { in checkInvalidInfoType() argument
122 DrmInfoRequest request = new DrmInfoRequest(type, DEFAULT_MIME); in checkInvalidInfoType()
123 fail("Info type " + type + " was accepted for DrmInfoRequest"); in checkInvalidInfoType()
129 private static void checkValidInfoType(int type) throws Exception { in checkValidInfoType() argument
130 DrmInfoRequest request = new DrmInfoRequest(type, DEFAULT_MIME); in checkValidInfoType()
/cts/tests/framework/base/windowmanager/alertwindowappsdk25/src/android/server/wm/alertwindowappsdk25/
DAlertWindowTestBaseActivity.java36 for (int type : alertWindowTypes) { in createAllAlertWindows()
38 createAlertWindow(type, windowName); in createAllAlertWindows()
40 Log.e("AlertWindowTestBaseActivity", "Can't create type=" + type, e); in createAllAlertWindows()
45 protected void createAlertWindow(int type) { in createAlertWindow() argument
46 createAlertWindow(type, getPackageName()); in createAlertWindow()
49 protected void createAlertWindow(int type, String windowName) { in createAlertWindow() argument
50 if (!isSystemAlertWindowType(type)) { in createAlertWindow()
51 throw new IllegalArgumentException("Well...you are not an alert window type=" + type); in createAlertWindow()
59 type, FLAG_NOT_FOCUSABLE | FLAG_WATCH_OUTSIDE_TOUCH | FLAG_NOT_TOUCHABLE); in createAlertWindow()
66 view.setText(windowName + " type=" + type); in createAlertWindow()
[all …]
/cts/tests/netlegacy22.api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java90 private List<InetAddress> getIpAddresses(int type) { in getIpAddresses() argument
95 if (ni != null && ni.getType() == type) { in getIpAddresses()
107 private boolean hasIPv4(int type) { in hasIPv4() argument
108 for (InetAddress address : getIpAddresses(type)) { in hasIPv4()
116 private void checkSourceAddress(String addrString, int type) throws Exception { in checkSourceAddress() argument
122 if (!hasIPv4(type)) { in checkSourceAddress()
123 Log.d(TAG, "Not checking source address on network type " + type + ", no IPv4 address"); in checkSourceAddress()
135 "Local address " + localAddress + " not assigned to any network of type " + type, in checkSourceAddress()
136 getIpAddresses(type).contains(localAddress)); in checkSourceAddress()
138 Log.d(TAG, "Source address " + localAddress + " found on network type " + type); in checkSourceAddress()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DDeviceReportLog.java75 public void addValue(String source, String message, double value, ResultType type, in addValue() argument
77 super.addValue(source, message, value, type, unit); in addValue()
89 public void addValue(String message, double value, ResultType type, ResultUnit unit) { in addValue() argument
90 super.addValue(message, value, type, unit); in addValue()
102 public void addValues(String source, String message, double[] values, ResultType type, in addValues() argument
104 super.addValues(source, message, values, type, unit); in addValues()
116 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument
117 super.addValues(message, values, type, unit); in addValues()
129 public void addValue(String message, int value, ResultType type, ResultUnit unit) { in addValue() argument
141 public void addValue(String message, long value, ResultType type, ResultUnit unit) { in addValue() argument
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DDeviceReportLog.java75 public void addValue(String source, String message, double value, ResultType type, in addValue() argument
77 super.addValue(source, message, value, type, unit); in addValue()
89 public void addValue(String message, double value, ResultType type, ResultUnit unit) { in addValue() argument
90 super.addValue(message, value, type, unit); in addValue()
102 public void addValues(String source, String message, double[] values, ResultType type, in addValues() argument
104 super.addValues(source, message, values, type, unit); in addValues()
116 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument
117 super.addValues(message, values, type, unit); in addValues()
129 public void addValue(String message, int value, ResultType type, ResultUnit unit) { in addValue() argument
141 public void addValue(String message, long value, ResultType type, ResultUnit unit) { in addValue() argument
[all …]
/cts/tests/tests/net/src/android/net/rtp/cts/
DAudioCodecTest.java23 private void assertEquals(AudioCodec codec, int type, String rtpmap, String fmtp) { in assertEquals() argument
24 if (type >= 0) { in assertEquals()
25 assertEquals(codec.type, type); in assertEquals()
27 assertTrue(codec.type >= 96 && codec.type <= 127); in assertEquals()
40 assertFalse(AudioCodec.AMR.type == AudioCodec.GSM_EFR.type); in testConstants()
69 assertFalse(types[codec.type]); in testGetCodecs()
70 types[codec.type] = true; in testGetCodecs()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java60 int type; in skipCurrentTag() local
61 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT in skipCurrentTag()
62 && (type != XmlPullParser.END_TAG in skipCurrentTag()
79 int type; in getAttributeSet() local
80 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet()
81 && type != XmlPullParser.START_TAG) { in getAttributeSet()
88 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet()
89 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttributeSet()
90 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttributeSet()
96 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet()
[all …]
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/
DDeviceEvent.java63 @NonNull DeviceEventType type) { in newDeviceEventIntent() argument
68 .putExtra(EXTRA_EVENT_TYPE, type.name()) in newDeviceEventIntent()
90 final DeviceEventType type = DeviceEventType.valueOf(typeString); in newEvent() local
97 return new DeviceEvent(sender, type, intent.getLongExtra(EXTRA_EVENT_TIME, 0L)); in newEvent()
134 public static Predicate<DeviceEvent> isType(DeviceEventType type) { in isType() argument
135 return e -> e.type == type; in isType()
159 public final DeviceEventType type; field in DeviceEvent
166 private DeviceEvent(String sender, DeviceEventType type, long time) { in DeviceEvent() argument
168 this.type = type; in DeviceEvent()
174 return "Event{ time:" + time + " type:" + type + " sender:" + sender + " }"; in toString()
[all …]
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DFeatureDeviceInfo.java50 String type = "other"; in collectDeviceInfo() local
52 type = "sdk"; in collectDeviceInfo()
58 addFeature(store, featureInfo.name, type, true, version); in collectDeviceInfo()
60 addFeature(store, featureInfo.name, type, true); in collectDeviceInfo()
101 String type, in addFeature() argument
105 store.addResult("type", type); in addFeature()
113 String type, in addFeature() argument
118 store.addResult("type", type); in addFeature()
/cts/suite/audio_quality/lib/src/
DGenericFactory.cpp26 TaskGeneric* GenericFactory::createTask(TaskGeneric::TaskType type) in createTask() argument
29 switch(type) { in createTask()
57 task = new TaskGeneric(type); in createTask()
66 LOGE("GenericFactory::createTask unsupported type %d", type); in createTask()
69 LOGD("GenericFactory::createTask 0x%x, type %d", task, type); in createTask()
DSettings.cpp37 void Settings::addSetting(SettingType type, const android::String8& setting) in addSetting() argument
39 mSettings[type] = setting; in addSetting()
41 const android::String8& Settings::getSetting(SettingType type) in getSetting() argument
43 return mSettings[type]; in getSetting()
DSignalProcessingImpl.cpp180 int32_t type; in run() local
181 if (!read((char*)&type, sizeof(type))) { in run()
193 *buffer = new Buffer(dataLen, dataLen, (type == EAudioStereo) ? true: false); in run()
201 if (((type == EAudioStereo) && isStereo) || ((type == EAudioMono) && !isStereo)) { in run()
204 LOGE("%d-th output wrong type %d stereo: %d", i, type, isStereo); in run()
222 if ((type == EValue64Int) || (type == EValueDouble)) { in run()
227 if (type == EValue64Int) { in run()
233 LOGE("wrong type %d", type); in run()
/cts/tools/release-parser/tests/resources/
DHelloActivity.apk.pb.txt2 type: APK
86 type: FILE
95 type: FILE
104 type: FILE
113 type: FILE
122 type: FILE
131 type: FILE
140 type: FILE
/cts/tests/tests/util/src/android/util/cts/
DTypedValueTest.java74 tv1.type = 5; in testSetTo()
83 assertEquals(5, tv2.type); in testSetTo()
138 tv.type = 5; in testToString()
141 tv.type = 3; in testToString()
177 tv.type = 5; in testCoerceToString1()
181 tv.type = 3; in testCoerceToString1()
255 tv.type = TypedValue.TYPE_INT_COLOR_ARGB8; in testIsColorType()
257 tv.type = TypedValue.TYPE_INT_COLOR_RGB8; in testIsColorType()
259 tv.type = TypedValue.TYPE_INT_COLOR_ARGB4; in testIsColorType()
261 tv.type = TypedValue.TYPE_INT_COLOR_RGB4; in testIsColorType()
[all …]
/cts/tests/signature/lib/android/src/android/signature/cts/
DApiDocumentParser.java136 int type; in beginDocument() local
138 type = parser.next(); in beginDocument()
139 } while (type != XmlPullParser.START_TAG && type != XmlPullParser.END_DOCUMENT); in beginDocument()
141 if (type != XmlPullParser.START_TAG) { in beginDocument()
152 int type; in next() local
155 type = parser.next(); in next()
156 } while (type != XmlPullParser.START_TAG && type != XmlPullParser.END_DOCUMENT in next()
157 && type != XmlPullParser.END_TAG); in next()
159 if (type == XmlPullParser.END_DOCUMENT) { in next()
165 if (type == XmlPullParser.END_TAG) { in next()
/cts/tools/dasm/src/dasm/
DDasmCatchBuilder.java24 import com.android.dx.rop.type.Type;
83 CstType type; in add() local
85 type = CstType.OBJECT; in add()
87 type = CstType.intern(Type.internClassName(exception)); in add()
89 String s = type_branch.get(type); in add()
95 type_branch.put(type, branch); in add()
195 CstType type = keys.nextElement(); in build() local
196 String branch = uc.type_branch.get(type); in build()
201 CatchHandlerList.Entry chle = new CatchHandlerList.Entry(type, in build()
204 if (type.equals(CstType.OBJECT)) { in build()
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DApiClass.java243 private static boolean isGenericType(String type) { in isGenericType() argument
244 return type.length() == 1 && in isGenericType()
245 type.charAt(0) >= 'A' && in isGenericType()
246 type.charAt(0) <= 'Z'; in isGenericType()
252 private static boolean isArrayType(String type) { in isArrayType() argument
253 return type.endsWith("[]"); in isArrayType()
259 private static boolean isGenericArrayType(String type) { in isGenericArrayType() argument
260 return type.length() == 3 && isGenericType(type.substring(0, 1)) && isArrayType(type); in isGenericArrayType()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_CommonDataKinds_ImTest.java55 private void assertGetProtocolLabel(int type) { in assertGetProtocolLabel() argument
56 int res = Im.getProtocolLabelResource(type); in assertGetProtocolLabel()
60 assertEquals(label, Im.getProtocolLabel(mResources, type, "")); in assertGetProtocolLabel()
69 private void assertGetTypeLabel(int type) { in assertGetTypeLabel() argument
70 int res = Im.getTypeLabelResource(type); in assertGetTypeLabel()
74 assertEquals(label, Im.getTypeLabel(mResources, type, "")); in assertGetTypeLabel()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DAllocationCache.java77 public Allocation getOrCreateTyped(Type type, int usage) { in getOrCreateTyped() argument
79 checkNotNull("type", type); in getOrCreateTyped()
82 AllocationKey key = new AllocationKey(type, usage); in getOrCreateTyped()
90 "Cache HIT (%d): type = '%s', usage = '%x'", sDebugHits, type, usage)); in getOrCreateTyped()
97 "Cache MISS (%d): type = '%s', usage = '%x'", sDebugMisses, type, usage)); in getOrCreateTyped()
100 return Allocation.createTyped(mRS, type, usage); in getOrCreateTyped()
211 public AllocationKey(Type type, int usage) { in AllocationKey() argument
212 mType = type; in AllocationKey()
/cts/tests/tests/opengl/src/android/opengl/cts/
DOpenGLES20ActivityTwo.java52 public void setView(int type, int i, float[] vertexColors ) { in setView() argument
60 view = new OpenGLES20View(this, type, i, vertexColors, mLatch); in setView()
64 public void setView(int type, int i) { in setView() argument
66 setView(type, i, f); in setView()
99 public OpenGLES20View(Context context, int type, int index, float[] rgba, in OpenGLES20View() argument
103 if(type == Constants.COLOR) { in OpenGLES20View()
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp45 outMsg->header.type = msg.header.type; in sanitizeMessage()
48 switch(msg.header.type) { in sanitizeMessage()
141 static bool checkMessage(sp<InputChannel> server, sp<InputChannel> client, int type) { in checkMessage() argument
146 serverMsg.header.type = type; in checkMessage()
147 if (type == InputMessage::TYPE_MOTION) { in checkMessage()
162 if (serverMsg.header.type != clientMsg.header.type) { in checkMessage()
202 for (int type : types) { in main() local
203 bool success = checkMessage(server, client, type); in main()
205 ALOGE("Check message failed for type %i", type); in main()

12345678910>>...17