Home
last modified time | relevance | path

Searched refs:retval (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/av/media/libaudiohal/impl/
DDeviceHalHidl.cpp129 Result retval; in getMasterVolume() local
132 retval = r; in getMasterVolume()
133 if (retval == Result::OK) { in getMasterVolume()
137 return processReturn("getMasterVolume", ret, retval); in getMasterVolume()
153 Result retval; in getMicMute() local
156 retval = r; in getMicMute()
157 if (retval == Result::OK) { in getMicMute()
161 return processReturn("getMicMute", ret, retval); in getMicMute()
171 Result retval; in getMasterMute() local
174 retval = r; in getMasterMute()
[all …]
DEffectsFactoryHalHidl.cpp46 Result retval = Result::NOT_INITIALIZED; in queryAllDescriptors() local
49 retval = r; in queryAllDescriptors()
50 if (retval == Result::OK) { in queryAllDescriptors()
55 return retval == Result::OK ? OK : NO_INIT; in queryAllDescriptors()
89 Result retval = Result::NOT_INITIALIZED; in getDescriptor() local
92 retval = r; in getDescriptor()
93 if (retval == Result::OK) { in getDescriptor()
98 if (retval == Result::OK) return OK; in getDescriptor()
99 else if (retval == Result::INVALID_ARGUMENTS) return NAME_NOT_FOUND; in getDescriptor()
111 Result retval = Result::NOT_INITIALIZED; in createEffect() local
[all …]
DStreamHalHidl.cpp118 Result retval; in getParameters() local
124 retval = r; in getParameters()
125 if (retval == Result::OK) { in getParameters()
129 return processReturn("getParameters", ret, retval); in getParameters()
171 Result retval; in createMmapBuffer() local
175 retval = r; in createMmapBuffer()
176 if (retval == Result::OK) { in createMmapBuffer()
195 retval = Result::NOT_INITIALIZED; in createMmapBuffer()
199 return processReturn("createMmapBuffer", ret, retval); in createMmapBuffer()
203 Result retval; in getMmapPosition() local
[all …]
DEffectHalHidl.cpp158 Result retval; in prepareForProcessing() local
161 retval = r; in prepareForProcessing()
162 if (retval == Result::OK) { in prepareForProcessing()
169 if (!ret.isOk() || retval != Result::OK) { in prepareForProcessing()
170 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; in prepareForProcessing()
207 Result retval = Result::NOT_INITIALIZED; in processImpl() local
208 mStatusMQ->read(&retval); in processImpl()
209 if (retval == Result::OK || retval == Result::INVALID_STATE) { in processImpl()
213 return analyzeResult(retval); in processImpl()
267 Result retval = Result::NOT_INITIALIZED; in getDescriptor() local
[all …]
DEffectBufferHalHidl.cpp74 status_t retval = NO_MEMORY; in init() local
80 retval = OK; in init()
83 if (result.isOk() && retval == OK) { in init()
92 retval = NO_MEMORY; in init()
97 return result.isOk() ? retval : FAILED_TRANSACTION; in init()
DConversionHelperHidl.h44 status_t processReturn(const char* funcName, const Return<R>& ret, T *retval) { in processReturn() argument
47 *retval = static_cast<T>(static_cast<R>(ret)); in processReturn()
70 const char* funcName, const Return<T>& ret, CoreResult retval) { in processReturn() argument
74 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; in processReturn()
DDevicesFactoryHalHidl.cpp116 Result retval = Result::NOT_INITIALIZED; in openDevice() local
121 retval = r; in openDevice()
122 if (retval == Result::OK) { in openDevice()
127 switch (retval) { in openDevice()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dforeach_multi.rscript60 struct RetStruct retval;
62 retval.i0 = in0 + in1;
63 retval.i1 = in0 + in1;
64 retval.i2 = in0 + in1;
65 retval.i3 = in0 + in1;
66 retval.i4 = in0 + in1;
67 retval.i5 = in0 + in1;
68 retval.i6 = in0 + in1;
69 retval.i7 = in0 + in1;
71 return retval;
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dforeach_multi.rscript62 struct RetStruct retval;
64 retval.i0 = in0 + in1;
65 retval.i1 = in0 + in1;
66 retval.i2 = in0 + in1;
67 retval.i3 = in0 + in1;
68 retval.i4 = in0 + in1;
69 retval.i5 = in0 + in1;
70 retval.i6 = in0 + in1;
71 retval.i7 = in0 + in1;
73 return retval;
/frameworks/base/services/core/jni/
Dcom_android_server_UsbAlsaJackDetector.cpp123 int retval; in android_server_UsbAlsaJackDetector_jackDetect() local
125 retval = mixer_wait_event(m, -1); in android_server_UsbAlsaJackDetector_jackDetect()
126 } while (retval == -EINTR); in android_server_UsbAlsaJackDetector_jackDetect()
127 if (retval < 0) { in android_server_UsbAlsaJackDetector_jackDetect()
Dcom_android_server_power_PowerManagerService.cpp297 bool retval = false; in nativeForceSuspend() local
298 getSuspendControl()->forceSuspend(&retval); in nativeForceSuspend()
299 return retval; in nativeForceSuspend()
/frameworks/base/services/core/java/com/android/server/
DRandomBlock.java53 RandomBlock retval = new RandomBlock(); in fromStream() local
56 int result = in.read(retval.block, total, BLOCK_SIZE - total); in fromStream()
62 return retval; in fromStream()
/frameworks/base/core/java/android/view/textservice/
DTextServicesManager.java222 final SpellCheckerInfo[] retval = mService.getEnabledSpellCheckers(mUserId); in getEnabledSpellCheckers() local
224 Log.d(TAG, "getEnabledSpellCheckers: " + (retval != null ? retval.length : "null")); in getEnabledSpellCheckers()
226 return retval; in getEnabledSpellCheckers()
/frameworks/base/native/android/
Dsensor.cpp45 #define RETURN_IF_MANAGER_IS_NULL(retval) do {\ argument
48 return retval; \
51 #define RETURN_IF_SENSOR_IS_NULL(retval) do {\ argument
54 return retval; \
57 #define RETURN_IF_QUEUE_IS_NULL(retval) do {\ argument
60 return retval; \
/frameworks/base/core/java/android/service/textservice/
DSpellCheckerService.java141 final SuggestionsInfo[] retval = new SuggestionsInfo[length]; in onGetSuggestionsMultiple() local
143 retval[i] = onGetSuggestions(textInfos[i], suggestionsLimit); in onGetSuggestionsMultiple()
144 retval[i].setCookieAndSequence( in onGetSuggestionsMultiple()
147 return retval; in onGetSuggestionsMultiple()
187 final SentenceSuggestionsInfo[] retval = new SentenceSuggestionsInfo[infosSize]; in onGetSentenceSuggestionsMultiple() local
198 retval[i] = SentenceLevelAdapter.reconstructSuggestions( in onGetSentenceSuggestionsMultiple()
202 return retval; in onGetSentenceSuggestionsMultiple()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDeviceStateMonitor.java681 boolean retval = pm.isPowerSaveMode(); in isPowerSaveModeOn()
682 log("isPowerSaveModeOn=" + retval, true); in isPowerSaveModeOn()
683 return retval; in isPowerSaveModeOn()
695 boolean retval = bm.isCharging(); in isDeviceCharging()
696 log("isDeviceCharging=" + retval, true); in isDeviceCharging()
697 return retval; in isDeviceCharging()
736 boolean retval = umm.getCurrentModeType() == Configuration.UI_MODE_TYPE_CAR; in isCarModeOn()
737 log("isCarModeOn=" + retval, true); in isCarModeOn()
738 return retval; in isCarModeOn()
/frameworks/native/libs/gui/tests/
DSurfaceParcelable_test.cpp97 int stat, retval; in runBinderServer() local
98 retval = wait(&stat); in runBinderServer()
99 if (retval == -1 && errno == ECHILD) { in runBinderServer()
/frameworks/av/services/soundtrigger/
DSoundTriggerHalHidl.cpp180 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel() argument
181 ret = retval; in loadSoundModel()
194 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel() argument
195 ret = retval; in loadSoundModel()
207 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel() argument
208 ret = retval; in loadSoundModel()
219 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel() argument
220 ret = retval; in loadSoundModel()
232 this, modelId, [&](int32_t retval, auto res) { in loadSoundModel() argument
233 ret = retval; in loadSoundModel()
[all …]
/frameworks/base/libs/hwui/renderthread/
DRenderTask.h84 void* retval = mMethod(mData); in run() local
86 *mReturnPtr = retval; in run()
/frameworks/base/core/java/android/app/
DVr2dDisplayProperties.java184 String retval = "{"; in toReadableFlags() local
186 retval += "enabled"; in toReadableFlags()
188 return retval + "}"; in toReadableFlags()
/frameworks/av/media/libstagefright/codecs/mp3dec/test/
Dmp3reader.cpp313 ssize_t retval = sourceReadAt(fp, test_pos, tmp, sizeof(tmp)); in resync() local
314 if (retval < (ssize_t)sizeof(tmp)) { in resync()
/frameworks/compile/slang/lit-tests/P_ref_count/
Dref_count.rscript14 // CHECK: call void @_Z11rsSetObjectP10rs_elementS_(%struct.rs_element{{.*}}* nonnull %.rs.retval{{…
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java626 ArrayList<android.hardware.usb.V1_0.PortStatus> currentPortStatus, int retval) { in notifyPortStatusChange() argument
631 if (retval != Status.SUCCESS) { in notifyPortStatusChange()
661 int retval) { in notifyPortStatusChange_1_1() argument
666 if (retval != Status.SUCCESS) { in notifyPortStatusChange_1_1()
697 ArrayList<PortStatus> currentPortStatus, int retval) { in notifyPortStatusChange_1_2() argument
702 if (retval != Status.SUCCESS) { in notifyPortStatusChange_1_2()
738 public void notifyRoleSwitchStatus(String portName, PortRole role, int retval) { in notifyRoleSwitchStatus() argument
739 if (retval == Status.SUCCESS) { in notifyRoleSwitchStatus()
/frameworks/native/libs/vr/libbufferhubqueue/benchmarks/
Dbuffer_transport_benchmark.cpp541 int stat, retval; in runBinderServer() local
542 retval = wait(&stat); in runBinderServer()
543 if (retval == -1 && errno == ECHILD) { in runBinderServer()
/frameworks/av/media/libstagefright/codecs/xaacdec/
DSoftXAAC.cpp61 #define RETURN_IF_FATAL(retval, str) \ argument
62 if (retval & IA_FATAL_ERROR) { \
63 ALOGE("Error in %s: Returned: %d", str, retval); \
64 return retval; \
65 } else if (retval != IA_NO_ERROR) { \
66 ALOGW("Warning in %s: Returned: %d", str, retval); \

12