Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 1400) sorted by relevance

12345678910>>...56

/frameworks/wilhelm/tests/sandbox/
Doutputmix.c30 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 …]
Ddim.c36 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 …]
Dobject.c26 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 …]
Dmultiplay.c63 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 …]
Dreverb.c192 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 …]
Dxaplay.c96 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 …]
Dengine.c27 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 …]
Dsrcsink.c26 SLresult result; in main() local
30 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main()
31 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()
35 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in main()
36 assert(SL_RESULT_SUCCESS == result); in main()
66 result = (*engineEngine)->CreateAudioPlayer(engineEngine, &playerObject, &audioSrc, in main()
68 assert(SL_RESULT_PARAMETER_INVALID == result); in main()
73 result = (*engineEngine)->CreateAudioPlayer(engineEngine, &playerObject, &audioSrc, in main()
[all …]
Durimime.c37 SLresult result; in main() local
41 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main()
42 assert(SL_RESULT_SUCCESS == result); in main()
44 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in main()
45 assert(SL_RESULT_SUCCESS == result); in main()
46 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in main()
47 assert(SL_RESULT_SUCCESS == result); in main()
51 result = (*engineEngine)->CreateOutputMix(engineEngine, &outputMixObject, 0, NULL, NULL); in main()
52 assert(SL_RESULT_SUCCESS == result); in main()
53 result = (*outputMixObject)->Realize(outputMixObject, SL_BOOLEAN_FALSE); in main()
[all …]
/frameworks/compile/mclinker/unittests/
DLEB128Test.cpp47 leb128::ByteType *result; in TEST_F() local
50 result = buffer; in TEST_F()
51 size = leb128::encode<uint32_t>(result, 2); in TEST_F()
53 ASSERT_EQ(result, buffer + 1); in TEST_F()
56 result = buffer; in TEST_F()
57 size = leb128::encode<uint32_t>(result, 127); in TEST_F()
59 ASSERT_EQ(result, buffer + 1); in TEST_F()
62 result = buffer; in TEST_F()
63 size = leb128::encode<uint32_t>(result, 128); in TEST_F()
66 ASSERT_EQ(result, buffer + 2); in TEST_F()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedCommands.java108 public void getIccCardStatus(Message result) { in getIccCardStatus() argument
109 unimplemented(result); in getIccCardStatus()
113 public void supplyIccPin(String pin, Message result) { in supplyIccPin() argument
119 AsyncResult.forMessage(result, null, ex); in supplyIccPin()
120 result.sendToTarget(); in supplyIccPin()
130 if (result != null) { in supplyIccPin()
131 AsyncResult.forMessage(result, null, null); in supplyIccPin()
132 result.sendToTarget(); in supplyIccPin()
138 if (result != null) { in supplyIccPin()
150 AsyncResult.forMessage(result, null, ex); in supplyIccPin()
[all …]
/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Dmotion_comp.cpp195 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/base/tools/layoutlib/bridge/src/libcore/icu/
DICU_Delegate.java167 /*package*/ static boolean initLocaleDataImpl(String locale, LocaleData result) { in initLocaleDataImpl() argument
170 result.firstDayOfWeek = Integer.valueOf(1); in initLocaleDataImpl()
171 result.minimalDaysInFirstWeek = Integer.valueOf(1); in initLocaleDataImpl()
174 result.amPm = new String[] { "AM", "PM" }; in initLocaleDataImpl()
175 result.eras = new String[] { "BC", "AD" }; in initLocaleDataImpl()
177 result.longMonthNames = new String[] { "January", "February", "March", "April", "May", in initLocaleDataImpl()
179 result.shortMonthNames = new String[] { "Jan", "Feb", "Mar", "Apr", "May", in initLocaleDataImpl()
181 result.longStandAloneMonthNames = result.longMonthNames; in initLocaleDataImpl()
182 result.shortStandAloneMonthNames = result.shortMonthNames; in initLocaleDataImpl()
184 result.longWeekdayNames = new String[] { in initLocaleDataImpl()
[all …]
/frameworks/wilhelm/tests/mimeUri/
DslesTestPlayUri2.cpp29 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 …]
DslesTestPlayStreamType.cpp36 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 …]
DslesTest_playStates.cpp36 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/wilhelm/tests/examples/
DslesTestSendToPresetReverb.cpp39 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 …]
DslesTestEqFdPath.cpp38 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 …]
DslesTestEqOutputPath.cpp38 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 …]
DslesTestBassBoostPath.cpp38 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()
52 SLresult result; in TestBassBoostPathFromFD() local
80 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestBassBoostPathFromFD()
81 ExitOnError(result); in TestBassBoostPathFromFD()
93 result = (*EngineItf)->CreateOutputMix(EngineItf, &outputMix, 1, iidArray, required); in TestBassBoostPathFromFD()
94 ExitOnError(result); in TestBassBoostPathFromFD()
97 result = (*outputMix)->Realize(outputMix, SL_BOOLEAN_FALSE); in TestBassBoostPathFromFD()
98 ExitOnError(result); in TestBassBoostPathFromFD()
[all …]
/frameworks/wilhelm/tests/listening/
DslesTest_playMuteSolo.cpp43 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 …]
DseekTorture.c36 SLresult result; in main() local
40 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in main()
41 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main()
42 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in main()
43 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main()
45 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineEngine); in main()
46 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main()
50 result = (*engineEngine)->CreateOutputMix(engineEngine, &outputmixObject, 0, NULL, NULL); in main()
51 ASSERT_EQ(SL_RESULT_SUCCESS, result); in main()
52 result = (*outputmixObject)->Realize(outputmixObject, SL_BOOLEAN_FALSE); in main()
[all …]
/frameworks/wilhelm/src/
Dtrace.h35 #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/core/java/android/text/format/
DFormatter.java52 float result = number; in formatFileSize() local
54 if (result > 900) { in formatFileSize()
56 result = result / 1024; in formatFileSize()
58 if (result > 900) { in formatFileSize()
60 result = result / 1024; in formatFileSize()
62 if (result > 900) { in formatFileSize()
64 result = result / 1024; in formatFileSize()
66 if (result > 900) { in formatFileSize()
68 result = result / 1024; in formatFileSize()
70 if (result > 900) { in formatFileSize()
[all …]
/frameworks/base/opengl/java/android/opengl/
DEGLLogWrapper.java55 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 …]

12345678910>>...56