/frameworks/wilhelm/tests/sandbox/ |
D | outputmix.c | 30 SLresult result; in main() local 31 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main() 32 assert(SL_RESULT_SUCCESS == result); in main() 35 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in main() 36 assert(SL_RESULT_SUCCESS == result); in main() 39 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in main() 40 assert(SL_RESULT_SUCCESS == result); in main() 43 result = (*engineEngine)->QueryNumSupportedInterfaces(engineEngine, SL_OBJECTID_OUTPUTMIX, in main() 45 assert(SL_RESULT_SUCCESS == result); in main() 50 result = (*engineEngine)->QuerySupportedInterfaces(engineEngine, SL_OBJECTID_OUTPUTMIX, i, in main() [all …]
|
D | dim.c | 36 SLresult result; in main() local 40 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main() 41 assert(SL_RESULT_SUCCESS == result); in main() 43 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in main() 44 assert(SL_RESULT_SUCCESS == result); in main() 45 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in main() 46 assert(SL_RESULT_SUCCESS == result); in main() 50 result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 0, NULL, NULL); in main() 51 assert(SL_RESULT_SUCCESS == result); in main() 55 result = (*outputMixObject)->GetInterface(outputMixObject, SL_IID_DYNAMICINTERFACEMANAGEMENT, in main() [all …]
|
D | object.c | 26 SLresult result; in main() local 31 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main() 32 assert(SL_RESULT_SUCCESS == result); in main() 33 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in main() 34 assert(SL_RESULT_SUCCESS == result); in main() 36 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in main() 37 assert(SL_RESULT_SUCCESS == result); in main() 53 result = (*engineEngine)->QueryNumSupportedInterfaces(engineEngine, objectID, NULL); in main() 54 assert(SL_RESULT_PARAMETER_INVALID == result); in main() 56 result = (*engineEngine)->QueryNumSupportedInterfaces(engineEngine, objectID, in main() [all …]
|
D | reverb.c | 192 SLresult result; in prefetch_callback() local 195 result = (*caller)->GetFillLevel(caller, &level); in prefetch_callback() 196 assert(SL_RESULT_SUCCESS == result); in prefetch_callback() 198 result = (*caller)->GetPrefetchStatus(caller, &status); in prefetch_callback() 199 assert(SL_RESULT_SUCCESS == result); in prefetch_callback() 224 SLresult result; in main() local 311 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main() 312 assert(SL_RESULT_SUCCESS == result); in main() 313 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in main() 314 assert(SL_RESULT_SUCCESS == result); in main() [all …]
|
D | multiplay.c | 63 static const char *result_to_string(SLresult result) in result_to_string() argument 66 if ( /* result >= 0 && */ result < sizeof(result_strings) / sizeof(result_strings[0])) in result_to_string() 67 return result_strings[result]; in result_to_string() 68 sprintf(buffer, "%d", (int) result); in result_to_string() 74 void check2(SLresult result, int line) in check2() argument 76 if (SL_RESULT_SUCCESS != result) { in check2() 77 fprintf(stderr, "error %s at line %d\n", result_to_string(result), line); in check2() 84 #define check(result) check2(result, __LINE__) argument 93 SLresult result; in prefetch_callback() local 98 result = (*caller)->GetFillLevel(caller, &level); in prefetch_callback() [all …]
|
D | xaplay.c | 96 XAresult result; in prefetchStatusCallback() local 97 result = (*caller)->GetFillLevel(caller, &level); in prefetchStatusCallback() 98 assert(XA_RESULT_SUCCESS == result); in prefetchStatusCallback() 100 result = (*caller)->GetPrefetchStatus(caller, &status); in prefetchStatusCallback() 101 assert(XA_RESULT_SUCCESS == result); in prefetchStatusCallback() 134 XAresult result; in playEventCallback() local 136 result = (*caller)->GetPosition(caller, &position); in playEventCallback() 137 assert(XA_RESULT_SUCCESS == result); in playEventCallback() 203 XAresult result; in bufferQueueCallback() local 206 result = (*caller)->Enqueue(caller, NULL, &packets[curPacket], in bufferQueueCallback() [all …]
|
D | engine.c | 27 SLresult result; in main() local 29 result = slQueryNumSupportedEngineInterfaces(&numSupportedInterfaces); in main() 30 assert(SL_RESULT_SUCCESS == result); in main() 31 result = slQueryNumSupportedEngineInterfaces(NULL); in main() 32 assert(SL_RESULT_PARAMETER_INVALID == result); in main() 45 result = slQuerySupportedEngineInterfaces(index, &interfaceID); in main() 47 assert(SL_RESULT_SUCCESS == result); in main() 53 assert(SL_RESULT_PARAMETER_INVALID == result); in main() 55 result = slQuerySupportedEngineInterfaces(index, NULL); in main() 56 assert(SL_RESULT_PARAMETER_INVALID == result); in main() [all …]
|
/frameworks/compile/mclinker/unittests/ |
D | LEB128Test.cpp | 48 leb128::ByteType *result; in TEST_F() local 51 result = buffer; in TEST_F() 52 size = leb128::encode<uint32_t>(result, 2); in TEST_F() 54 ASSERT_EQ(result, buffer + 1); in TEST_F() 57 result = buffer; in TEST_F() 58 size = leb128::encode<uint32_t>(result, 127); in TEST_F() 60 ASSERT_EQ(result, buffer + 1); in TEST_F() 63 result = buffer; in TEST_F() 64 size = leb128::encode<uint32_t>(result, 128); in TEST_F() 67 ASSERT_EQ(result, buffer + 2); in TEST_F() [all …]
|
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
D | motion_comp.cpp | 195 uint32 prev_pix, result, pix1, pix2, pix4; in eCreateAlign() local 210 result = (pix2 << 8) | pix1; in eCreateAlign() 217 result |= prev_pix; in eCreateAlign() 218 *((uint32*)out) = result; /* write 4 bytes */ in eCreateAlign() 220 result = pix4 >> 8; /* for the next loop */ in eCreateAlign() 230 result = *((uint16*)ref); in eCreateAlign() 237 result |= prev_pix; in eCreateAlign() 238 *((uint32*)out) = result; /* write 4 bytes */ in eCreateAlign() 240 result = pix4 >> 16; /* for the next loop */ in eCreateAlign() 250 result = *ref++; in eCreateAlign() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
D | SimulatedCommands.java | 109 public void getIccCardStatus(Message result) { in getIccCardStatus() argument 110 unimplemented(result); in getIccCardStatus() 114 public void supplyIccPin(String pin, Message result) { in supplyIccPin() argument 120 AsyncResult.forMessage(result, null, ex); in supplyIccPin() 121 result.sendToTarget(); in supplyIccPin() 131 if (result != null) { in supplyIccPin() 132 AsyncResult.forMessage(result, null, null); in supplyIccPin() 133 result.sendToTarget(); in supplyIccPin() 139 if (result != null) { in supplyIccPin() 151 AsyncResult.forMessage(result, null, ex); in supplyIccPin() [all …]
|
/frameworks/wilhelm/tests/mimeUri/ |
D | slesTestPlayUri2.cpp | 29 void ExitOnError( SLresult result ) in ExitOnError() argument 31 if (SL_RESULT_SUCCESS != result) { in ExitOnError() 32 fprintf(stdout, "%u error code encountered, exiting\n", result); in ExitOnError() 65 SLresult result; in TestPlayUri() local 89 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayUri() 90 ExitOnError(result); in TestPlayUri() 108 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 0, iidArray, required); in TestPlayUri() 109 ExitOnError(result); in TestPlayUri() 112 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestPlayUri() 113 ExitOnError(result); in TestPlayUri() [all …]
|
D | slesTestPlayStreamType.cpp | 36 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument 38 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc() 39 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc() 50 SLresult result; in TestStreamTypeConfiguration() local 76 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestStreamTypeConfiguration() 77 ExitOnError(result); in TestStreamTypeConfiguration() 89 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 0, iidArray, required); in TestStreamTypeConfiguration() 90 ExitOnError(result); in TestStreamTypeConfiguration() 93 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestStreamTypeConfiguration() 94 ExitOnError(result); in TestStreamTypeConfiguration() [all …]
|
D | slesTest_playStates.cpp | 36 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument 38 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc() 39 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc() 50 SLresult result; in TestPlayUri() local 74 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayUri() 75 ExitOnError(result); in TestPlayUri() 87 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 0, iidArray, required); in TestPlayUri() 88 ExitOnError(result); in TestPlayUri() 91 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestPlayUri() 92 ExitOnError(result); in TestPlayUri() [all …]
|
/frameworks/base/tools/layoutlib/bridge/src/libcore/icu/ |
D | ICU_Delegate.java | 181 /*package*/ static boolean initLocaleDataNative(String locale, LocaleData result) { in initLocaleDataNative() argument 184 result.firstDayOfWeek = Integer.valueOf(1); in initLocaleDataNative() 185 result.minimalDaysInFirstWeek = Integer.valueOf(1); in initLocaleDataNative() 188 result.amPm = new String[] { "AM", "PM" }; in initLocaleDataNative() 189 result.eras = new String[] { "BC", "AD" }; in initLocaleDataNative() 191 result.longMonthNames = new String[] { "January", "February", "March", "April", "May", in initLocaleDataNative() 193 result.shortMonthNames = new String[] { "Jan", "Feb", "Mar", "Apr", "May", in initLocaleDataNative() 195 result.longStandAloneMonthNames = result.longMonthNames; in initLocaleDataNative() 196 result.shortStandAloneMonthNames = result.shortMonthNames; in initLocaleDataNative() 200 result.longWeekdayNames = new String[] { in initLocaleDataNative() [all …]
|
/frameworks/wilhelm/tests/examples/ |
D | slesTestSendToPresetReverb.cpp | 39 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument 41 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc() 42 fprintf(stderr, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc() 56 SLresult result; in prefetch_callback() local 59 result = (*caller)->GetFillLevel(caller, &level); in prefetch_callback() 60 ExitOnError(result); in prefetch_callback() 62 result = (*caller)->GetPrefetchStatus(caller, &status); in prefetch_callback() 63 ExitOnError(result); in prefetch_callback() 76 SLresult result; in TestSendToPresetReverb() local 107 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestSendToPresetReverb() [all …]
|
D | slesTestEqFdPath.cpp | 38 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument 40 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc() 41 fprintf(stderr, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc() 57 SLresult result; in TestEQPathFromFD() local 85 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestEQPathFromFD() 86 ExitOnError(result); in TestEQPathFromFD() 98 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 1, iidArray, required); in TestEQPathFromFD() 99 ExitOnError(result); in TestEQPathFromFD() 102 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestEQPathFromFD() 103 ExitOnError(result); in TestEQPathFromFD() [all …]
|
D | slesTestEqOutputPath.cpp | 38 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument 40 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc() 41 fprintf(stderr, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc() 57 SLresult result; in TestEQPathFromFD() local 87 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestEQPathFromFD() 88 ExitOnError(result); in TestEQPathFromFD() 104 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 1, iidArray, required); in TestEQPathFromFD() 105 ExitOnError(result); in TestEQPathFromFD() 108 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestEQPathFromFD() 109 ExitOnError(result); in TestEQPathFromFD() [all …]
|
/frameworks/base/tools/aapt/ |
D | pseudolocalize.cpp | 111 String16 result = k_expansion_string; in pseudo_generate_expansion() local 112 const char16_t* s = result.string(); in pseudo_generate_expansion() 113 if (result.size() < length) { in pseudo_generate_expansion() 114 result += String16(" "); in pseudo_generate_expansion() 115 result += pseudo_generate_expansion(length - result.size()); in pseudo_generate_expansion() 119 for (unsigned int i = length + 1; i < result.size(); ++i) { in pseudo_generate_expansion() 125 result.remove(length + ext, 0); in pseudo_generate_expansion() 127 return result; in pseudo_generate_expansion() 140 String16 result; in pseudolocalize_string() local 147 result += String16("\\"); in pseudolocalize_string() [all …]
|
/frameworks/wilhelm/tests/listening/ |
D | slesTest_playMuteSolo.cpp | 43 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument 45 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc() 46 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc() 72 SLresult result; in prefetch_callback() local 75 result = (*caller)->GetFillLevel(caller, &level); in prefetch_callback() 76 assert(SL_RESULT_SUCCESS == result); in prefetch_callback() 78 result = (*caller)->GetPrefetchStatus(caller, &status); in prefetch_callback() 79 assert(SL_RESULT_SUCCESS == result); in prefetch_callback() 165 SLresult result; in TestPlayUri() local 189 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayUri() [all …]
|
/frameworks/wilhelm/src/ |
D | trace.h | 35 #define SL_ENTER_GLOBAL SLresult result; 36 #define SL_LEAVE_GLOBAL return result; 37 #define SL_ENTER_INTERFACE SLresult result; 38 #define SL_LEAVE_INTERFACE return result; 42 #define XA_ENTER_GLOBAL XAresult result; 43 #define XA_LEAVE_GLOBAL return result; 44 #define XA_ENTER_INTERFACE XAresult result; 45 #define XA_LEAVE_INTERFACE return result; 50 extern void slTraceLeaveGlobal(const char *function, SLresult result); 52 extern void slTraceLeaveInterface(const char *function, SLresult result); [all …]
|
/frameworks/base/opengl/java/android/opengl/ |
D | EGLLogWrapper.java | 55 boolean result = mEgl10.eglChooseConfig(display, attrib_list, configs, in eglChooseConfig() 59 returns(result); in eglChooseConfig() 61 return result; in eglChooseConfig() 72 boolean result = mEgl10.eglCopyBuffers(display, surface, native_pixmap); in eglCopyBuffers() 73 returns(result); in eglCopyBuffers() 75 return result; in eglCopyBuffers() 87 EGLContext result = mEgl10.eglCreateContext(display, config, in eglCreateContext() local 89 returns(result); in eglCreateContext() 91 return result; in eglCreateContext() 102 EGLSurface result = mEgl10.eglCreatePbufferSurface(display, config, in eglCreatePbufferSurface() local [all …]
|
/frameworks/native/libs/ui/ |
D | Rect.cpp | 73 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +() local 74 return result; in operator +() 78 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -() local 79 return result; in operator -() 82 bool Rect::intersect(const Rect& with, Rect* result) const { in intersect() 83 result->left = max(left, with.left); in intersect() 84 result->top = max(top, with.top); in intersect() 85 result->right = min(right, with.right); in intersect() 86 result->bottom = min(bottom, with.bottom); in intersect() 87 return !(result->isEmpty()); in intersect() [all …]
|
/frameworks/base/rs/java/android/renderscript/ |
D | Int4.java | 72 Int4 result = new Int4(); in add() local 73 result.x = a.x + b.x; in add() 74 result.y = a.y + b.y; in add() 75 result.z = a.z + b.z; in add() 76 result.w = a.w + b.w; in add() 78 return result; in add() 101 Int4 result = new Int4(); in add() local 102 result.x = a.x + b; in add() 103 result.y = a.y + b; in add() 104 result.z = a.z + b; in add() [all …]
|
D | Short4.java | 72 Short4 result = new Short4(); in add() local 73 result.x = (short)(a.x + b.x); in add() 74 result.y = (short)(a.y + b.y); in add() 75 result.z = (short)(a.z + b.z); in add() 76 result.w = (short)(a.w + b.w); in add() 78 return result; in add() 101 Short4 result = new Short4(); in add() local 102 result.x = (short)(a.x + b); in add() 103 result.y = (short)(a.y + b); in add() 104 result.z = (short)(a.z + b); in add() [all …]
|
D | Long4.java | 72 Long4 result = new Long4(); in add() local 73 result.x = a.x + b.x; in add() 74 result.y = a.y + b.y; in add() 75 result.z = a.z + b.z; in add() 76 result.w = a.w + b.w; in add() 78 return result; in add() 101 Long4 result = new Long4(); in add() local 102 result.x = a.x + b; in add() 103 result.y = a.y + b; in add() 104 result.z = a.z + b; in add() [all …]
|