/cts/tests/tests/content/src/android/content/res/cts/ |
D | ConfigTest.java | 17 package android.content.res.cts; 23 import android.content.res.AssetManager; 24 import android.content.res.Configuration; 25 import android.content.res.Resources; 26 import android.content.res.TypedArray; 27 import android.content.res.Resources.NotFoundException; 58 private static void checkValue(final Resources res, final int resId, in checkValue() argument 61 final String actual = res.getString(resId); in checkValue() 74 private static void checkValue(final Resources res, final int resId, in checkValue() argument 76 final Resources.Theme theme = res.newTheme(); in checkValue() [all …]
|
D | ResourceNameTest.java | 17 package android.content.res.cts; 19 import android.content.res.Resources; 29 final Resources res = mContext.getResources(); in testGetResourceName() local 31 final String fullName = res.getResourceName(R.configVarying.simple); in testGetResourceName() 34 final String packageName = res.getResourcePackageName(R.configVarying.simple); in testGetResourceName() 37 final String typeName = res.getResourceTypeName(R.configVarying.simple); in testGetResourceName() 40 final String entryName = res.getResourceEntryName(R.configVarying.simple); in testGetResourceName() 46 final Resources res = mContext.getResources(); in testGetResourceIdentifier() local 47 int resid = res.getIdentifier( in testGetResourceIdentifier() 52 resid = res.getIdentifier("configVarying/simple", null, in testGetResourceIdentifier() [all …]
|
D | ArrayTest.java | 17 package android.content.res.cts; 19 import android.content.res.Resources; 34 private void checkEntry(final int resid, final int index, final Object res, in checkEntry() argument 37 + " at index " + index, expected, res); in checkEntry() 41 final String[] res = mResources.getStringArray(resid); in checkStringArray() local 42 assertEquals(res.length, expected.length); in checkStringArray() 44 checkEntry(resid, i, res[i], expected[i]); in checkStringArray() 49 final CharSequence[] res = mResources.getTextArray(resid); in checkTextArray() local 50 assertEquals(res.length, expected.length); in checkTextArray() 52 checkEntry(resid, i, res[i], expected[i]); in checkTextArray() [all …]
|
D | PluralResourcesTest.java | 17 package android.content.res.cts; 22 import android.content.res.Configuration; 23 import android.content.res.Resources; 52 final Resources res = resourcesForLanguage("en"); in testPlurals() local 54 cs = res.getQuantityText(R.plurals.plurals_test, 0); in testPlurals() 60 cs = res.getQuantityText(R.plurals.plurals_test, 1); in testPlurals() 66 cs = res.getQuantityText(R.plurals.plurals_test, 2); in testPlurals() 69 cs = res.getQuantityText(R.plurals.plurals_test, 5); in testPlurals() 72 cs = res.getQuantityText(R.plurals.plurals_test, 500); in testPlurals() 79 final Resources res = resourcesForLanguage("cs"); in testCzech() local [all …]
|
D | PrivateAttributeTest.java | 17 package android.content.res.cts; 19 import android.content.res.Resources; 32 final Resources res = getContext().getResources(); in testNoAttributesAfterLastPublicAttribute() local 36 lastPublicName = res.getResourceEntryName(sLastPublicAttr); in testNoAttributesAfterLastPublicAttribute() 45 final String name = res.getResourceEntryName(currentAttr); in testNoAttributesAfterLastPublicAttribute()
|
D | ColorStateListTest.java | 16 package android.content.res.cts; 23 import android.content.res.ColorStateList; 24 import android.content.res.Resources; 25 import android.content.res.Resources.NotFoundException; 50 final Resources res = getContext().getResources(); in testColorStateList() local 51 c = ColorStateList.createFromXml(res, res.getXml(xmlId)); in testColorStateList()
|
/cts/tests/tests/media/libaudiojni/ |
D | appendix-b-1-1-buffer-queue.cpp | 59 SLresult res; in BufferQueueCallback() local 62 res = (*queueItf)->Enqueue(queueItf, (void *)pCntxt->pData, in BufferQueueCallback() 64 ALOGE_IF(res != SL_RESULT_SUCCESS, "error: %s", android::getSLErrStr(res)); in BufferQueueCallback() 75 SLresult res; in TestPlayMusicBufferQueue() local 101 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void *)&EngineItf); in TestPlayMusicBufferQueue() 102 CheckErr(res); in TestPlayMusicBufferQueue() 129 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, interfaces, in TestPlayMusicBufferQueue() 131 CheckErr(res); in TestPlayMusicBufferQueue() 134 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE); in TestPlayMusicBufferQueue() 135 CheckErr(res); in TestPlayMusicBufferQueue() [all …]
|
D | appendix-b-1-2-recording.cpp | 53 SLresult res; in TestAudioRecording() local 72 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void *)&EngineItf); in TestAudioRecording() 73 CheckErr(res); in TestAudioRecording() 78 res = (*sl)->GetInterface(sl, SL_IID_AUDIOIODEVICECAPABILITIES, in TestAudioRecording() 83 res = (*AudioIODeviceCapabilitiesItf)->GetAvailableAudioInputs( in TestAudioRecording() 85 CheckErr(res); in TestAudioRecording() 89 res = (*AudioIODeviceCapabilitiesItf)->QueryAudioInputCapabilities( in TestAudioRecording() 91 CheckErr(res); in TestAudioRecording() 129 res = (*sl)->GetInterface(sl, SL_IID_DEVICEVOLUME, in TestAudioRecording() 134 res = (*devicevolumeItf)->SetVolume(devicevolumeItf, mic_deviceID, -300); in TestAudioRecording() [all …]
|
D | audio-track-native.cpp | 83 SLresult res; in open() local 86 res = (*mEngineObj)->GetInterface(mEngineObj, SL_IID_ENGINE, (void *)&mEngine); in open() 87 if (res != SL_RESULT_SUCCESS) break; in open() 90 res = (*mEngine)->CreateOutputMix( in open() 93 if (res != SL_RESULT_SUCCESS) break; in open() 96 res = (*mOutputMixObj)->Realize(mOutputMixObj, SL_BOOLEAN_FALSE /* async */); in open() 97 if (res != SL_RESULT_SUCCESS) break; in open() 137 res = (*mEngine)->CreateAudioPlayer(mEngine, &mPlayerObj, in open() 139 if (res != SL_RESULT_SUCCESS) break; in open() 141 res = (*mPlayerObj)->Realize(mPlayerObj, SL_BOOLEAN_FALSE /* async */); in open() [all …]
|
D | audio-record-native.cpp | 87 SLresult res; in open() local 90 res = (*mEngineObj)->GetInterface(mEngineObj, SL_IID_ENGINE, (void *)&mEngine); in open() 91 if (res != SL_RESULT_SUCCESS) break; in open() 142 res = (*mEngine)->CreateAudioRecorder(mEngine, &mRecordObj, in open() 144 if (res != SL_RESULT_SUCCESS) break; in open() 148 res = (*mRecordObj)->Realize(mRecordObj, SL_BOOLEAN_FALSE /* async */); in open() 149 if (res != SL_RESULT_SUCCESS) break; in open() 153 res = (*mRecordObj)->GetInterface(mRecordObj, SL_IID_RECORD, (void *)&mRecord); in open() 154 if (res != SL_RESULT_SUCCESS) break; in open() 158 res = (*mRecordObj)->GetInterface(mRecordObj, SL_IID_ANDROIDSIMPLEBUFFERQUEUE, in open() [all …]
|
/cts/tests/tests/mediastress/jni/ |
D | native-media-jni.cpp | 115 XAresult res = (*playerBQItf)->Enqueue(playerBQItf, NULL /*pBufferContext*/, in enqueueInitialBuffers() local 117 assert(XA_RESULT_SUCCESS == res); in enqueueInitialBuffers() 133 XAresult res; in AndroidBufferQueueCallback() local 169 res = (*caller)->Enqueue(caller, NULL /*pBufferContext*/, in AndroidBufferQueueCallback() 174 assert(XA_RESULT_SUCCESS == res); in AndroidBufferQueueCallback() 182 res = (*caller)->Enqueue(caller, (void *)&kEosBufferCntxt /*pBufferContext*/, in AndroidBufferQueueCallback() 187 assert(XA_RESULT_SUCCESS == res); in AndroidBufferQueueCallback() 214 XAresult res; in StreamChangeCallback() local 216 res = (*caller)->QueryStreamType(caller, streamIndex, &domain); in StreamChangeCallback() 217 assert(XA_RESULT_SUCCESS == res); in StreamChangeCallback() [all …]
|
/cts/tests/tests/nativemedia/xa/src/ |
D | XAObjectCreationTest.cpp | 38 bool IsOk(XAresult res) { in IsOk() argument 39 if (XA_RESULT_SUCCESS != res) { in IsOk() 40 fprintf(stderr, "IsOk failure: 0x%x, exiting\n", res); in IsOk() 50 XAresult res; member in XAObjectCreationTest 76 res = XA_RESULT_UNKNOWN_ERROR; in SetUp() 82 res = xaCreateEngine(&engineObj, 0, NULL, 0, NULL, NULL); in SetUp() 83 ASSERT_TRUE(IsOk(res)); in SetUp() 84 res = (*engineObj)->Realize(engineObj, XA_BOOLEAN_FALSE); in SetUp() 85 ASSERT_TRUE(IsOk(res)); in SetUp() 86 res = (*engineObj)->GetInterface(engineObj, XA_IID_ENGINE, &engineItf); in SetUp() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsContract_CommonDataKinds_ImTest.java | 19 import android.content.res.Resources; 56 int res = Im.getProtocolLabelResource(type); in assertGetProtocolLabel() local 57 assertTrue(res != 0); in assertGetProtocolLabel() 59 String label = mResources.getString(res); in assertGetProtocolLabel() 64 int res = Im.getProtocolLabelResource(Im.PROTOCOL_CUSTOM); in assertCustomProtocolLabel() local 65 assertTrue(res != 0); in assertCustomProtocolLabel() 70 int res = Im.getTypeLabelResource(type); in assertGetTypeLabel() local 71 assertTrue(res != 0); in assertGetTypeLabel() 73 String label = mResources.getString(res); in assertGetTypeLabel() 78 int res = Im.getTypeLabelResource(Im.TYPE_CUSTOM); in assertCustomTypeLabel() local [all …]
|
D | ContactsContract_CommonDataKinds_StructuredPostalTest.java | 19 import android.content.res.Resources; 42 int res = StructuredPostal.getTypeLabelResource(type); in assertGetTypeLabel() local 43 assertTrue(res != 0); in assertGetTypeLabel() 45 String label = mResources.getString(res); in assertGetTypeLabel() 50 int res = StructuredPostal.getTypeLabelResource(StructuredPostal.TYPE_CUSTOM); in assertCustomTypeLabel() local 51 assertTrue(res != 0); in assertCustomTypeLabel()
|
D | ContactsContract_CommonDataKinds_OrganizationTest.java | 19 import android.content.res.Resources; 42 int res = Organization.getTypeLabelResource(type); in assertGetTypeLabel() local 43 assertTrue(res != 0); in assertGetTypeLabel() 45 String label = mResources.getString(res); in assertGetTypeLabel() 50 int res = Organization.getTypeLabelResource(Im.TYPE_CUSTOM); in assertCustomTypeLabel() local 51 assertTrue(res != 0); in assertCustomTypeLabel()
|
D | ContactsContract_CommonDataKinds_SipAddressTest.java | 19 import android.content.res.Resources; 42 int res = SipAddress.getTypeLabelResource(type); in assertGetTypeLabel() local 43 assertTrue(res != 0); in assertGetTypeLabel() 45 String label = mResources.getString(res); in assertGetTypeLabel() 50 int res = SipAddress.getTypeLabelResource(SipAddress.TYPE_CUSTOM); in assertCustomTypeLabel() local 51 assertTrue(res != 0); in assertCustomTypeLabel()
|
D | ContactsContract_CommonDataKinds_EmailTest.java | 19 import android.content.res.Resources; 43 int res = Email.getTypeLabelResource(type); in assertGetTypeLabel() local 44 assertTrue(res != 0); in assertGetTypeLabel() 46 String label = mResources.getString(res); in assertGetTypeLabel() 51 int res = Email.getTypeLabelResource(Email.TYPE_CUSTOM); in assertCustomTypeLabel() local 52 assertTrue(res != 0); in assertCustomTypeLabel()
|
D | ContactsContract_CommonDataKinds_RelationTest.java | 19 import android.content.res.Resources; 53 int res = Relation.getTypeLabelResource(type); in assertGetTypeLabel() local 54 assertTrue(res != 0); in assertGetTypeLabel() 56 String label = mResources.getString(res); in assertGetTypeLabel() 61 int res = Relation.getTypeLabelResource(Relation.TYPE_CUSTOM); in assertCustomTypeLabel() local 62 assertTrue(res != 0); in assertCustomTypeLabel()
|
D | ContactsContract_CommonDataKinds_PhoneTest.java | 19 import android.content.res.Resources; 59 int res = Phone.getTypeLabelResource(type); in assertGetTypeLabel() local 60 assertTrue(res != 0); in assertGetTypeLabel() 62 String label = mResources.getString(res); in assertGetTypeLabel() 67 int res = Phone.getTypeLabelResource(Phone.TYPE_CUSTOM); in assertCustomTypeLabel() local 68 assertTrue(res != 0); in assertCustomTypeLabel()
|
/cts/tests/tests/net/jni/ |
D | NativeMultinetworkJni.c | 43 struct addrinfo *res = NULL; in Java_android_net_cts_MultinetworkApiTest_runGetaddrinfoCheck() local 46 int rval = android_getaddrinfofornetwork(handle, kHostname, NULL, NULL, &res); in Java_android_net_cts_MultinetworkApiTest_runGetaddrinfoCheck() 48 freeaddrinfo(res); in Java_android_net_cts_MultinetworkApiTest_runGetaddrinfoCheck() 123 struct addrinfo *res = NULL; in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() local 127 int rval = android_getaddrinfofornetwork(handle, kHostname, kPort, &kHints, &res); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 131 freeaddrinfo(res); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 136 int fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 139 res->ai_family, res->ai_socktype, res->ai_protocol, errno); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 140 freeaddrinfo(res); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 149 freeaddrinfo(res); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() [all …]
|
D | NativeDnsJni.c | 35 int res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns() local 36 ALOGD("getaddrinfo(www.google.com) gave res=%d (%s)", res, gai_strerror(res)); in Java_android_net_cts_DnsTest_testNativeDns() 37 if (res != 0) return JNI_FALSE; in Java_android_net_cts_DnsTest_testNativeDns() 69 res = getaddrinfo(node, service, NULL, &answer); in Java_android_net_cts_DnsTest_testNativeDns() 70 ALOGD("getaddrinfo(ipv6.google.com) gave res=%d", res); in Java_android_net_cts_DnsTest_testNativeDns() 71 if (res != 0) return JNI_FALSE; in Java_android_net_cts_DnsTest_testNativeDns() 117 res = getnameinfo((const struct sockaddr*)&sa4, sizeof(sa4), buf, sizeof(buf), NULL, 0, flags); in Java_android_net_cts_DnsTest_testNativeDns() 118 if (res != 0) { in Java_android_net_cts_DnsTest_testNativeDns() 119 ALOGD("getnameinfo(%s (GoogleDNS) ) gave error %d (%s)", GoogleDNSIpV4Address, res, in Java_android_net_cts_DnsTest_testNativeDns() 120 gai_strerror(res)); in Java_android_net_cts_DnsTest_testNativeDns() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | NumberDialingTest.java | 42 final Object[] res = new Object[1]; in testEndInPound() local 51 res[0] = request.getAddress(); in testEndInPound() 52 synchronized(res) { in testEndInPound() 53 res.notify(); in testEndInPound() 61 synchronized(res) { in testEndInPound() 62 res.wait(CS_WAIT_MILLIS); in testEndInPound() 64 assertEquals(address, res[0]); in testEndInPound()
|
/cts/tests/tests/nativemedia/sl/src/ |
D | SLObjectCreationTest.cpp | 50 bool IsOk(SLresult res) { in IsOk() argument 51 if (SL_RESULT_SUCCESS != res) { in IsOk() 52 const char *str = slesutResultToString(res); in IsOk() 55 fprintf(stderr, "IsOk failure: %s (0x%x), exiting\n", str, res); in IsOk() 65 SLresult res; member in SLObjectCreationTest 87 res = SL_RESULT_UNKNOWN_ERROR; in SetUp() 93 res = slCreateEngine(&engineObj, 0, NULL, 0, NULL, NULL); in SetUp() 94 ASSERT_TRUE(IsOk(res)); in SetUp() 95 res = (*engineObj)->Realize(engineObj, SL_BOOLEAN_FALSE); in SetUp() 96 ASSERT_TRUE(IsOk(res)); in SetUp() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | utils.rs | 10 uchar4 res = rsPackColorTo8888(f); 11 _RS_ASSERT(v.x == res.x); 12 _RS_ASSERT(v.y == res.y); 13 _RS_ASSERT(v.z == res.z); 14 _RS_ASSERT(v.w == res.w);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/ |
D | CtsTestHelper.java | 52 SelectableResolution res = resolutions.get(i); in getTestDetails() local 53 details += "Camera:" + res.cameraId + ", Resolution:" + res.width + 'x' + res.height in getTestDetails() 54 + ", Measured FOV = " + res.measuredFOV + '\n'; in getTestDetails()
|