Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 749) sorted by relevance

12345678910>>...30

/frameworks/native/libs/gui/
DITransactionCompletedListener.cpp34 status_t err = output->writeUint64(frameNumber); in writeToParcel() local
35 if (err != NO_ERROR) return err; in writeToParcel()
38 err = output->writeBool(true); in writeToParcel()
39 if (err != NO_ERROR) return err; in writeToParcel()
41 err = output->write(*gpuCompositionDoneFence); in writeToParcel()
43 err = output->writeBool(false); in writeToParcel()
45 if (err != NO_ERROR) return err; in writeToParcel()
47 err = output->writeInt64(compositorTiming.deadline); in writeToParcel()
48 if (err != NO_ERROR) return err; in writeToParcel()
50 err = output->writeInt64(compositorTiming.interval); in writeToParcel()
[all …]
DBufferItemConsumer.cpp40 status_t err = mConsumer->setConsumerUsageBits(consumerUsage); in BufferItemConsumer() local
41 LOG_ALWAYS_FATAL_IF(err != OK, in BufferItemConsumer()
44 err = mConsumer->setMaxAcquiredBufferCount(bufferCount); in BufferItemConsumer()
45 LOG_ALWAYS_FATAL_IF(err != OK, in BufferItemConsumer()
60 status_t err; in acquireBuffer() local
66 err = acquireBufferLocked(item, presentWhen); in acquireBuffer()
67 if (err != OK) { in acquireBuffer()
68 if (err != NO_BUFFER_AVAILABLE) { in acquireBuffer()
69 BI_LOGE("Error acquiring buffer: %s (%d)", strerror(err), err); in acquireBuffer()
71 return err; in acquireBuffer()
[all …]
/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp33 status_t err = NO_ERROR; in setNativeWindowSizeFormatAndUsage() local
37 err = nativeWindowDisconnect(nativeWindow, "setNativeWindowSizeFormatAndUsage"); in setNativeWindowSizeFormatAndUsage()
38 if (err != NO_ERROR) { in setNativeWindowSizeFormatAndUsage()
39 ALOGE("nativeWindowDisconnect failed: %s (%d)", strerror(-err), -err); in setNativeWindowSizeFormatAndUsage()
40 return err; in setNativeWindowSizeFormatAndUsage()
43 err = nativeWindowConnect(nativeWindow, "setNativeWindowSizeFormatAndUsage"); in setNativeWindowSizeFormatAndUsage()
44 if (err != NO_ERROR) { in setNativeWindowSizeFormatAndUsage()
45 ALOGE("nativeWindowConnect failed: %s (%d)", strerror(-err), -err); in setNativeWindowSizeFormatAndUsage()
46 return err; in setNativeWindowSizeFormatAndUsage()
50 err = native_window_set_buffers_dimensions(nativeWindow, width, height); in setNativeWindowSizeFormatAndUsage()
[all …]
DACodec.cpp91 static inline bool isOMXError(int32_t err) { in isOMXError() argument
92 return (ERROR_CODEC_MIN <= err && err <= ERROR_CODEC_MAX); in isOMXError()
117 static inline status_t makeNoSideEffectStatus(status_t err) { in makeNoSideEffectStatus() argument
118 switch (err) { in makeNoSideEffectStatus()
125 return err; in makeNoSideEffectStatus()
645 status_t err = msg->postAndAwaitResponse(&response); in setSurface() local
647 if (err == OK) { in setSurface()
648 (void)response->findInt32("err", &err); in setSurface()
650 return err; in setSurface()
738 status_t err = setupNativeWindowSizeFormatAndUsage( in handleSetSurface() local
[all …]
/frameworks/base/libs/incident/src/
DIncidentReportArgs.cpp52 status_t err; in writeToParcel() local
54 err = out->writeInt32(mAll); in writeToParcel()
55 if (err != NO_ERROR) { in writeToParcel()
56 return err; in writeToParcel()
59 err = out->writeInt32(mSections.size()); in writeToParcel()
60 if (err != NO_ERROR) { in writeToParcel()
61 return err; in writeToParcel()
65 err = out->writeInt32(*it); in writeToParcel()
66 if (err != NO_ERROR) { in writeToParcel()
67 return err; in writeToParcel()
[all …]
/frameworks/av/media/img_utils/src/
DDngUtils.cpp63 status_t err = OK; in addGainMapsForMetadata() local
72 err = addBayerGainMapsForMetadata(lsmWidth, lsmHeight, activeAreaWidth, in addGainMapsForMetadata()
76 err = addMonochromeGainMapsForMetadata(lsmWidth, lsmHeight, activeAreaWidth, in addGainMapsForMetadata()
81 err = BAD_VALUE; in addGainMapsForMetadata()
84 return err; in addGainMapsForMetadata()
174 status_t err = addGainMap(/*top*/redTop, in addBayerGainMapsForMetadata() local
190 if (err != OK) return err; in addBayerGainMapsForMetadata()
192 err = addGainMap(/*top*/greenEvenTop, in addBayerGainMapsForMetadata()
208 if (err != OK) return err; in addBayerGainMapsForMetadata()
210 err = addGainMap(/*top*/greenOddTop, in addBayerGainMapsForMetadata()
[all …]
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.cpp65 int err = native_window_api_connect(window, NATIVE_WINDOW_API_EGL); in ConnectAndSetWindowDefaults() local
66 if (err != 0) { in ConnectAndSetWindowDefaults()
67 ALOGE("native_window_api_connect failed: %s (%d)", strerror(-err), err); in ConnectAndSetWindowDefaults()
72 err = window->setSwapInterval(window, 1); in ConnectAndSetWindowDefaults()
73 if (err != 0) { in ConnectAndSetWindowDefaults()
74 ALOGE("native_window->setSwapInterval(1) failed: %s (%d)", strerror(-err), err); in ConnectAndSetWindowDefaults()
78 err = native_window_set_shared_buffer_mode(window, false); in ConnectAndSetWindowDefaults()
79 if (err != 0) { in ConnectAndSetWindowDefaults()
80 ALOGE("native_window_set_shared_buffer_mode(false) failed: %s (%d)", strerror(-err), err); in ConnectAndSetWindowDefaults()
84 err = native_window_set_auto_refresh(window, false); in ConnectAndSetWindowDefaults()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp54 #define OVERRIDE_SURFACE_ERROR(err) \ argument
56 if (err == -ENODEV) { \
57 err = BAD_VALUE; \
115 status_t err = NO_ERROR; in connectSurface() local
117 err = surface->connect(NATIVE_WINDOW_API_CAMERA, /*listener*/NULL); in connectSurface()
118 if (err != OK) { in connectSurface()
120 strerror(-err), err); in connectSurface()
121 return err; in connectSurface()
124 err = native_window_set_usage(surface.get(), GRALLOC_USAGE_SW_WRITE_OFTEN); in connectSurface()
125 if (err != NO_ERROR) { in connectSurface()
[all …]
/frameworks/native/libs/gralloc/types/
DGralloc4.cpp210 status_t err = encodeHelper(input, &outputHidlVec); in encode() local
211 if (err) { in encode()
212 return err; in encode()
215 err = outputHidlVec.resize(); in encode()
216 if (err) { in encode()
217 return err; in encode()
228 status_t err = encodeMetadataType(metadataType, &outputHidlVec); in encodeMetadata() local
229 if (err) { in encodeMetadata()
230 return err; in encodeMetadata()
233 err = encodeHelper(input, &outputHidlVec); in encodeMetadata()
[all …]
/frameworks/base/libs/storage/
DIMountService.cpp72 int32_t err = reply.readExceptionCode(); in registerListener() local
73 if (err < 0) { in registerListener()
74 ALOGD("registerListener caught exception %d\n", err); in registerListener()
88 int32_t err = reply.readExceptionCode(); in unregisterListener() local
89 if (err < 0) { in unregisterListener()
90 ALOGD("unregisterListener caught exception %d\n", err); in unregisterListener()
103 int32_t err = reply.readExceptionCode(); in isUsbMassStorageConnected() local
104 if (err < 0) { in isUsbMassStorageConnected()
105 ALOGD("isUsbMassStorageConnected caught exception %d\n", err); in isUsbMassStorageConnected()
120 int32_t err = reply.readExceptionCode(); in setUsbMassStorageEnabled() local
[all …]
/frameworks/native/libs/incidentcompanion/src/
DIncidentManager.cpp36 status_t err; in writeToParcel() local
38 err = out->writeInt64(mTimestampNs); in writeToParcel()
39 if (err != NO_ERROR) { in writeToParcel()
40 return err; in writeToParcel()
44 err = out->writeInt32(mPrivacyPolicy); in writeToParcel()
45 if (err != NO_ERROR) { in writeToParcel()
46 return err; in writeToParcel()
50 err = out->writeInt32(1); in writeToParcel()
51 if (err != NO_ERROR) { in writeToParcel()
52 return err; in writeToParcel()
[all …]
/frameworks/av/camera/camera2/
DOutputConfiguration.cpp88 status_t err = OK; in readFromParcel() local
93 if ((err = parcel->readInt32(&rotation)) != OK) { in readFromParcel()
95 return err; in readFromParcel()
99 if ((err = parcel->readInt32(&setID)) != OK) { in readFromParcel()
101 return err; in readFromParcel()
105 if ((err = parcel->readInt32(&surfaceType)) != OK) { in readFromParcel()
107 return err; in readFromParcel()
111 if ((err = parcel->readInt32(&width)) != OK) { in readFromParcel()
113 return err; in readFromParcel()
117 if ((err = parcel->readInt32(&height)) != OK) { in readFromParcel()
[all …]
DSessionConfiguration.cpp30 status_t err = OK; in readFromParcel() local
35 if ((err = parcel->readInt32(&operatingMode)) != OK) { in readFromParcel()
37 return err; in readFromParcel()
41 if ((err = parcel->readInt32(&inputWidth)) != OK) { in readFromParcel()
43 return err; in readFromParcel()
47 if ((err = parcel->readInt32(&inputHeight)) != OK) { in readFromParcel()
49 return err; in readFromParcel()
53 if ((err = parcel->readInt32(&inputFormat)) != OK) { in readFromParcel()
55 return err; in readFromParcel()
59 if ((err = parcel->readParcelableVector(&outputStreams)) != OK) { in readFromParcel()
[all …]
DCaptureRequest.cpp51 status_t err = OK; in readFromParcel() local
54 if ((err = parcel->readInt32(&settingsCount)) != OK) { in readFromParcel()
55 ALOGE("%s: Failed to read the settings count from parcel: %d", __FUNCTION__, err); in readFromParcel()
56 return err; in readFromParcel()
66 if ((err = parcel->readString16(&id)) != OK) { in readFromParcel()
72 if ((err = settings.readFromParcel(parcel)) != OK) { in readFromParcel()
74 return err; in readFromParcel()
81 if ((err = parcel->readInt32(&isReprocess)) != OK) { in readFromParcel()
83 return err; in readFromParcel()
88 if ((err = parcel->readInt32(&size)) != OK) { in readFromParcel()
[all …]
DConcurrentCamera.cpp43 status_t err = OK; in readFromParcel() local
46 if ((err = parcel->readInt32(&cameraIdCount)) != OK) { in readFromParcel()
47 ALOGE("%s: Failed to read the camera id count from parcel: %d", __FUNCTION__, err); in readFromParcel()
48 return err; in readFromParcel()
52 if ((err = parcel->readString16(&id)) != OK) { in readFromParcel()
54 return err; in readFromParcel()
68 status_t err = OK; in writeToParcel() local
70 if ((err = parcel->writeInt32(mConcurrentCameraIds.size())) != OK) { in writeToParcel()
71 ALOGE("%s: Failed to write the camera id count to parcel: %d", __FUNCTION__, err); in writeToParcel()
72 return err; in writeToParcel()
[all …]
/frameworks/av/media/libmedia/
DNdkMediaErrorPriv.cpp24 media_status_t translate_error(status_t err) { in translate_error() argument
26 if (err == OK) { in translate_error()
28 } else if (err == ERROR_END_OF_STREAM) { in translate_error()
30 } else if (err == ERROR_IO) { in translate_error()
32 } else if (err == ERROR_MALFORMED) { in translate_error()
34 } else if (err == INVALID_OPERATION) { in translate_error()
36 } else if (err == UNKNOWN_ERROR) { in translate_error()
40 ALOGE("sf error code: %d", err); in translate_error()
44 status_t reverse_translate_error(media_status_t err) { in reverse_translate_error() argument
46 if (err == AMEDIA_OK) { in reverse_translate_error()
[all …]
/frameworks/av/cmds/stagefright/
DSimplePlayer.cpp50 status_t err = msg->postAndAwaitResponse(response); in PostAndAwaitResponse() local
52 if (err != OK) { in PostAndAwaitResponse()
53 return err; in PostAndAwaitResponse()
56 if (!(*response)->findInt32("err", &err)) { in PostAndAwaitResponse()
57 err = OK; in PostAndAwaitResponse()
60 return err; in PostAndAwaitResponse()
111 status_t err; in onMessageReceived() local
113 err = INVALID_OPERATION; in onMessageReceived()
123 response->setInt32("err", err); in onMessageReceived()
130 status_t err; in onMessageReceived() local
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCameraDeviceUserShim.java429 String err = "Cannot submit request, device has been closed."; in submitRequest() local
430 Log.e(TAG, err); in submitRequest()
431 throw new ServiceSpecificException(ICameraService.ERROR_DISCONNECTED, err); in submitRequest()
436 String err = "Cannot submit request, configuration change in progress."; in submitRequest() local
437 Log.e(TAG, err); in submitRequest()
438 throw new ServiceSpecificException(ICameraService.ERROR_INVALID_OPERATION, err); in submitRequest()
450 String err = "Cannot submit request list, device has been closed."; in submitRequestList() local
451 Log.e(TAG, err); in submitRequestList()
452 throw new ServiceSpecificException(ICameraService.ERROR_DISCONNECTED, err); in submitRequestList()
457 String err = "Cannot submit request, configuration change in progress."; in submitRequestList() local
[all …]
/frameworks/base/libs/services/src/os/
DDropBoxManager.cpp69 status_t err; in writeToParcel() local
71 err = out->writeString16(mTag); in writeToParcel()
72 if (err != NO_ERROR) { in writeToParcel()
73 return err; in writeToParcel()
76 err = out->writeInt64(mTimeMillis); in writeToParcel()
77 if (err != NO_ERROR) { in writeToParcel()
78 return err; in writeToParcel()
82 err = out->writeInt32(mFlags & ~HAS_BYTE_ARRAY); // Clear bit just to be safe in writeToParcel()
83 if (err != NO_ERROR) { in writeToParcel()
84 return err; in writeToParcel()
[all …]
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp217 int err; in write_update_file() local
233 err = dataStream->WriteEntityHeader(key, bytesLeft); in write_update_file()
234 if (err != 0) { in write_update_file()
236 return err; in write_update_file()
243 err = dataStream->WriteEntityData(&metadata, sizeof(metadata)); in write_update_file()
244 if (err != 0) { in write_update_file()
246 return err; in write_update_file()
256 err = dataStream->WriteEntityData(buf, amt); in write_update_file()
257 if (err != 0) { in write_update_file()
259 return err; in write_update_file()
[all …]
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java92 System.err.println("Exception caught:"); in main()
110 System.err.println(BMGR_NOT_RUNNING_ERR); in run()
198 System.err.println("Unknown command"); in run()
203 System.err.println(e.toString()); in handleRemoteException()
204 System.err.println(BMGR_NOT_RUNNING_ERR); in handleRemoteException()
210 System.err.println(BMGR_NOT_ACTIVATED_FOR_USER + userId); in isBackupActive()
434 System.err.println(PM_NOT_RUNNING_ERR); in backupNowAllPackages()
441 System.err.println(e.toString()); in backupNowAllPackages()
442 System.err.println(PM_NOT_RUNNING_ERR); in backupNowAllPackages()
471 int err = mBmgr.requestBackupForUser( in backupNowPackages() local
[all …]
/frameworks/av/cmds/screenrecord/
Dscreenrecord.cpp163 status_t err = -errno; in configureSignals() local
166 return err; in configureSignals()
169 status_t err = -errno; in configureSignals() local
172 return err; in configureSignals()
184 status_t err; in prepareEncoder() local
227 err = codec->configure(format, NULL, NULL, in prepareEncoder()
229 if (err != NO_ERROR) { in prepareEncoder()
231 kMimeTypeAvc, gVideoWidth, gVideoHeight, err); in prepareEncoder()
233 return err; in prepareEncoder()
241 err = codec->setInputSurface(surface); in prepareEncoder()
[all …]
/frameworks/av/media/libaaudio/src/binding/
DIAAudioService.cpp63 status_t err = remote()->transact(OPEN_STREAM, data, &reply); in openStream() local
64 if (err != NO_ERROR) { in openStream()
65 ALOGE("BpAAudioService::client openStream transact failed %d", err); in openStream()
66 return AAudioConvert_androidToAAudioResult(err); in openStream()
70 err = reply.readInt32(&stream); in openStream()
71 if (err != NO_ERROR) { in openStream()
72 ALOGE("BpAAudioService::client transact(OPEN_STREAM) readInt %d", err); in openStream()
73 return AAudioConvert_androidToAAudioResult(err); in openStream()
77 err = configurationOutput.readFromParcel(&reply); in openStream()
78 if (err != NO_ERROR) { in openStream()
[all …]
/frameworks/base/libs/services/src/content/
DComponentName.cpp50 status_t err; in readFromParcel() local
58 err = in->readUtf8FromUtf16(&mPackage); in readFromParcel()
59 if (err != NO_ERROR) { in readFromParcel()
60 return err; in readFromParcel()
63 err = in->readUtf8FromUtf16(&mClass); in readFromParcel()
64 if (err != NO_ERROR) { in readFromParcel()
65 return err; in readFromParcel()
72 status_t err; in writeToParcel() local
74 err = out->writeUtf8AsUtf16(mPackage); in writeToParcel()
75 if (err != NO_ERROR) { in writeToParcel()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DLayerCallback_test.cpp44 int err = getBuffer(&buffer, &fence); in fillTransaction() local
45 if (err != NO_ERROR) { in fillTransaction()
46 return err; in fillTransaction()
93 int err = fillTransaction(transaction, &callback, layer, true, true); in TEST_F() local
94 if (err) { in TEST_F()
112 int err = fillTransaction(transaction, &callback, layer, false, false); in TEST_F() local
113 if (err) { in TEST_F()
132 int err = fillTransaction(transaction, &callback, layer, true, false); in TEST_F() local
133 if (err) { in TEST_F()
151 int err = fillTransaction(transaction, &callback, layer, false, true); in TEST_F() local
[all …]

12345678910>>...30