Home
last modified time | relevance | path

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

12345678910>>...91

/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 …]
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 …]
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 …]
Dxaplay.c97 XAresult result; in prefetchStatusCallback() local
98 result = (*caller)->GetFillLevel(caller, &level); in prefetchStatusCallback()
99 assert(XA_RESULT_SUCCESS == result); in prefetchStatusCallback()
101 result = (*caller)->GetPrefetchStatus(caller, &status); in prefetchStatusCallback()
102 assert(XA_RESULT_SUCCESS == result); in prefetchStatusCallback()
135 XAresult result; in playEventCallback() local
137 result = (*caller)->GetPosition(caller, &position); in playEventCallback()
138 assert(XA_RESULT_SUCCESS == result); in playEventCallback()
204 XAresult result; in bufferQueueCallback() local
207 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 …]
/frameworks/compile/mclinker/unittests/
DLEB128Test.cpp43 leb128::ByteType* result; in TEST_F() local
46 result = buffer; in TEST_F()
47 size = leb128::encode<uint32_t>(result, 2); in TEST_F()
49 ASSERT_EQ(result, buffer + 1); in TEST_F()
52 result = buffer; in TEST_F()
53 size = leb128::encode<uint32_t>(result, 127); in TEST_F()
55 ASSERT_EQ(result, buffer + 1); in TEST_F()
58 result = buffer; in TEST_F()
59 size = leb128::encode<uint32_t>(result, 128); in TEST_F()
62 ASSERT_EQ(result, buffer + 2); in TEST_F()
[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/native/libs/gui/
DIGraphicBufferProducer.cpp75 status_t result =remote()->transact(REQUEST_BUFFER, data, &reply); in requestBuffer() local
76 if (result != NO_ERROR) { in requestBuffer()
77 return result; in requestBuffer()
82 result = reply.read(**buf); in requestBuffer()
83 if(result != NO_ERROR) { in requestBuffer()
85 return result; in requestBuffer()
88 result = reply.readInt32(); in requestBuffer()
89 return result; in requestBuffer()
97 status_t result = remote()->transact(SET_MAX_DEQUEUED_BUFFER_COUNT, in setMaxDequeuedBufferCount() local
99 if (result != NO_ERROR) { in setMaxDequeuedBufferCount()
[all …]
DIGraphicBufferConsumer.cpp74 status_t result = remote()->transact(ACQUIRE_BUFFER, data, &reply); in acquireBuffer() local
75 if (result != NO_ERROR) { in acquireBuffer()
76 return result; in acquireBuffer()
78 result = reply.read(*buffer); in acquireBuffer()
79 if (result != NO_ERROR) { in acquireBuffer()
80 return result; in acquireBuffer()
89 status_t result = remote()->transact(DETACH_BUFFER, data, &reply); in detachBuffer() local
90 if (result != NO_ERROR) { in detachBuffer()
91 return result; in detachBuffer()
93 result = reply.readInt32(); in detachBuffer()
[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 …]
/frameworks/base/tools/layoutlib/bridge/src/libcore/icu/
DICU_Delegate.java184 /*package*/ static boolean initLocaleDataNative(String locale, LocaleData result) { in initLocaleDataNative() argument
187 result.firstDayOfWeek = 1; in initLocaleDataNative()
188 result.minimalDaysInFirstWeek = 1; in initLocaleDataNative()
191 result.amPm = new String[] { "AM", "PM" }; in initLocaleDataNative()
192 result.eras = new String[] { "BC", "AD" }; in initLocaleDataNative()
194 result.longMonthNames = new String[] { "January", "February", "March", "April", "May", in initLocaleDataNative()
196 result.shortMonthNames = new String[] { "Jan", "Feb", "Mar", "Apr", "May", in initLocaleDataNative()
198 result.longStandAloneMonthNames = result.longMonthNames; in initLocaleDataNative()
199 result.shortStandAloneMonthNames = result.shortMonthNames; in initLocaleDataNative()
203 result.longWeekdayNames = new String[] { in initLocaleDataNative()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedCommands.java158 public void getIccCardStatus(Message result) { in getIccCardStatus() argument
160 resultSuccess(result, mIccCardStatus); in getIccCardStatus()
162 resultFail(result, null, new RuntimeException("IccCardStatus not set")); in getIccCardStatus()
167 public void supplyIccPin(String pin, Message result) { in supplyIccPin() argument
173 resultFail(result, null, ex); in supplyIccPin()
183 resultSuccess(result, null); in supplyIccPin()
188 if (result != null) { in supplyIccPin()
200 resultFail(result, null, ex); in supplyIccPin()
205 public void supplyIccPuk(String puk, String newPin, Message result) { in supplyIccPuk() argument
211 resultFail(result, null, ex); in supplyIccPuk()
[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
58 result = (*caller)->GetFillLevel(caller, &level); in prefetch_callback()
59 ExitOnError(result); in prefetch_callback()
61 result = (*caller)->GetPrefetchStatus(caller, &status); in prefetch_callback()
62 ExitOnError(result); in prefetch_callback()
75 SLresult result; in TestSendToPresetReverb() local
106 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 …]
DslesTestPlayFdPath.cpp40 void ExitOnErrorFunc( SLresult result , int line) in ExitOnErrorFunc() argument
42 if (SL_RESULT_SUCCESS != result) { in ExitOnErrorFunc()
43 fprintf(stdout, "%u error code encountered at line %d, exiting\n", result, line); in ExitOnErrorFunc()
55 SLresult result; in PrefetchEventCallback() local
56 result = (*caller)->GetFillLevel(caller, &level); in PrefetchEventCallback()
57 ExitOnError(result); in PrefetchEventCallback()
59 result = (*caller)->GetPrefetchStatus(caller, &status); in PrefetchEventCallback()
60 ExitOnError(result); in PrefetchEventCallback()
73 SLresult result; in TestPlayPathFromFD() local
96 result = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayPathFromFD()
[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 …]
/frameworks/native/libs/ui/
DRect.cpp76 const Rect result(left + rhs.x, top + rhs.y, right + rhs.x, bottom + rhs.y); in operator +() local
77 return result; in operator +()
81 const Rect result(left - rhs.x, top - rhs.y, right - rhs.x, bottom - rhs.y); in operator -() local
82 return result; in operator -()
85 bool Rect::intersect(const Rect& with, Rect* result) const { in intersect()
86 result->left = max(left, with.left); in intersect()
87 result->top = max(top, with.top); in intersect()
88 result->right = min(right, with.right); in intersect()
89 result->bottom = min(bottom, with.bottom); in intersect()
90 return !(result->isEmpty()); in intersect()
[all …]
DHdrCapabilities.cpp25 status_t result = parcel->writeInt32Vector(mSupportedHdrTypes); in writeToParcel() local
26 if (result != OK) { in writeToParcel()
27 return result; in writeToParcel()
29 result = parcel->writeFloat(mMaxLuminance); in writeToParcel()
30 if (result != OK) { in writeToParcel()
31 return result; in writeToParcel()
33 result = parcel->writeFloat(mMaxAverageLuminance); in writeToParcel()
34 if (result != OK) { in writeToParcel()
35 return result; in writeToParcel()
37 result = parcel->writeFloat(mMinLuminance); in writeToParcel()
[all …]
/frameworks/base/core/java/android/util/
DDebugUtils.java131 float result = number; in printSizeValue() local
133 if (result > 900) { in printSizeValue()
135 result = result / 1024; in printSizeValue()
137 if (result > 900) { in printSizeValue()
139 result = result / 1024; in printSizeValue()
141 if (result > 900) { in printSizeValue()
143 result = result / 1024; in printSizeValue()
145 if (result > 900) { in printSizeValue()
147 result = result / 1024; in printSizeValue()
149 if (result > 900) { in printSizeValue()
[all …]
/frameworks/base/core/java/android/accounts/
DAbstractAccountAuthenticator.java167 final Bundle result = AbstractAccountAuthenticator.this.addAccount( in addAccount() local
171 if (result != null) { in addAccount()
172 result.keySet(); // force it to be unparcelled in addAccount()
174 Log.v(TAG, "addAccount: result " + AccountManager.sanitizeResult(result)); in addAccount()
176 if (result != null) { in addAccount()
177 response.onResult(result); in addAccount()
192 final Bundle result = AbstractAccountAuthenticator.this.confirmCredentials( in confirmCredentials() local
195 if (result != null) { in confirmCredentials()
196 result.keySet(); // force it to be unparcelled in confirmCredentials()
199 + AccountManager.sanitizeResult(result)); in confirmCredentials()
[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>>...91