/cts/tests/signature/src/android/signature/cts/ |
D | DexMember.java | 26 protected DexMember(String className, String name, String type) { in DexMember() argument 29 mType = type; in DexMember() 55 protected static String dexToJavaType(String type) { in dexToJavaType() argument 57 while (type.startsWith("[")) { in dexToJavaType() 59 type = type.substring(1); in dexToJavaType() 63 if ("V".equals(type)) { in dexToJavaType() 65 } else if ("Z".equals(type)) { in dexToJavaType() 67 } else if ("B".equals(type)) { in dexToJavaType() 69 } else if ("C".equals(type)) { in dexToJavaType() 71 } else if ("S".equals(type)) { in dexToJavaType() [all …]
|
D | DexMethod.java | 70 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()
|
D | ApiDocumentParser.java | 136 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/tests/tests/renderscript/src/android/renderscript/cts/ |
D | SmallStructsTest.java | 74 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/framework/base/windowmanager/alertwindowappsdk25/src/android/server/wm/alertwindowappsdk25/ |
D | AlertWindowTestBaseActivity.java | 36 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/tests/drm/src/android/drm/cts/ |
D | DrmEventTest.java | 149 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 …]
|
D | DrmInfoRequestTest.java | 115 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()
|
D | DrmInfoTest.java | 140 private static void checkGetInfoType(int type) throws Exception { in checkGetInfoType() argument 141 DrmInfo info = new DrmInfo(type, DEFAULT_DATA, DEFAULT_MIME); in checkGetInfoType() 142 assertEquals(info.getInfoType(), type); in checkGetInfoType() local 145 private static void checkInvalidInfoType(int type) throws Exception { in checkInvalidInfoType() argument 147 DrmInfo info = new DrmInfo(type, DEFAULT_DATA, DEFAULT_MIME); in checkInvalidInfoType() 148 fail("Info type " + type + " was accepted for DrmInfo"); in checkInvalidInfoType() 154 private static void checkValidInfoType(int type) throws Exception { in checkValidInfoType() argument 155 DrmInfo info = new DrmInfo(type, DEFAULT_DATA, DEFAULT_MIME); in checkValidInfoType()
|
/cts/tests/tests/net/src/android/net/rtp/cts/ |
D | AudioCodecTest.java | 23 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/netlegacy22.api/src/android/net/cts/legacy/api22/ |
D | ConnectivityManagerLegacyTest.java | 91 private List<InetAddress> getIpAddresses(int type) { in getIpAddresses() argument 96 if (ni != null && ni.getType() == type) { in getIpAddresses() 108 private boolean hasIPv4(int type) { in hasIPv4() argument 109 for (InetAddress address : getIpAddresses(type)) { in hasIPv4() 117 private void checkSourceAddress(String addrString, int type) throws Exception { in checkSourceAddress() argument 123 if (!hasIPv4(type)) { in checkSourceAddress() 124 Log.d(TAG, "Not checking source address on network type " + type + ", no IPv4 address"); in checkSourceAddress() 136 "Local address " + localAddress + " not assigned to any network of type " + type, in checkSourceAddress() 137 getIpAddresses(type).contains(localAddress)); in checkSourceAddress() 139 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/ |
D | DeviceReportLog.java | 71 public void addValue(String source, String message, double value, ResultType type, in addValue() argument 73 super.addValue(source, message, value, type, unit); in addValue() 85 public void addValue(String message, double value, ResultType type, ResultUnit unit) { in addValue() argument 86 super.addValue(message, value, type, unit); in addValue() 98 public void addValues(String source, String message, double[] values, ResultType type, in addValues() argument 100 super.addValues(source, message, values, type, unit); in addValues() 112 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument 113 super.addValues(message, values, type, unit); in addValues() 125 public void addValue(String message, int value, ResultType type, ResultUnit unit) { in addValue() argument 137 public void addValue(String message, long value, ResultType type, ResultUnit unit) { in addValue() argument [all …]
|
/cts/suite/audio_quality/lib/src/ |
D | Settings.cpp | 37 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()
|
D | GenericFactory.cpp | 26 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()
|
D | SignalProcessingImpl.cpp | 180 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/hostsidetests/api/src/com/android/cts/api/ |
D | ApprovedApis.java | 163 TypeInfo type = param.type(); in definedMethodFrom() local 164 TypeInfo typeParameterType = def.getTypeParameter(type.qualifiedTypeName()); in definedMethodFrom() 169 typeName = "java.lang.Object" + type.dimension(); in definedMethodFrom() 171 typeName = bounds.get(0).qualifiedTypeName() + type.dimension(); in definedMethodFrom() 174 typeName = type.qualifiedTypeName() + type.dimension(); in definedMethodFrom() 184 TypeInfo type = def.returnType(); in definedMethodFrom() local 185 TypeInfo typeParameterType = def.getTypeParameter(type.qualifiedTypeName()); in definedMethodFrom() 189 sb.append("java.lang.Object" + type.dimension()); in definedMethodFrom() 191 sb.append(bounds.get(0).qualifiedTypeName() + type.dimension()); in definedMethodFrom() 194 sb.append(type.qualifiedTypeName() + type.dimension()); in definedMethodFrom() [all …]
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ |
D | DeviceEvent.java | 62 @NonNull final DeviceEventType type) { in newDeviceEventIntent() argument 67 .putExtra(EXTRA_EVENT_TYPE, type.name()) in newDeviceEventIntent() 89 final DeviceEventType type = DeviceEventType.valueOf(typeString); in newEvent() local 96 return new DeviceEvent(sender, type, intent.getLongExtra(EXTRA_EVENT_TIME, 0L)); in newEvent() 133 public static Predicate<DeviceEvent> isType(final DeviceEventType type) { in isType() argument 134 return e -> e.type == type; in isType() 158 public final DeviceEventType type; field in DeviceEvent 165 private DeviceEvent(final String sender, final DeviceEventType type, final long time) { in DeviceEvent() argument 167 this.type = type; in DeviceEvent() 173 return "Event{ time:" + time + " type:" + type + " sender:" + sender + " }"; in toString() [all …]
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | FeatureDeviceInfo.java | 50 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/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_CommonDataKinds_ImTest.java | 55 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/tests/opengl/src/android/opengl/cts/ |
D | OpenGLES20ActivityTwo.java | 52 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()
|
D | OpenGLES20NativeActivityTwo.java | 53 public void setView(int type, int i, float[] vertexColors ) { in setView() argument 61 view = new OpenGLES20View(this,type,i, vertexColors, mLatch); in setView() 65 public void setView(int type, int i) { in setView() argument 110 public OpenGLES20View(Context context, int type, int index, float[] rgba, in OpenGLES20View() argument 114 if(type == Constants.COLOR) { in OpenGLES20View()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | ApiClass.java | 225 private static boolean isGenericType(String type) { in isGenericType() argument 226 return type.length() == 1 && in isGenericType() 227 type.charAt(0) >= 'A' && in isGenericType() 228 type.charAt(0) <= 'Z'; in isGenericType() 234 private static boolean isArrayType(String type) { in isArrayType() argument 235 return type.endsWith("[]"); in isArrayType() 241 private static boolean isGenericArrayType(String type) { in isGenericArrayType() argument 242 return type.length() == 3 && isGenericType(type.substring(0, 1)) && isArrayType(type); in isGenericArrayType()
|
/cts/tests/camera/src/android/hardware/camera2/cts/rs/ |
D | AllocationCache.java | 77 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/permission/src/android/permission/cts/ |
D | FileUtils.java | 84 public boolean isOfType(int type) { in isOfType() argument 85 if ((type & S_IFMT) != type) { in isOfType() 86 throw new IllegalArgumentException("Unknown type " + type); in isOfType() 88 return (mode & S_IFMT) == type; in isOfType()
|
/cts/tools/dasm/src/dasm/ |
D | DasmCatchBuilder.java | 24 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/hostsidetests/security/securityPatch/CVE-2017-0508/ |
D | poc.c | 71 __u32 type; member 90 #define DRM_IOR(nr, type) _IOR(DRM_IOCTL_BASE, nr, type) argument 91 #define DRM_IOW(nr, type) _IOW(DRM_IOCTL_BASE, nr, type) argument 92 #define DRM_IOWR(nr, type) _IOWR(DRM_IOCTL_BASE, nr, type) argument
|