Home
last modified time | relevance | path

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

12

/frameworks/av/media/libaudiohal/impl/
DEffectsFactoryHalHidl.cpp61 Result retval = Result::NOT_INITIALIZED; in queryAllDescriptors() local
65 retval = r; in queryAllDescriptors()
66 if (retval == Result::OK) { in queryAllDescriptors()
70 if (ret.isOk() && retval == Result::OK) { in queryAllDescriptors()
74 return {std::move(ret), retval, std::move(descriptors)}; in queryAllDescriptors()
85 auto [ret, retval, descriptors] = mCache->queryAllDescriptors(mEffectsFactory.get()); in queryNumberEffects()
86 if (ret.isOk() && retval == Result::OK) { in queryNumberEffects()
101 auto [ret, retval, descriptors] = mCache->queryAllDescriptors(mEffectsFactory.get()); in getDescriptor()
102 if (ret.isOk() && retval == Result::OK) { in getDescriptor()
119 Result retval = Result::NOT_INITIALIZED; in getDescriptor() local
[all …]
DDeviceHalHidl.cpp112 Result retval; in getMasterVolume() local
115 retval = r; in getMasterVolume()
116 if (retval == Result::OK) { in getMasterVolume()
120 return processReturn("getMasterVolume", ret, retval); in getMasterVolume()
139 Result retval; in getMicMute() local
142 retval = r; in getMicMute()
143 if (retval == Result::OK) { in getMicMute()
147 return processReturn("getMicMute", ret, retval); in getMicMute()
159 Result retval; in getMasterMute() local
162 retval = r; in getMasterMute()
[all …]
DStreamHalHidl.cpp96 Result retval; in getAudioProperties() local
100 retval = r; in getAudioProperties()
101 if (retval == Result::OK) { in getAudioProperties()
105 if (status_t status = processReturn("getAudioProperties", ret, retval); status == NO_ERROR) { in getAudioProperties()
130 Result retval; in getParameters() local
136 retval = r; in getParameters()
137 if (retval == Result::OK) { in getParameters()
141 return processReturn("getParameters", ret, retval); in getParameters()
202 Result retval; in createMmapBuffer() local
206 retval = r; in createMmapBuffer()
[all …]
DEffectHalHidl.cpp126 Result retval; in prepareForProcessing() local
129 retval = r; in prepareForProcessing()
130 if (retval == Result::OK) { in prepareForProcessing()
137 if (!ret.isOk() || retval != Result::OK) { in prepareForProcessing()
138 return ret.isOk() ? analyzeResult(retval) : FAILED_TRANSACTION; in prepareForProcessing()
177 Result retval = Result::NOT_INITIALIZED; in processImpl() local
178 mStatusMQ->read(&retval); in processImpl()
179 if (retval == Result::OK || retval == Result::INVALID_STATE) { in processImpl()
183 return analyzeResult(retval); in processImpl()
241 Result retval = Result::NOT_INITIALIZED; in getDescriptor() local
[all …]
DEffectBufferHalHidl.cpp72 status_t retval = NO_MEMORY; in init() local
78 retval = OK; in init()
81 if (result.isOk() && retval == OK) { in init()
90 retval = NO_MEMORY; in init()
95 return result.isOk() ? retval : FAILED_TRANSACTION; in init()
DConversionHelperHidl.h38 const ::android::hardware::Return<R>& ret, T *retval) { in processReturn() argument
41 *retval = static_cast<T>(static_cast<R>(ret)); in processReturn()
65 const char* funcName, const ::android::hardware::Return<T>& ret, HalResult retval) { in processReturn() argument
69 return ret.isOk() ? mResultConverter(retval) : FAILED_TRANSACTION; in processReturn()
DDevicesFactoryHalHidl.cpp114 Result retval = Result::NOT_INITIALIZED; in openDevice() local
127 retval = r; in openDevice()
128 if (retval == Result::OK) { in openDevice()
141 retval = r; in openDevice()
142 if (retval == Result::OK) { in openDevice()
148 switch (retval) { in openDevice()
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DSoundTriggerHw2Compat.java184 AtomicInteger retval = new AtomicInteger(-1); in getPropertiesInternal() local
190 retval.set(r); in getPropertiesInternal()
197 handleHalStatus(retval.get(), "getProperties_2_3"); in getPropertiesInternal()
215 AtomicInteger retval = new AtomicInteger(-1); in loadSoundModel() local
221 retval.set(r); in loadSoundModel()
224 handleHalStatus(retval.get(), "loadSoundModel_2_1"); in loadSoundModel()
251 AtomicInteger retval = new AtomicInteger(-1); in loadPhraseSoundModel() local
257 retval.set(r); in loadPhraseSoundModel()
260 handleHalStatus(retval.get(), "loadPhraseSoundModel_2_1"); in loadPhraseSoundModel()
287 int retval = as2_0().unloadSoundModel(modelHandle); in unloadSoundModel() local
[all …]
/frameworks/base/core/java/com/android/internal/security/
DVerityUtils.java84 int retval = statxForFsverityNative(filePath); in hasFsverity() local
85 if (retval < 0) { in hasFsverity()
86 Slog.e(TAG, "Failed to check whether fs-verity is enabled, errno " + -retval + ": " in hasFsverity()
90 return (retval == 1); in hasFsverity()
96 int retval = measureFsverityNative(filePath, result); in getFsverityRootHash() local
97 if (retval < 0) { in getFsverityRootHash()
98 if (retval != -OsConstants.ENODATA) { in getFsverityRootHash()
99 Slog.e(TAG, "Failed to measure fs-verity, errno " + -retval + ": " + filePath); in getFsverityRootHash()
/frameworks/base/services/usb/java/com/android/server/usb/hal/port/
DUsbPortAidl.java556 android.hardware.usb.PortStatus[] currentPortStatus, int retval) { in notifyPortStatusChange() argument
561 if (retval != Status.SUCCESS) { in notifyPortStatusChange()
596 public void notifyRoleSwitchStatus(String portName, PortRole role, int retval, in notifyRoleSwitchStatus() argument
598 if (retval == Status.SUCCESS) { in notifyRoleSwitchStatus()
604 + retval in notifyRoleSwitchStatus()
610 public void notifyQueryPortStatus(String portName, int retval, long operationID) { in notifyQueryPortStatus() argument
611 if (retval == Status.SUCCESS) { in notifyQueryPortStatus()
616 + operationID + " failed. err:" + retval); in notifyQueryPortStatus()
621 public void notifyEnableUsbDataStatus(String portName, boolean enable, int retval, in notifyEnableUsbDataStatus() argument
623 if (retval == Status.SUCCESS) { in notifyEnableUsbDataStatus()
[all …]
DUsbPortHidl.java403 ArrayList<android.hardware.usb.V1_0.PortStatus> currentPortStatus, int retval) { in notifyPortStatusChange() argument
408 if (retval != Status.SUCCESS) { in notifyPortStatusChange()
435 int retval) { in notifyPortStatusChange_1_1() argument
440 if (retval != Status.SUCCESS) { in notifyPortStatusChange_1_1()
467 ArrayList<PortStatus> currentPortStatus, int retval) { in notifyPortStatusChange_1_2() argument
472 if (retval != Status.SUCCESS) { in notifyPortStatusChange_1_2()
504 public void notifyRoleSwitchStatus(String portName, PortRole role, int retval) { in notifyRoleSwitchStatus() argument
505 if (retval == Status.SUCCESS) { in notifyRoleSwitchStatus()
/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.cpp122 int retval; in android_server_UsbAlsaJackDetector_jackDetect() local
124 retval = mixer_wait_event(m, -1); in android_server_UsbAlsaJackDetector_jackDetect()
125 } while (retval == -EINTR); in android_server_UsbAlsaJackDetector_jackDetect()
126 if (retval < 0) { in android_server_UsbAlsaJackDetector_jackDetect()
Dcom_android_server_power_PowerManagerService.cpp250 bool retval = false; in nativeForceSuspend() local
251 getSuspendControlInternal()->forceSuspend(&retval); in nativeForceSuspend()
252 return retval; in nativeForceSuspend()
/frameworks/base/tests/ApkVerityTest/block_device_writer/
Dblock_device_writer.cpp148 ssize_t retval = in read_block_from_device() local
150 if (retval != block_size) { in read_block_from_device()
152 retval, strerror(errno)); in read_block_from_device()
167 ssize_t retval = TEMP_FAILURE_RETRY( in write_block_to_device() local
169 if (retval != block_size) { in write_block_to_device()
171 retval, strerror(errno)); in write_block_to_device()
/frameworks/native/libs/ui/tests/
DGraphicBufferOverBinder_test.cpp73 int stat, retval; in runBinderServer() local
74 retval = wait(&stat); in runBinderServer()
75 if (retval == -1 && errno == ECHILD) { in runBinderServer()
/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/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/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/base/core/java/android/view/textservice/
DTextServicesManager.java293 final SpellCheckerInfo[] retval = mService.getEnabledSpellCheckers(mUserId); in getEnabledSpellCheckers() local
295 Log.d(TAG, "getEnabledSpellCheckers: " + (retval != null ? retval.length : "null")); in getEnabledSpellCheckers()
297 return retval; in getEnabledSpellCheckers()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDeviceStateMonitor.java689 boolean retval = pm.isPowerSaveMode(); in isPowerSaveModeOn()
690 log("isPowerSaveModeOn=" + retval, true); in isPowerSaveModeOn()
691 return retval; in isPowerSaveModeOn()
703 boolean retval = bm.isCharging(); in isDeviceCharging()
704 log("isDeviceCharging=" + retval, true); in isDeviceCharging()
705 return retval; in isDeviceCharging()
/frameworks/compile/slang/lit-tests/P_ref_count/
Dref_count.rscript14 // CHECK: call void @_Z11rsSetObjectP10rs_elementS_(%struct.rs_element{{.*}}* nonnull %.rs.retval{{…

12