Home
last modified time | relevance | path

Searched refs:status (Results 1 – 25 of 1775) sorted by relevance

12345678910>>...71

/frameworks/native/libs/graphicsenv/
DGpuStatsInfo.cpp28 status_t status; in writeToParcel() local
29 if ((status = parcel->writeUtf8AsUtf16(driverPackageName)) != OK) return status; in writeToParcel()
30 if ((status = parcel->writeUtf8AsUtf16(driverVersionName)) != OK) return status; in writeToParcel()
31 if ((status = parcel->writeUint64(driverVersionCode)) != OK) return status; in writeToParcel()
32 if ((status = parcel->writeInt64(driverBuildTime)) != OK) return status; in writeToParcel()
33 if ((status = parcel->writeInt32(glLoadingCount)) != OK) return status; in writeToParcel()
34 if ((status = parcel->writeInt32(glLoadingFailureCount)) != OK) return status; in writeToParcel()
35 if ((status = parcel->writeInt32(vkLoadingCount)) != OK) return status; in writeToParcel()
36 if ((status = parcel->writeInt32(vkLoadingFailureCount)) != OK) return status; in writeToParcel()
37 if ((status = parcel->writeInt32(vulkanVersion)) != OK) return status; in writeToParcel()
[all …]
DIGpuService.cpp130 status_t status; in onTransact() local
136 if ((status = data.readUtf8FromUtf16(&driverPackageName)) != OK) return status; in onTransact()
139 if ((status = data.readUtf8FromUtf16(&driverVersionName)) != OK) return status; in onTransact()
142 if ((status = data.readUint64(&driverVersionCode)) != OK) return status; in onTransact()
145 if ((status = data.readInt64(&driverBuildTime)) != OK) return status; in onTransact()
148 if ((status = data.readUtf8FromUtf16(&appPackageName)) != OK) return status; in onTransact()
151 if ((status = data.readInt32(&vulkanVersion)) != OK) return status; in onTransact()
154 if ((status = data.readInt32(&driver)) != OK) return status; in onTransact()
157 if ((status = data.readBool(&isDriverLoaded)) != OK) return status; in onTransact()
160 if ((status = data.readInt64(&driverLoadingTime)) != OK) return status; in onTransact()
[all …]
/frameworks/av/media/module/foundation/tests/
DMetaDataBaseUnitTest.cpp66 bool status = metaData->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in TEST_F() local
67 ASSERT_FALSE(status) << "Initializing kKeyMIMEType, overwrite is expected to be false"; in TEST_F()
69 status = metaData->setInt32(kKeyWidth, kWidth1); in TEST_F()
70 ASSERT_FALSE(status) << "Initializing kKeyWidth, overwrite is expected to be false"; in TEST_F()
71 status = metaData->setInt32(kKeyHeight, kHeight1); in TEST_F()
72 ASSERT_FALSE(status) << "Initializing kKeyHeight, overwrite is expected to be false"; in TEST_F()
73 status = metaData->setInt32(kKeyVideoProfile, kProfile); in TEST_F()
74 ASSERT_FALSE(status) << "Initializing kKeyVideoProfile, overwrite is expected to be false"; in TEST_F()
75 status = metaData->setInt32(kKeyVideoLevel, kLevel); in TEST_F()
76 ASSERT_FALSE(status) << "Initializing kKeyVideoLevel, overwrite is expected to be false"; in TEST_F()
[all …]
/frameworks/av/media/module/codecs/m4v_h263/enc/src/
Dvop.cpp42 PV_STATUS status; in EncodeVop() local
81 status = RC_VopQPSetting(video, rc); in EncodeVop()
82 if (status == PV_FAIL) in EncodeVop()
98 return status; in EncodeVop()
101 status = EncodeVop_NoME(video); in EncodeVop()
110 return status; in EncodeVop()
130 PV_STATUS status = PV_SUCCESS; in EncodeVop_NoME() local
135 status = EncodeShortHeader(stream, currVop); /* Encode Short Header */ in EncodeVop_NoME()
139 status = EncodeFrameCombinedMode(video); in EncodeVop_NoME()
147 status = EncodeGOVHeader(stream, time); /* Encode GOV Header */ in EncodeVop_NoME()
[all …]
/frameworks/av/drm/libmediadrm/
DDrmMetricsLogger.cpp47 #define STATUS_CASE(status) \ in MediaErrorToEnum() argument
48 case ERROR_##status: \ in MediaErrorToEnum()
49 return ENUM_##status in MediaErrorToEnum()
100 #define STATUS_CASE(status) \ in DrmPluginSecurityLevelToJavaSecurityLevel() argument
101 case DrmPlugin::k##status: \ in DrmPluginSecurityLevelToJavaSecurityLevel()
102 return J##status in DrmPluginSecurityLevelToJavaSecurityLevel()
119 DrmStatus status = mImpl->initCheck(); in initCheck() local
120 if (status != OK) { in initCheck()
121 reportMediaDrmErrored(status, __func__); in initCheck()
123 return status; in initCheck()
[all …]
/frameworks/rs/
DrsSignal.cpp33 int status = pthread_mutex_init(&mMutex, nullptr); in init() local
34 if (status) { in init()
35 ALOGE("Signal::init: mutex init failure: %s", strerror(status)); in init()
39 status = pthread_cond_init(&mCondition, nullptr); in init()
40 if (status) { in init()
41 ALOGE("Signal::init: condition init failure: %s", strerror(status)); in init()
50 int status = pthread_mutex_lock(&mMutex); in set() local
51 if (status) { in set()
52 ALOGE("Signal::set: error locking for set condition: %s", strerror(status)); in set()
58 status = pthread_cond_signal(&mCondition); in set()
[all …]
/frameworks/native/services/vr/virtual_touchpad/
DEvdevInjector.cpp42 if (const int status = ioctl(fd_.get(), request, value)) { in IoctlSetInt() local
44 value, status, errno); in IoctlSetInt()
52 if (const int status = ioctl(fd_.get(), request)) { in IoctlVoid() local
53 ALOGE("ioctl(%d, 0x%X) failed (r=%d errno=%d)", fd_.get(), request, status, in IoctlVoid()
73 if (const int status = RequireState(State::NEW)) { in ConfigureBegin() local
74 return status; in ConfigureBegin()
80 if (const int status = uinput_->Open()) { in ConfigureBegin() local
83 return Error(status); in ConfigureBegin()
102 if (const int status = RequireState(State::CONFIGURING)) { in ConfigureInputProperty() local
103 return status; in ConfigureInputProperty()
[all …]
/frameworks/base/media/jni/audioeffect/
DVisualizer.cpp58 status_t status = AudioEffect::set( in set() local
60 if (status == NO_ERROR || status == ALREADY_EXISTS) { in set()
61 status = initCaptureSize(); in set()
62 if (status == NO_ERROR) initSampleRate(); in set()
64 return status; in set()
101 status_t status = AudioEffect::setEnabled(enabled); in setEnabled() local
104 if (enabled && status == NO_ERROR) { in setEnabled()
115 return status; in setEnabled()
171 status_t status = setParameter(p); in setCaptureSize() local
173 ALOGV("setCaptureSize size %u status %d p->status %d", size, status, p->status); in setCaptureSize()
[all …]
/frameworks/native/libs/binder/
DStatus.cpp60 Status Status::fromStatusT(status_t status) { in fromStatusT() argument
62 ret.setFromStatusT(status); in fromStatusT()
96 status_t status = parcel.readInt32(&mException); in readFromParcel() local
97 if (status != OK) { in readFromParcel()
98 setFromStatusT(status); in readFromParcel()
99 return status; in readFromParcel()
110 status = parcel.readInt32(&header_size); in readFromParcel()
111 if (status != OK) { in readFromParcel()
112 setFromStatusT(status); in readFromParcel()
113 return status; in readFromParcel()
[all …]
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/
DFwdLockConv.c244 FwdLockConv_Status_t status; in FwdLockConv_DeriveKeys() local
253 status = FwdLockConv_Status_OutOfMemory; in FwdLockConv_DeriveKeys()
257 status = FwdLockConv_Status_ProgramError; in FwdLockConv_DeriveKeys()
264 status = FwdLockConv_Status_ProgramError; in FwdLockConv_DeriveKeys()
271 status = FwdLockConv_Status_OK; in FwdLockConv_DeriveKeys()
277 return status; in FwdLockConv_DeriveKeys()
335 FwdLockConv_Status_t status = FwdLockConv_Status_OK; in FwdLockConv_MatchOpenDelimiter() local
381 status = FwdLockConv_Status_SyntaxError; in FwdLockConv_MatchOpenDelimiter()
384 status = FwdLockConv_RightTrimDelimiter(pSession); in FwdLockConv_MatchOpenDelimiter()
385 if (status == FwdLockConv_Status_OK) { in FwdLockConv_MatchOpenDelimiter()
[all …]
/frameworks/native/libs/binder/ndk/
Dparcel.cpp64 status_t status = rawParcel->writeInt32(length); in WriteAndValidateArraySize() local
65 if (status != STATUS_OK) return PruneStatusT(status); in WriteAndValidateArraySize()
71 if (status_t status = parcel->get()->readInt32(length); status != STATUS_OK) { in ReadAndValidateArraySize() local
72 return PruneStatusT(status); in ReadAndValidateArraySize()
84 binder_status_t status = WriteAndValidateArraySize(parcel, array == nullptr, length); in WriteArray() local
85 if (status != STATUS_OK) return status; in WriteArray()
102 binder_status_t status = WriteAndValidateArraySize(parcel, array == nullptr, length); in WriteArray() local
103 if (status != STATUS_OK) return status; in WriteArray()
112 status = rawParcel->writeChar(array[i]); in WriteArray()
114 if (status != STATUS_OK) return PruneStatusT(status); in WriteArray()
[all …]
Dstatus.cpp25 static AStatus status = AStatus(); in AStatus_newOk() local
26 return &status; in AStatus_newOk()
45 AStatus* AStatus_fromStatus(binder_status_t status) { in AStatus_fromStatus() argument
46 return new AStatus(Status::fromStatusT(PruneStatusT(status))); in AStatus_fromStatus()
49 bool AStatus_isOk(const AStatus* status) { in AStatus_isOk() argument
50 return status->get().isOk(); in AStatus_isOk()
53 binder_exception_t AStatus_getExceptionCode(const AStatus* status) { in AStatus_getExceptionCode() argument
54 return PruneException(status->get().exceptionCode()); in AStatus_getExceptionCode()
57 int32_t AStatus_getServiceSpecificError(const AStatus* status) { in AStatus_getServiceSpecificError() argument
58 return status->get().serviceSpecificErrorCode(); in AStatus_getServiceSpecificError()
[all …]
/frameworks/base/tests/JankBench/app/src/main/jni/
DWorkerPool.cpp40 int status = pthread_mutex_init(&mMutex, NULL); in init() local
41 if (status) { in init()
46 status = pthread_cond_init(&mCondition, NULL); in init()
47 if (status) { in init()
57 int status; in set() local
59 status = pthread_mutex_lock(&mMutex); in set()
60 if (status) { in set()
61 …id_log_print(ANDROID_LOG_INFO, "bench", "WorkerPool: error %i locking for set condition.", status); in set()
67 status = pthread_cond_signal(&mCondition); in set()
68 if (status) { in set()
[all …]
/frameworks/av/media/libaudioclient/tests/
Daudio_aidl_status_tests.cpp33 for (status_t status = 0; status > STATUS_T_SMALL_VALUE_LIMIT; --status) { in TEST() local
34 ASSERT_EQ(status, statusTFromBinderStatus(binderStatusFromStatusT(status))); in TEST()
40 for (status_t status : in TEST()
44 ASSERT_EQ(status, statusTFromBinderStatus(binderStatusFromStatusT(status))); in TEST()
69 for (status_t status : in TEST()
74 ASSERT_EQ(status, statusTFromBinderStatus(Status::fromStatusT(status))); in TEST()
81 for (status_t status = -1; status > STATUS_T_SMALL_VALUE_LIMIT; --status) { in TEST() local
82 ASSERT_EQ(status, statusTFromBinderStatus(Status::fromServiceSpecificError(status))); in TEST()
89 for (status_t status = -1; status > STATUS_T_SMALL_VALUE_LIMIT; --status) { in TEST() local
90 const Status binderStatus = binderStatusFromStatusT(status, message.c_str()); in TEST()
[all …]
/frameworks/av/media/module/codecs/m4v_h263/dec/src/
Dbitstream.cpp177 PV_STATUS status = PV_SUCCESS; in BitstreamShowBits32HC() local
182 status = BitstreamFillCache(stream); in BitstreamShowBits32HC()
185 return status; in BitstreamShowBits32HC()
195 PV_STATUS status = PV_SUCCESS; in BitstreamShowBits32() local
200 status = BitstreamFillCache(stream); in BitstreamShowBits32()
203 return status; in BitstreamShowBits32()
217 PV_STATUS status = PV_SUCCESS; in BitstreamShowBits16() local
223 status = BitstreamFillCache(stream); in BitstreamShowBits16()
227 return status; in BitstreamShowBits16()
240 PV_STATUS status = PV_SUCCESS; in BitstreamShow15Bits() local
[all …]
/frameworks/av/media/libaaudio/src/binding/
DAAudioBinderAdapter.cpp38 Status status = mDelegate->openStream(request.parcelable(), in openStream() local
41 if (!status.isOk()) { in openStream()
42 result = AAudioConvert_androidToAAudioResult(statusTFromBinderStatus(status)); in openStream()
53 Status status = mDelegate->closeStream(streamHandleInfo.getHandle(), &result); in closeStream() local
54 if (!status.isOk()) { in closeStream()
55 result = AAudioConvert_androidToAAudioResult(statusTFromBinderStatus(status)); in closeStream()
67 Status status = mDelegate->getStreamDescription(streamHandleInfo.getHandle(), in getStreamDescription() local
70 if (!status.isOk()) { in getStreamDescription()
71 result = AAudioConvert_androidToAAudioResult(statusTFromBinderStatus(status)); in getStreamDescription()
82 Status status = mDelegate->startStream(streamHandleInfo.getHandle(), &result); in startStream() local
[all …]
/frameworks/base/services/core/jni/gnss/
DGnssGeofenceCallback.cpp73 Status GnssGeofenceCallbackAidl::gnssGeofenceAddCb(int geofenceId, int status) { in gnssGeofenceAddCb() argument
74 GnssGeofenceCallbackUtil::gnssGeofenceAddCb(geofenceId, status); in gnssGeofenceAddCb()
78 Status GnssGeofenceCallbackAidl::gnssGeofenceRemoveCb(int geofenceId, int status) { in gnssGeofenceRemoveCb() argument
79 GnssGeofenceCallbackUtil::gnssGeofenceRemoveCb(geofenceId, status); in gnssGeofenceRemoveCb()
83 Status GnssGeofenceCallbackAidl::gnssGeofencePauseCb(int geofenceId, int status) { in gnssGeofencePauseCb() argument
84 GnssGeofenceCallbackUtil::gnssGeofencePauseCb(geofenceId, status); in gnssGeofencePauseCb()
88 Status GnssGeofenceCallbackAidl::gnssGeofenceResumeCb(int geofenceId, int status) { in gnssGeofenceResumeCb() argument
89 GnssGeofenceCallbackUtil::gnssGeofenceResumeCb(geofenceId, status); in gnssGeofenceResumeCb()
108 GeofenceStatus status) { in gnssGeofenceAddCb() argument
109 GnssGeofenceCallbackUtil::gnssGeofenceAddCb(geofenceId, (int)status); in gnssGeofenceAddCb()
[all …]
/frameworks/native/libs/binder/tests/unit_fuzzers/
DStatusFuzzFunctions.h37 [](FuzzedDataProvider*, binder::Status* status, Parcel* parcel) -> void {
39 status->readFromParcel(*parcel);
41 [](FuzzedDataProvider*, binder::Status* status, Parcel* parcel) -> void {
42 status->writeToParcel(parcel);
44 [](FuzzedDataProvider* fdp, binder::Status* status, Parcel*) -> void {
48 status->setServiceSpecificError(fdp->ConsumeIntegral<int32_t>(), message);
50 [](FuzzedDataProvider* fdp, binder::Status* status, Parcel*) -> void {
54 status->setException(fdp->ConsumeIntegral<int32_t>(), message);
56 [](FuzzedDataProvider*, binder::Status* status, Parcel*) -> void { status->ok(); },
57 [](FuzzedDataProvider* fdp, binder::Status* status, Parcel*) -> void {
[all …]
/frameworks/native/services/surfaceflinger/tests/
DBootDisplayMode_test.cpp40 binder::Status status = mSf->getBootDisplayModeSupport(&bootModeSupport); in SetUp() local
41 ASSERT_NO_FATAL_FAILURE(statusTFromBinderStatus(status)); in SetUp()
48 status = mSf->getDynamicDisplayInfoFromToken(mDisplayToken, &info); in SetUp()
49 ASSERT_EQ(NO_ERROR, statusTFromBinderStatus(status)); in SetUp()
68 binder::Status status = mSf->setBootDisplayMode(mDisplayToken, mOldMode); in TearDown() local
69 EXPECT_EQ(NO_ERROR, statusTFromBinderStatus(status)); in TearDown()
72 status = mSf->getDynamicDisplayInfoFromToken(mDisplayToken, &info); in TearDown()
73 EXPECT_EQ(NO_ERROR, statusTFromBinderStatus(status)); in TearDown()
85 binder::Status status = mSf->setBootDisplayMode(mDisplayToken, mNewMode); in TEST_F() local
86 EXPECT_EQ(NO_ERROR, statusTFromBinderStatus(status)); in TEST_F()
[all …]
/frameworks/av/media/libeffects/preprocessing/tests/
DEffectTestHelper.cpp21 int status = AUDIO_EFFECT_LIBRARY_INFO_SYM.create_effect(mUuid, 1, 1, &mEffectHandle); in createEffect() local
22 ASSERT_EQ(status, 0) << "create_effect returned an error " << status; in createEffect()
26 int status = AUDIO_EFFECT_LIBRARY_INFO_SYM.release_effect(mEffectHandle); in releaseEffect() local
27 ASSERT_EQ(status, 0) << "release_effect returned an error " << status; in releaseEffect()
39 int status = (*mEffectHandle) in setConfig() local
42 ASSERT_EQ(status, 0) << "set_config returned an error " << status; in setConfig()
46 int status = (*mEffectHandle) in setConfig() local
49 ASSERT_EQ(status, 0) << "set_config_reverse returned an error " << status; in setConfig()
53 status = (*mEffectHandle) in setConfig()
55 ASSERT_EQ(status, 0) << "cmd_enable returned an error " << status; in setConfig()
[all …]
/frameworks/av/media/libmediaplayerservice/tests/stagefrightRecorder/
DStagefrightRecorderTest.cpp77 status_t status = mStfRecorder->setOutputFile(fd); in SetUp() local
78 ASSERT_EQ(status, OK) << "Failed to set the output file " << OUTPUT_FILE_NAME_AUDIO in SetUp()
88 int32_t status = remove(OUTPUT_FILE_NAME_AUDIO); in TearDown() local
89 ASSERT_EQ(status, 0) << "Unable to delete the output file " << OUTPUT_FILE_NAME_AUDIO; in TearDown()
109 status_t status = mStfRecorder->setAudioSource(audioSource); in setAudioRecorderFormat() local
110 ASSERT_EQ(status, OK) << "Failed to set the audio source: " << audioSource; in setAudioRecorderFormat()
112 status = mStfRecorder->setOutputFormat(outputFormat); in setAudioRecorderFormat()
113 ASSERT_EQ(status, OK) << "Failed to set the output format: " << outputFormat; in setAudioRecorderFormat()
115 status = mStfRecorder->setAudioEncoder(encoder); in setAudioRecorderFormat()
116 ASSERT_EQ(status, OK) << "Failed to set the audio encoder: " << encoder; in setAudioRecorderFormat()
[all …]
/frameworks/av/media/module/metadatautils/test/
DMetaDataUtilsTest.cpp214 bool status = MakeAVCCodecSpecificData(csdData, mInputBuffer, mInputBufferSize); in TEST_P() local
215 ASSERT_TRUE(status) << "Failed to make AVC CSD from AMediaFormat"; in TEST_P()
218 status = AMediaFormat_getInt32(csdData, AMEDIAFORMAT_KEY_WIDTH, &avcWidth); in TEST_P()
219 ASSERT_TRUE(status) << "Failed to get avc width"; in TEST_P()
223 status = AMediaFormat_getInt32(csdData, AMEDIAFORMAT_KEY_HEIGHT, &avcHeight); in TEST_P()
224 ASSERT_TRUE(status) << "Failed to get avc height"; in TEST_P()
228 status = AMediaFormat_getString(csdData, AMEDIAFORMAT_KEY_MIME, &mimeType); in TEST_P()
229 ASSERT_TRUE(status) << "Failed to get the mime type"; in TEST_P()
235 status = MakeAVCCodecSpecificData(*metaData, mInputBuffer, mInputBufferSize); in TEST_P()
236 ASSERT_TRUE(status) << "Failed to make AVC CSD from MetaDataBase"; in TEST_P()
[all …]
/frameworks/base/core/tests/timetests/src/android/app/time/
DDetectorStatusTypesTest.java44 for (@DetectionAlgorithmStatus int status = DETECTION_ALGORITHM_STATUS_UNKNOWN; in testRequireValidDetectionAlgorithmStatus()
45 status <= DETECTION_ALGORITHM_STATUS_RUNNING; status++) { in testRequireValidDetectionAlgorithmStatus()
46 assertEquals(status, DetectorStatusTypes.requireValidDetectionAlgorithmStatus(status)); in testRequireValidDetectionAlgorithmStatus()
59 for (@DetectionAlgorithmStatus int status = DETECTION_ALGORITHM_STATUS_UNKNOWN; in testFormatAndParseDetectionAlgorithmStatus()
60 status <= DETECTION_ALGORITHM_STATUS_RUNNING; status++) { in testFormatAndParseDetectionAlgorithmStatus()
61 assertEquals(status, DetectorStatusTypes.detectionAlgorithmStatusFromString( in testFormatAndParseDetectionAlgorithmStatus()
62 DetectorStatusTypes.detectionAlgorithmStatusToString(status))); in testFormatAndParseDetectionAlgorithmStatus()
81 for (@DetectorStatus int status = DETECTOR_STATUS_UNKNOWN; in testRequireValidDetectorStatus()
82 status <= DETECTOR_STATUS_RUNNING; status++) { in testRequireValidDetectorStatus()
83 assertEquals(status, DetectorStatusTypes.requireValidDetectorStatus(status)); in testRequireValidDetectorStatus()
[all …]
/frameworks/av/media/module/codecs/amrwb/enc/test/
DAmrwbEncoderTest.cpp72 int32_t status = voGetAMRWBEncAPI(&mApiHandle); in TEST_P() local
73 ASSERT_EQ(status, VO_ERR_NONE) << "Failed to get api handle"; in TEST_P()
75 status = mApiHandle.Init(&mEncoderHandle, VO_AUDIO_CodingAMRWB, &mUserData); in TEST_P()
76 ASSERT_EQ(status, VO_ERR_NONE) << "Failed to init AMRWB encoder"; in TEST_P()
78 status = mApiHandle.SetParam(mEncoderHandle, VO_PID_AMRWB_FRAMETYPE, &mFrameType); in TEST_P()
79 ASSERT_EQ(status, VO_ERR_NONE) << "Failed to set AMRWB encoder frame type to " << mFrameType; in TEST_P()
81 status = mApiHandle.SetParam(mEncoderHandle, VO_PID_AMRWB_MODE, &mMode); in TEST_P()
82 ASSERT_EQ(status, VO_ERR_NONE) << "Failed to set AMRWB encoder mode to %d" << mMode; in TEST_P()
85 status = mApiHandle.Uninit(mEncoderHandle); in TEST_P()
86 ASSERT_EQ(status, VO_ERR_NONE) << "Failed to delete AMRWB encoder"; in TEST_P()
[all …]
/frameworks/native/libs/vr/libpdx/
Dclient.cpp25 auto status = channel_factory_->Connect(reconnect_timeout_ms_); in CheckReconnect() local
26 if (!status) { in CheckReconnect()
27 error_ = -status.error(); in CheckReconnect()
28 ret.SetError(status.error()); in CheckReconnect()
31 channel_ = status.take(); in CheckReconnect()
65 auto status = channel_factory_->Connect(timeout_ms); local
66 if (!status) {
68 status.GetErrorMessage().c_str());
69 error_ = -status.error();
71 channel_ = status.take();
[all …]

12345678910>>...71