Home
last modified time | relevance | path

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

12345678910>>...51

/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.cpp55 status_t status; in getGpuStatsGlobalInfo() local
57 if ((status = data.writeInterfaceToken(IGpuService::getInterfaceDescriptor())) != OK) in getGpuStatsGlobalInfo()
58 return status; in getGpuStatsGlobalInfo()
60 if ((status = remote()->transact(BnGpuService::GET_GPU_STATS_GLOBAL_INFO, data, &reply)) != in getGpuStatsGlobalInfo()
62 return status; in getGpuStatsGlobalInfo()
65 if ((status = reply.readInt32(&result)) != OK) return status; in getGpuStatsGlobalInfo()
76 status_t status; in getGpuStatsAppInfo() local
78 if ((status = data.writeInterfaceToken(IGpuService::getInterfaceDescriptor())) != OK) { in getGpuStatsAppInfo()
79 return status; in getGpuStatsAppInfo()
82 if ((status = remote()->transact(BnGpuService::GET_GPU_STATS_APP_INFO, data, &reply)) != in getGpuStatsAppInfo()
[all …]
/frameworks/av/media/libstagefright/foundation/tests/
DMetaDataBaseUnitTest.cpp67 bool status = metaData->setCString(kKeyMIMEType, MEDIA_MIMETYPE_VIDEO_AVC); in TEST_F() local
68 ASSERT_FALSE(status) << "Initializing kKeyMIMEType, overwrite is expected to be false"; in TEST_F()
70 status = metaData->setInt32(kKeyWidth, kWidth1); in TEST_F()
71 ASSERT_FALSE(status) << "Initializing kKeyWidth, overwrite is expected to be false"; in TEST_F()
72 status = metaData->setInt32(kKeyHeight, kHeight1); in TEST_F()
73 ASSERT_FALSE(status) << "Initializing kKeyHeight, overwrite is expected to be false"; in TEST_F()
74 status = metaData->setInt32(kKeyVideoProfile, kProfile); in TEST_F()
75 ASSERT_FALSE(status) << "Initializing kKeyVideoProfile, overwrite is expected to be false"; in TEST_F()
76 status = metaData->setInt32(kKeyVideoLevel, kLevel); in TEST_F()
77 ASSERT_FALSE(status) << "Initializing kKeyVideoLevel, overwrite is expected to be false"; in TEST_F()
[all …]
/frameworks/av/media/libaaudio/src/binding/
DAAudioStreamConfiguration.cpp42 status_t status; in writeToParcel() local
44 status = parcel->writeInt32(getDeviceId()); in writeToParcel()
45 if (status != NO_ERROR) goto error; in writeToParcel()
46 status = parcel->writeInt32(getSampleRate()); in writeToParcel()
47 if (status != NO_ERROR) goto error; in writeToParcel()
48 status = parcel->writeInt32(getSamplesPerFrame()); in writeToParcel()
49 if (status != NO_ERROR) goto error; in writeToParcel()
50 status = parcel->writeInt32((int32_t) getSharingMode()); in writeToParcel()
51 if (status != NO_ERROR) goto error; in writeToParcel()
52 status = parcel->writeInt32((int32_t) getFormat()); in writeToParcel()
[all …]
DRingBufferParcelable.cpp83 status_t status = AAudioConvert_aaudioToAndroidStatus(validate()); in writeToParcel() local
84 if (status != NO_ERROR) goto error; in writeToParcel()
86 status = parcel->writeInt32(mCapacityInFrames); in writeToParcel()
87 if (status != NO_ERROR) goto error; in writeToParcel()
89 status = parcel->writeInt32(mBytesPerFrame); in writeToParcel()
90 if (status != NO_ERROR) goto error; in writeToParcel()
91 status = parcel->writeInt32(mFramesPerBurst); in writeToParcel()
92 if (status != NO_ERROR) goto error; in writeToParcel()
93 status = parcel->writeInt32(mFlags); in writeToParcel()
94 if (status != NO_ERROR) goto error; in writeToParcel()
[all …]
DAudioEndpointParcelable.cpp67 status_t status = AAudioConvert_aaudioToAndroidStatus(validate()); in writeToParcel() local
68 if (status != NO_ERROR) goto error; in writeToParcel()
70 status = parcel->writeInt32(mNumSharedMemories); in writeToParcel()
71 if (status != NO_ERROR) goto error; in writeToParcel()
74 status = mSharedMemories[i].writeToParcel(parcel); in writeToParcel()
75 if (status != NO_ERROR) goto error; in writeToParcel()
77 status = mUpMessageQueueParcelable.writeToParcel(parcel); in writeToParcel()
78 if (status != NO_ERROR) goto error; in writeToParcel()
79 status = mDownMessageQueueParcelable.writeToParcel(parcel); in writeToParcel()
80 if (status != NO_ERROR) goto error; in writeToParcel()
[all …]
DAAudioStreamRequest.cpp46 status_t status = parcel->writeInt32((int32_t) mUserId); in writeToParcel() local
47 if (status != NO_ERROR) goto error; in writeToParcel()
49 status = parcel->writeBool(mSharingModeMatchRequired); in writeToParcel()
50 if (status != NO_ERROR) goto error; in writeToParcel()
52 status = parcel->writeBool(mInService); in writeToParcel()
53 if (status != NO_ERROR) goto error; in writeToParcel()
55 status = mConfiguration.writeToParcel(parcel); in writeToParcel()
56 if (status != NO_ERROR) goto error; in writeToParcel()
61 ALOGE("writeToParcel(): write failed = %d", status); in writeToParcel()
62 return status; in writeToParcel()
[all …]
/frameworks/av/media/libstagefright/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/opt/net/wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeCallback.java146 public void notifyCapabilitiesResponse(short id, WifiNanStatus status, in notifyCapabilitiesResponse() argument
149 Log.v(TAG, "notifyCapabilitiesResponse: id=" + id + ", status=" + statusString(status) in notifyCapabilitiesResponse()
153 if (status.status == NanStatusType.SUCCESS) { in notifyCapabilitiesResponse()
176 Log.e(TAG, "notifyCapabilitiesResponse: error code=" + status.status + " (" in notifyCapabilitiesResponse()
177 + status.description + ")"); in notifyCapabilitiesResponse()
182 public void notifyEnableResponse(short id, WifiNanStatus status) { in notifyEnableResponse() argument
183 if (mDbg) Log.v(TAG, "notifyEnableResponse: id=" + id + ", status=" + statusString(status)); in notifyEnableResponse()
185 if (status.status == NanStatusType.ALREADY_ENABLED) { in notifyEnableResponse()
189 if (status.status == NanStatusType.SUCCESS in notifyEnableResponse()
190 || status.status == NanStatusType.ALREADY_ENABLED) { in notifyEnableResponse()
[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/av/media/libaudiofoundation/
DAudioGain.cpp134 status_t status = NO_ERROR; in writeToParcel() local
135 if ((status = parcel->writeInt32(mIndex)) != NO_ERROR) return status; in writeToParcel()
136 if ((status = parcel->writeBool(mUseInChannelMask)) != NO_ERROR) return status; in writeToParcel()
137 if ((status = parcel->writeBool(mUseForVolume)) != NO_ERROR) return status; in writeToParcel()
138 if ((status = parcel->writeUint32(mGain.mode)) != NO_ERROR) return status; in writeToParcel()
139 if ((status = parcel->writeUint32(mGain.channel_mask)) != NO_ERROR) return status; in writeToParcel()
140 if ((status = parcel->writeInt32(mGain.min_value)) != NO_ERROR) return status; in writeToParcel()
141 if ((status = parcel->writeInt32(mGain.max_value)) != NO_ERROR) return status; in writeToParcel()
142 if ((status = parcel->writeInt32(mGain.default_value)) != NO_ERROR) return status; in writeToParcel()
143 if ((status = parcel->writeUint32(mGain.step_value)) != NO_ERROR) return status; in writeToParcel()
[all …]
DAudioPort.cpp120 status_t status = NO_ERROR; in writeToParcel() local
121 if ((status = parcel->writeUtf8AsUtf16(mName)) != NO_ERROR) return status; in writeToParcel()
122 if ((status = parcel->writeUint32(mType)) != NO_ERROR) return status; in writeToParcel()
123 if ((status = parcel->writeUint32(mRole)) != NO_ERROR) return status; in writeToParcel()
124 if ((status = parcel->writeParcelable(mProfiles)) != NO_ERROR) return status; in writeToParcel()
125 if ((status = parcel->writeParcelable(mGains)) != NO_ERROR) return status; in writeToParcel()
126 return status; in writeToParcel()
131 status_t status = NO_ERROR; in readFromParcel() local
132 if ((status = parcel->readUtf8FromUtf16(&mName)) != NO_ERROR) return status; in readFromParcel()
134 if ((status = parcel->readUint32(reinterpret_cast<uint32_t*>(&mType))) != NO_ERROR) { in readFromParcel()
[all …]
DAudioProfile.cpp135 status_t status = NO_ERROR; in writeToParcel() local
136 if ((status = parcel->writeUtf8AsUtf16(mName)) != NO_ERROR) return status; in writeToParcel()
137 if ((status = parcel->writeUint32(mFormat)) != NO_ERROR) return status; in writeToParcel()
139 if ((status = parcel->writeInt32Vector(values)) != NO_ERROR) return status; in writeToParcel()
142 if ((status = parcel->writeInt32Vector(values)) != NO_ERROR) return status; in writeToParcel()
143 if ((status = parcel->writeBool(mIsDynamicFormat)) != NO_ERROR) return status; in writeToParcel()
144 if ((status = parcel->writeBool(mIsDynamicChannels)) != NO_ERROR) return status; in writeToParcel()
145 if ((status = parcel->writeBool(mIsDynamicRate)) != NO_ERROR) return status; in writeToParcel()
146 return status; in writeToParcel()
151 status_t status = NO_ERROR; in readFromParcel() local
[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/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/vr/libdisplay/
Ddisplay_client.cpp27 auto status = InvokeRemoteMethod<DisplayProtocol::GetSurfaceInfo>(); local
28 if (!status) {
30 status.GetErrorMessage().c_str());
31 Close(status.error());
33 *error = status.error();
36 surface_id_ = status.get().surface_id;
37 z_order_ = status.get().z_order;
38 visible_ = status.get().visible;
45 auto status = InvokeRemoteMethod<DisplayProtocol::CreateSurface>(attributes); local
46 if (!status) {
[all …]
/frameworks/av/media/libaudioclient/
DIAudioTrack.cpp62 status_t status = remote()->transact(GET_CBLK, data, &reply); in getCblk() local
63 if (status == NO_ERROR) { in getCblk()
76 status_t status = remote()->transact(START, data, &reply); in start() local
77 if (status == NO_ERROR) { in start()
78 status = reply.readInt32(); in start()
80 ALOGW("start() error: %s", strerror(-status)); in start()
82 return status; in start()
111 status_t status = remote()->transact(ATTACH_AUX_EFFECT, data, &reply); in attachAuxEffect() local
112 if (status == NO_ERROR) { in attachAuxEffect()
113 status = reply.readInt32(); in attachAuxEffect()
[all …]
DIAudioPolicyService.cpp254 status_t status = remote()->transact(GET_OUTPUT_FOR_ATTR, data, &reply); in getOutputForAttr() local
255 if (status != NO_ERROR) { in getOutputForAttr()
256 return status; in getOutputForAttr()
258 status = (status_t)reply.readInt32(); in getOutputForAttr()
259 if (status != NO_ERROR) { in getOutputForAttr()
260 return status; in getOutputForAttr()
262 status = (status_t)reply.read(&attr, sizeof(audio_attributes_t)); in getOutputForAttr()
263 if (status != NO_ERROR) { in getOutputForAttr()
264 return status; in getOutputForAttr()
345 status_t status = remote()->transact(GET_INPUT_FOR_ATTR, data, &reply); in getInputForAttr() local
[all …]
/frameworks/native/libs/binder/ndk/
Dparcel.cpp64 status_t status = rawParcel->writeInt32(static_cast<int32_t>(length)); in WriteAndValidateArraySize() local
65 if (status != STATUS_OK) return PruneStatusT(status); in WriteAndValidateArraySize()
72 binder_status_t status = WriteAndValidateArraySize(parcel, array == nullptr, length); in WriteArray() local
73 if (status != STATUS_OK) return status; in WriteArray()
90 binder_status_t status = WriteAndValidateArraySize(parcel, array == nullptr, length); in WriteArray() local
91 if (status != STATUS_OK) return status; in WriteArray()
100 status = rawParcel->writeChar(array[i]); in WriteArray()
102 if (status != STATUS_OK) return PruneStatusT(status); in WriteArray()
114 status_t status = rawParcel->readInt32(&length); in ReadArray() local
116 if (status != STATUS_OK) return PruneStatusT(status); in ReadArray()
[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/base/media/jni/audioeffect/
DVisualizer.cpp94 status_t status = AudioEffect::setEnabled(enabled); in setEnabled() local
97 if (enabled && status == NO_ERROR) { in setEnabled()
108 return status; in setEnabled()
164 status_t status = setParameter(p); in setCaptureSize() local
166 ALOGV("setCaptureSize size %d status %d p->status %d", size, status, p->status); in setCaptureSize()
168 if (status == NO_ERROR) { in setCaptureSize()
169 status = p->status; in setCaptureSize()
170 if (status == NO_ERROR) { in setCaptureSize()
175 return status; in setCaptureSize()
193 status_t status = setParameter(p); in setScalingMode() local
[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/soundtrigger/
DISoundTrigger.cpp63 status_t status = remote()->transact(LOAD_SOUND_MODEL, data, &reply); in loadSoundModel() local
64 if (status != NO_ERROR) { in loadSoundModel()
65 return status; in loadSoundModel()
67 status = (status_t)reply.readInt32(); in loadSoundModel()
68 if (status == NO_ERROR) { in loadSoundModel()
71 return status; in loadSoundModel()
79 status_t status = remote()->transact(UNLOAD_SOUND_MODEL, data, &reply); in unloadSoundModel() local
80 if (status == NO_ERROR) { in unloadSoundModel()
81 status = (status_t)reply.readInt32(); in unloadSoundModel()
83 return status; in unloadSoundModel()
[all …]
/frameworks/av/media/libmediaplayerservice/tests/stagefrightRecorder/
DStagefrightRecorderTest.cpp73 status_t status = mStfRecorder->setOutputFile(fd); in SetUp() local
74 ASSERT_EQ(status, OK) << "Failed to set the output file " << OUTPUT_FILE_NAME_AUDIO in SetUp()
84 int32_t status = remove(OUTPUT_FILE_NAME_AUDIO); in TearDown() local
85 ASSERT_EQ(status, 0) << "Unable to delete the output file " << OUTPUT_FILE_NAME_AUDIO; in TearDown()
105 status_t status = mStfRecorder->setAudioSource(audioSource); in setAudioRecorderFormat() local
106 ASSERT_EQ(status, OK) << "Failed to set the audio source: " << audioSource; in setAudioRecorderFormat()
108 status = mStfRecorder->setOutputFormat(outputFormat); in setAudioRecorderFormat()
109 ASSERT_EQ(status, OK) << "Failed to set the output format: " << outputFormat; in setAudioRecorderFormat()
111 status = mStfRecorder->setAudioEncoder(encoder); in setAudioRecorderFormat()
112 ASSERT_EQ(status, OK) << "Failed to set the audio encoder: " << encoder; in setAudioRecorderFormat()
[all …]
/frameworks/native/libs/vr/libbufferhubqueue/
Dbuffer_hub_queue_client.cpp78 auto status = InvokeRemoteMethod<BufferHubRPC::GetQueueInfo>(); in ImportQueue() local
79 if (!status) { in ImportQueue()
81 status.GetErrorMessage().c_str()); in ImportQueue()
82 return ErrorStatus(status.error()); in ImportQueue()
84 SetupQueue(status.get()); in ImportQueue()
99 if (auto status = CreateConsumerQueueHandle(/*silent*/ false)) in CreateConsumerQueue() local
100 return std::unique_ptr<ConsumerQueue>(new ConsumerQueue(status.take())); in CreateConsumerQueue()
106 if (auto status = CreateConsumerQueueHandle(/*silent*/ true)) in CreateSilentConsumerQueue() local
107 return std::unique_ptr<ConsumerQueue>(new ConsumerQueue(status.take())); in CreateSilentConsumerQueue()
114 auto status = InvokeRemoteMethod<BufferHubRPC::CreateConsumerQueue>(silent); in CreateConsumerQueueHandle() local
[all …]

12345678910>>...51