/cts/tools/signature-tools/src/signature/io/html/ |
D | ExecutableMemberComparator.java | 72 private String getTypeName(ITypeReference type) { in getTypeName() argument 73 if (type instanceof IClassReference) { in getTypeName() 74 return getTypeName(((IClassReference) type).getClassDefinition()); in getTypeName() 76 if (type instanceof ITypeVariableReference) { in getTypeName() 77 return getTypeName(((ITypeVariableReference) type) in getTypeName() 80 if (type instanceof IParameterizedType) { in getTypeName() 81 return getTypeName(((IParameterizedType) type).getRawType()); in getTypeName() 83 if (type instanceof IArrayType) { in getTypeName() 84 return getTypeName(((IArrayType) type).getComponentType()); in getTypeName() 86 if (type instanceof IPrimitiveType) { in getTypeName() [all …]
|
/cts/tests/src/android/graphics/drawable/cts/ |
D | DrawableTestUtils.java | 36 int type; in skipCurrentTag() local 37 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT in skipCurrentTag() 38 && (type != XmlPullParser.END_TAG in skipCurrentTag() 55 int type; in getAttributeSet() local 56 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet() 57 && type != XmlPullParser.START_TAG) { in getAttributeSet() 64 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet() 65 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttributeSet() 66 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttributeSet() 72 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet() [all …]
|
/cts/tests/tests/net/src/android/net/cts/ |
D | ConnectivityManagerTest.java | 74 mNetworks.put(n.type, n); in setUp() 119 for (int type = -1; type <= ConnectivityManager.MAX_NETWORK_TYPE+1; type++) { in testSetNetworkPreference() 120 mCm.setNetworkPreference(type); in testSetNetworkPreference() 121 NetworkConfig c = mNetworks.get(type); in testSetNetworkPreference() 134 assertTrue("We should have been able to switch prefered type " + type, in testSetNetworkPreference() 135 foundType == type); in testSetNetworkPreference() 137 assertTrue("We should not have been able to switch type " + type, in testSetNetworkPreference() 138 foundType != type); in testSetNetworkPreference() 154 for (int type = -1; type <= ConnectivityManager.MAX_NETWORK_TYPE+1; type++) { in testGetNetworkInfo() 155 if (isSupported(type)) { in testGetNetworkInfo() [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 | 139 private static void checkGetInfoType(int type) throws Exception { in checkGetInfoType() argument 140 DrmInfo info = new DrmInfo(type, DEFAULT_DATA, DEFAULT_MIME); in checkGetInfoType() 141 assertEquals(info.getInfoType(), type); in checkGetInfoType() local 144 private static void checkInvalidInfoType(int type) throws Exception { in checkInvalidInfoType() argument 146 DrmInfo info = new DrmInfo(type, DEFAULT_DATA, DEFAULT_MIME); in checkInvalidInfoType() 147 fail("Info type " + type + " was accepted for DrmInfo"); in checkInvalidInfoType() 153 private static void checkValidInfoType(int type) throws Exception { in checkValidInfoType() argument 154 DrmInfo info = new DrmInfo(type, DEFAULT_DATA, DEFAULT_MIME); in checkValidInfoType()
|
/cts/tools/signature-tools/src/signature/compare/model/subst/ |
D | ViewpointAdapter.java | 85 ITypeReference type = original; in substitutedTypeReference() local 86 if (type instanceof IClassReference) { in substitutedTypeReference() 89 } else if (type instanceof IPrimitiveType) { in substitutedTypeReference() 90 return type; in substitutedTypeReference() 91 } else if (type instanceof IArrayType) { in substitutedTypeReference() 92 return new ArrayTypeProjection((IArrayType) type, mappings); in substitutedTypeReference() 93 } else if (type instanceof IParameterizedType) { in substitutedTypeReference() 94 return new ParameterizedTypeProjection((IParameterizedType) type, in substitutedTypeReference() 96 } else if (type instanceof IWildcardType) { in substitutedTypeReference() 97 return new WildcardTypeProjection((IWildcardType) type, mappings); in substitutedTypeReference() [all …]
|
/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/tests/holo/src/android/holo/cts/ |
D | BitmapAssets.java | 52 public static boolean clearDirectory(int type) { in clearDirectory() argument 57 File dir = getBitmapDir(type); in clearDirectory() 72 public static File getBitmapDir(int type) { in getBitmapDir() argument 74 switch (type) { in getBitmapDir() 85 throw new IllegalArgumentException("Bad type: " + type); in getBitmapDir() 102 public static File getBitmapPath(String bitmapName, int type) { in getBitmapPath() argument 104 switch (type) { in getBitmapPath() 115 throw new IllegalArgumentException("Bad type: " + type); in getBitmapPath() 118 return new File(getBitmapDir(type), prefix + bitmapName + ".png"); in getBitmapPath() 121 public static String saveBitmap(Bitmap bitmap, String bitmapName, int type) throws IOException { in saveBitmap() argument [all …]
|
/cts/libs/commonutil/src/com/android/cts/util/ |
D | ReportLog.java | 46 public void printArray(String message, double[] values, ResultType type, in printArray() argument 48 doPrintArray(message, values, type, unit); in printArray() 54 public void printValue(String message, double value, ResultType type, in printValue() argument 57 doPrintArray(message, vals, type, unit); in printValue() 60 private void doPrintArray(String message, double[] values, ResultType type, in doPrintArray() argument 66 LOG_ELEM_SEPARATOR + type.getXmlString() + LOG_ELEM_SEPARATOR + in doPrintArray() 89 ResultType type, ResultUnit unit) { in printSummaryWithTarget() argument 90 mSummary = message + LOG_ELEM_SEPARATOR + target + LOG_ELEM_SEPARATOR + type.getXmlString() in printSummaryWithTarget() 93 if (type == ResultType.HIGHER_BETTER) { in printSummaryWithTarget() 95 } else if (type == ResultType.LOWER_BETTER) { in printSummaryWithTarget() [all …]
|
/cts/tools/signature-tools/src/signature/model/impl/ |
D | SigParameter.java | 28 private ITypeReference type; field in SigParameter 30 public SigParameter(ITypeReference type) { in SigParameter() argument 31 this.type = type; in SigParameter() 35 return type; in getType()
|
D | SigParameterizedType.java | 65 public static int hashCode(IParameterizedType type) { in hashCode() argument 68 result = prime * type.getRawType().hashCode(); in hashCode() 69 result = prime * result + type.getTypeArguments().hashCode(); in hashCode() 109 public static String toString(IParameterizedType type) { in toString() argument 111 if (type.getOwnerType() != null) { in toString() 112 builder.append(type.getOwnerType().toString()); in toString() 115 builder.append(type.getRawType()); in toString() 117 builder.append(ModelUtil.separate(type.getTypeArguments(), ", ")); in toString()
|
D | SigAnnotation.java | 31 private IClassReference type; field in SigAnnotation 38 return type; in getType() 41 public void setType(IClassReference type) { in setType() argument 42 this.type = type; in setType()
|
D | SigField.java | 32 private ITypeReference type = Uninitialized.unset(); field in SigField 53 return type; in getType() 56 public void setType(ITypeReference type) { in setType() argument 57 this.type = type; in setType()
|
/cts/suite/audio_quality/lib/src/ |
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 | 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 | 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/tests/tests/permission/src/android/permission/cts/ |
D | FileUtils.java | 77 public boolean isOfType(int type) { in isOfType() argument 78 if ((type & S_IFMT) != type) { in isOfType() 79 throw new IllegalArgumentException("Unknown type " + type); in isOfType() 81 return (mode & S_IFMT) == type; in isOfType()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | OpenGLES20ActivityTwo.java | 50 public void setView(int type, int i, float[] vertexColors ) { in setView() argument 51 view = new OpenGLES20View(this,type,i, vertexColors, mLatch); in setView() 55 public void setView(int type, int i) { in setView() argument 57 view = new OpenGLES20View(this, type, i, f, mLatch) ; in setView() 91 public OpenGLES20View(Context context, int type, int index, float[] rgba, in OpenGLES20View() argument 95 if(type == Constants.COLOR) { in OpenGLES20View()
|
/cts/tools/signature-tools/templates/ |
D | Common_meta.st | 3 <link type="text/css" rel="stylesheet" href="../styles.css" title="Stylesheet"/> 4 <link type="text/css" rel="stylesheet" href="styles.css" title="Stylesheet"/> 6 <link rel="stylesheet" type="text/css" href="http://code.google.com/android/assets/codesite/codesit… 7 <link rel="stylesheet" type="text/css" href="http://code.google.com/android/assets/codesite/semanti… 8 <link rel="stylesheet" type="text/css" href="http://code.google.com/android/assets/style.css"/>
|
/cts/tests/tests/provider/src/android/provider/cts/ |
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/suite/cts/deviceTests/browserbench/assets/octane/js/ |
D | jquery.js | 479 return jQuery.type(obj) === "function"; 483 return jQuery.type(obj) === "array"; 495 type: function( obj ) { 505 if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) { 676 var type = jQuery.type( array ); 678 …if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQue… 1007 type, 1011 type = jQuery.type( elem ); 1012 if ( type === "array" ) { 1015 } else if ( type === "function" ) { [all …]
|
/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/tests/SignatureTest/src/android/tests/sigtest/ |
D | SignatureTest.java | 92 public void notifyFailure(FAILURE_TYPE type, String name, String errorMessage) { in notifyFailure() argument 95 mErrorString.append(type.toString().toLowerCase()); in notifyFailure() 135 int type; in beginDocument() local 136 while ((type=parser.next()) != XmlPullParser.START_TAG in beginDocument() 137 && type != XmlPullParser.END_DOCUMENT) { } in beginDocument() 139 if (type != XmlPullParser.START_TAG) { in beginDocument() 158 int type; in start() local 160 type = XmlPullParser.START_DOCUMENT; in start() 161 while ((type=parser.next()) != XmlPullParser.START_TAG in start() 162 && type != XmlPullParser.END_DOCUMENT in start() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TableLayout_LayoutParamsTest.java | 144 int type; in getAttrs() local 145 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs() 146 && type != XmlPullParser.START_TAG) { in getAttrs() 153 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs() 154 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttrs() 155 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs() 161 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs() 162 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttrs() 163 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
|