Home
last modified time | relevance | path

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

12345678910>>...30

/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.cpp86 static inline bool isOMXError(int32_t err) { in isOMXError() argument
87 return (ERROR_CODEC_MIN <= err && err <= ERROR_CODEC_MAX); in isOMXError()
105 status_t err; in statusFromBinderStatus() local
106 if ((err = status.serviceSpecificErrorCode()) != OK) { in statusFromBinderStatus()
107 return err; in statusFromBinderStatus()
109 if ((err = status.transactionError()) != OK) { in statusFromBinderStatus()
110 return err; in statusFromBinderStatus()
117 static inline status_t makeNoSideEffectStatus(status_t err) { in makeNoSideEffectStatus() argument
118 switch (err) { in makeNoSideEffectStatus()
125 return err; in makeNoSideEffectStatus()
[all …]
/frameworks/native/libs/gui/
DITransactionCompletedListener.cpp34 status_t err = output->writeStrongBinder(surfaceControl); in writeToParcel() local
35 if (err != NO_ERROR) { in writeToParcel()
36 return err; in writeToParcel()
38 err = output->writeInt64(acquireTime); in writeToParcel()
39 if (err != NO_ERROR) { in writeToParcel()
40 return err; in writeToParcel()
43 err = output->writeBool(true); in writeToParcel()
44 if (err != NO_ERROR) { in writeToParcel()
45 return err; in writeToParcel()
47 err = output->write(*previousReleaseFence); 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/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/incident/src/
DIncidentReportArgs.cpp50 status_t err; in writeToParcel() local
52 err = out->writeInt32(mAll); in writeToParcel()
53 if (err != NO_ERROR) { in writeToParcel()
54 return err; in writeToParcel()
57 err = out->writeInt32(mSections.size()); in writeToParcel()
58 if (err != NO_ERROR) { in writeToParcel()
59 return err; in writeToParcel()
63 err = out->writeInt32(*it); in writeToParcel()
64 if (err != NO_ERROR) { in writeToParcel()
65 return err; in writeToParcel()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_camera2_legacy_LegacyCameraDevice.cpp53 #define OVERRIDE_SURFACE_ERROR(err) \ argument
55 if (err == -ENODEV) { \
56 err = BAD_VALUE; \
114 status_t err = NO_ERROR; in connectSurface() local
116 err = surface->connect(NATIVE_WINDOW_API_CAMERA, /*listener*/NULL); in connectSurface()
117 if (err != OK) { in connectSurface()
119 strerror(-err), err); in connectSurface()
120 return err; in connectSurface()
123 err = native_window_set_usage(surface.get(), GRALLOC_USAGE_SW_WRITE_OFTEN); in connectSurface()
124 if (err != NO_ERROR) { in connectSurface()
[all …]
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/examples/
Dadd_person.go24 if _, err := fmt.Fscanf(rd, "%d\n", &p.Id); err != nil {
25 return p, err
29 name, err := rd.ReadString('\n')
30 if err != nil {
31 return p, err
39 email, err := rd.ReadString('\n')
40 if err != nil {
41 return p, err
47 phone, err := rd.ReadString('\n')
48 if err != nil {
[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/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/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 …]
/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/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java88 System.err.println("Exception caught:"); in main()
106 System.err.println(BMGR_NOT_RUNNING_ERR); in run()
189 System.err.println("Unknown command"); in run()
196 System.err.println(BMGR_NOT_RUNNING_ERR); in isBackupActive()
200 System.err.println(e.toString()); in isBackupActive()
201 System.err.println(BMGR_NOT_RUNNING_ERR); in isBackupActive()
217 System.err.println(e.toString()); in doActivated()
218 System.err.println(BMGR_NOT_RUNNING_ERR); in doActivated()
233 System.err.println(e.toString()); in doEnabled()
234 System.err.println(BMGR_NOT_RUNNING_ERR); in doEnabled()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCameraDeviceUserShim.java428 String err = "Cannot submit request, device has been closed."; in submitRequest() local
429 Log.e(TAG, err); in submitRequest()
430 throw new ServiceSpecificException(ICameraService.ERROR_DISCONNECTED, err); in submitRequest()
435 String err = "Cannot submit request, configuration change in progress."; in submitRequest() local
436 Log.e(TAG, err); in submitRequest()
437 throw new ServiceSpecificException(ICameraService.ERROR_INVALID_OPERATION, err); in submitRequest()
449 String err = "Cannot submit request list, device has been closed."; in submitRequestList() local
450 Log.e(TAG, err); in submitRequestList()
451 throw new ServiceSpecificException(ICameraService.ERROR_DISCONNECTED, err); in submitRequestList()
456 String err = "Cannot submit request, configuration change in progress."; in submitRequestList() local
[all …]
/frameworks/base/libs/hwui/renderthread/
DVulkanSurface.cpp115 int err = native_window_api_connect(window, NATIVE_WINDOW_API_EGL); in ResetNativeWindow() local
116 if (err != 0) { in ResetNativeWindow()
117 ALOGW("native_window_api_connect failed: %s (%d)", strerror(-err), err); in ResetNativeWindow()
122 err = window->setSwapInterval(window, 1); in ResetNativeWindow()
123 if (err != 0) { in ResetNativeWindow()
124 ALOGW("native_window->setSwapInterval(1) failed: %s (%d)", strerror(-err), err); in ResetNativeWindow()
128 err = native_window_set_shared_buffer_mode(window, false); in ResetNativeWindow()
129 if (err != 0) { in ResetNativeWindow()
130 ALOGW("native_window_set_shared_buffer_mode(false) failed: %s (%d)", strerror(-err), err); in ResetNativeWindow()
134 err = native_window_set_auto_refresh(window, false); in ResetNativeWindow()
[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/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 …]
DStatsDimensionsValue.cpp68 status_t err ; in writeToParcel() local
70 err = out->writeInt32(mField); in writeToParcel()
71 if (err != NO_ERROR) { in writeToParcel()
72 return err; in writeToParcel()
74 err = out->writeInt32(mValueType); in writeToParcel()
75 if (err != NO_ERROR) { in writeToParcel()
76 return err; in writeToParcel()
80 err = out->writeString16(mStrValue); in writeToParcel()
83 err = out->writeInt32(mIntValue); in writeToParcel()
86 err = out->writeInt64(mLongValue); in writeToParcel()
[all …]
/frameworks/base/cmds/idmap/
Dinspect.cpp172 status_t err = buf.nextUint32(&i); in parse_idmap_header() local
173 if (err != NO_ERROR) { in parse_idmap_header()
174 return err; in parse_idmap_header()
186 err = buf.nextUint32(&i); in parse_idmap_header()
187 if (err != NO_ERROR) { in parse_idmap_header()
188 return err; in parse_idmap_header()
192 err = buf.nextUint32(&i); in parse_idmap_header()
193 if (err != NO_ERROR) { in parse_idmap_header()
194 return err; in parse_idmap_header()
198 err = buf.nextUint32(&i); in parse_idmap_header()
[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/opt/gamesdk/third_party/protobuf-3.0.0/js/
Dgulpfile.js28 function (err, stdout, stderr) { argument
31 cb(err);
37 function (err, stdout, stderr) { argument
40 cb(err);
46 function (err, stdout, stderr) { argument
49 cb(err);
55 function (err, stdout, stderr) { argument
58 cb(err);
66 function (err, stdout, stderr) { argument
69 cb(err);
[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/av/cmds/screenrecord/
Dscreenrecord.cpp157 status_t err = -errno; in configureSignals() local
160 return err; in configureSignals()
163 status_t err = -errno; in configureSignals() local
166 return err; in configureSignals()
178 status_t err; in prepareEncoder() local
221 err = codec->configure(format, NULL, NULL, in prepareEncoder()
223 if (err != NO_ERROR) { in prepareEncoder()
225 kMimeTypeAvc, gVideoWidth, gVideoHeight, err); in prepareEncoder()
227 return err; in prepareEncoder()
235 err = codec->setInputSurface(surface); in prepareEncoder()
[all …]

12345678910>>...30