Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 2064) sorted by relevance

12345678910>>...83

/frameworks/av/services/camera/libcameraservice/api1/client2/
DStreamingProcessor.cpp63 status_t res; in setPreviewWindow() local
65 res = deletePreviewStream(); in setPreviewWindow()
66 if (res != OK) return res; in setPreviewWindow()
77 status_t res; in setRecordingWindow() local
79 res = deleteRecordingStream(); in setRecordingWindow()
80 if (res != OK) return res; in setRecordingWindow()
101 status_t res; in updatePreviewRequest() local
118 res = device->createDefaultRequest( in updatePreviewRequest()
121 res = device->createDefaultRequest(CAMERA3_TEMPLATE_PREVIEW, in updatePreviewRequest()
125 if (res != OK) { in updatePreviewRequest()
[all …]
DCaptureSequencer.cpp85 status_t res = -1; in waitUntilIdle() local
89 res = mStateChanged.waitRelative(mStateMutex, timeout); in waitUntilIdle()
90 if (res != OK) return res; in waitUntilIdle()
264 status_t res; in manageIdle() local
267 res = mStartCaptureSignal.waitRelative(mInputMutex, in manageIdle()
269 if (res == TIMED_OUT) break; in manageIdle()
280 status_t res = OK; in manageDone() local
298 res = INVALID_OPERATION; in manageDone()
301 res = client->getCameraDevice()->waitUntilDrained(); in manageDone()
302 if (res != OK) { in manageDone()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Dfastidct.cpp329 int res, res2; in idct_row1Inter() local
341 res = tmp + (pred_word & 0xFF); in idct_row1Inter()
342 CLIP_RESULT(res); in idct_row1Inter()
345 dst_word = (res2 << 8) | res; in idct_row1Inter()
346 res = tmp + ((pred_word >> 16) & 0xFF); in idct_row1Inter()
347 CLIP_RESULT(res); in idct_row1Inter()
348 dst_word |= (res << 16); in idct_row1Inter()
349 res = tmp + ((pred_word >> 24) & 0xFF); in idct_row1Inter()
350 CLIP_RESULT(res); in idct_row1Inter()
351 dst_word |= (res << 24); in idct_row1Inter()
[all …]
/frameworks/compile/mclinker/lib/Script/
DBinaryOp.cpp29 IntOperand* res = result(); in eval() local
30 res->setValue(m_pOperand[0]->value() * m_pOperand[1]->value()); in eval()
31 return res; in eval()
37 IntOperand* res = result(); in eval() local
38 res->setValue(m_pOperand[0]->value() / m_pOperand[1]->value()); in eval()
39 return res; in eval()
45 IntOperand* res = result(); in eval() local
46 res->setValue(m_pOperand[0]->value() % m_pOperand[1]->value()); in eval()
47 return res; in eval()
53 IntOperand* res = result(); in eval() local
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3OutputStream.cpp168 status_t res; in getBufferLocked() local
169 res = getBufferLockedCommon(&anb, &fenceFd); in getBufferLocked()
170 if (res != OK) { in getBufferLocked()
171 return res; in getBufferLocked()
195 status_t res = returnAnyBufferLocked(buffer, timestamp, /*output*/true, surface_ids); in returnBufferLocked() local
197 if (res != OK) { in returnBufferLocked()
198 return res; in returnBufferLocked()
218 status_t res; in returnBufferCheckedLocked() local
248 res = currentConsumer->cancelBuffer(currentConsumer.get(), in returnBufferCheckedLocked()
251 if (shouldLogError(res, state)) { in returnBufferCheckedLocked()
[all …]
DCamera3StreamSplitter.cpp51 status_t res = OK; in connect() local
71 res = addOutputLocked(it.first, it.second); in connect()
72 if (res != OK) { in connect()
74 __FUNCTION__, strerror(-res), res); in connect()
75 return res; in connect()
98 res = mProducer->setAsyncMode(true); in connect()
99 if (res != OK) { in connect()
101 strerror(-res), res); in connect()
102 return res; in connect()
105 res = mConsumer->consumerConnect(this, /* controlledByApp */ false); in connect()
[all …]
DCamera3SharedOutputStream.cpp54 status_t res = OK; in connectStreamSplitterLocked() local
68 res = mStreamSplitter->connect(initialSurfaces, usage, mUsage, camera3_stream::max_buffers, in connectStreamSplitterLocked()
70 if (res != OK) { in connectStreamSplitterLocked()
72 __FUNCTION__, strerror(-res), res); in connectStreamSplitterLocked()
73 return res; in connectStreamSplitterLocked()
76 return res; in connectStreamSplitterLocked()
82 status_t res = OK; in attachBufferToSplitterLocked() local
89 res = splitter->attachBufferToOutputs(anb, surface_ids); in attachBufferToSplitterLocked()
91 if (res != OK) { in attachBufferToSplitterLocked()
93 __FUNCTION__, mId, strerror(-res), res); in attachBufferToSplitterLocked()
[all …]
/frameworks/av/camera/
DCaptureResult.cpp45 status_t res = OK; in readFromParcel() local
46 if ((res = parcel->readString16(&cameraId)) != OK) { in readFromParcel()
47 ALOGE("%s: Failed to read camera id: %d", __FUNCTION__, res); in readFromParcel()
48 return res; in readFromParcel()
71 status_t res = OK; in writeToParcel() local
72 if ((res = parcel->writeString16(errorPhysicalCameraId)) != OK) { in writeToParcel()
73 ALOGE("%s: Failed to write physical camera ID to parcel: %d", __FUNCTION__, res); in writeToParcel()
74 return res; in writeToParcel()
84 status_t res; in readFromParcel() local
89 if ((res = parcel->readString16(&mPhysicalCameraId)) != OK) { in readFromParcel()
[all …]
/frameworks/av/services/camera/libcameraservice/api1/
DCamera2Client.cpp77 status_t res = mDevice->createDefaultRequest(CAMERA2_TEMPLATE_STILL_CAPTURE, &stillTemplate); in isZslEnabledInStillTemplate() local
78 if (res == OK) { in isZslEnabledInStillTemplate()
93 status_t res; in initializeImpl() local
95 res = Camera2ClientBase::initialize(providerPtr, monitorTags); in initializeImpl()
96 if (res != OK) { in initializeImpl()
97 return res; in initializeImpl()
103 res = l.mParameters.initialize(mDevice.get(), mDeviceVersion); in initializeImpl()
104 if (res != OK) { in initializeImpl()
106 __FUNCTION__, mCameraId, strerror(-res), res); in initializeImpl()
400 binder::Status res = binder::Status::ok(); in disconnect() local
[all …]
/frameworks/wilhelm/tests/mimeUri/
DslesTestGetPositionUri.cpp69 SLresult res = (*caller)->GetFillLevel(caller, &level); CheckErr(res); in PrefetchEventCallback() local
72 res = (*caller)->GetPrefetchStatus(caller, &status); CheckErr(res); in PrefetchEventCallback()
96 SLresult res; in PlayEventCallback() local
100 res = (*caller)->GetPosition(caller, &posMsec); CheckErr(res); in PlayEventCallback()
113 res = (*caller)->GetPosition(caller, &posMsec); CheckErr(res); in PlayEventCallback()
118 res = (*caller)->GetPosition(caller, &posMsec); CheckErr(res); in PlayEventCallback()
131 SLresult res; in TestGetPositionUri() local
156 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestGetPositionUri()
157 CheckErr(res); in TestGetPositionUri()
171 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0, in TestGetPositionUri()
[all …]
DslesTestSlowDownUri.cpp75 SLresult res = (*pRateItf)->GetRate(pRateItf, &rate); CheckErr(res); in PlayEventCallback() local
76 res = (*pRateItf)->GetRateRange(pRateItf, 0, &minRate, &maxRate, &stepSize, &capa); in PlayEventCallback()
77 CheckErr(res); in PlayEventCallback()
84 res = (*pRateItf)->SetRate(pRateItf, rate); CheckErr(res); in PlayEventCallback()
85 if (res == SL_RESULT_FEATURE_UNSUPPORTED) { in PlayEventCallback()
88 CheckErr(res); in PlayEventCallback()
182 SLresult res; in TestSlowDownUri() local
203 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); CheckErr(res); in TestSlowDownUri()
214 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0, in TestSlowDownUri()
215 iidArray, required); CheckErr(res); in TestSlowDownUri()
[all …]
DslesTestManyPlayers.cpp76 SLresult res; in PrefetchEventCallback() local
79 res = (*caller)->GetFillLevel(caller, &level); CheckErrPlyr(res, *pPlayerId); in PrefetchEventCallback()
82 res = (*caller)->GetPrefetchStatus(caller, &status); CheckErrPlyr(res, *pPlayerId); in PrefetchEventCallback()
107 SLresult res; in PlayEventCallback() local
116 res = (*caller)->GetPosition(caller, &pMsec); CheckErrPlyr(res, *pPlayerId); in PlayEventCallback()
123 res = (*caller)->GetPosition(caller, &pMsec); CheckErrPlyr(res, *pPlayerId); in PlayEventCallback()
132 SLresult res; in TestSetup() local
139 res = slCreateEngine( &slEngine, 1, EngineOption, 0, NULL, NULL); in TestSetup()
140 CheckErr(res); in TestSetup()
142 res = (*slEngine)->Realize(slEngine, SL_BOOLEAN_FALSE); in TestSetup()
[all …]
DslesTestPlayUri.cpp129 SLresult res; in TestPlayUri() local
149 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayUri()
150 CheckErr(res); in TestPlayUri()
164 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0, in TestPlayUri()
165 iidArray, required); CheckErr(res); in TestPlayUri()
168 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE); in TestPlayUri()
169 CheckErr(res); in TestPlayUri()
188 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestPlayUri()
189 MAX_NUMBER_INTERFACES, iidArray, required); CheckErr(res); in TestPlayUri()
192 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestPlayUri()
[all …]
DslesTestLoopUri.cpp126 SLresult res; in TestLoopUri() local
146 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestLoopUri()
147 CheckErr(res); in TestLoopUri()
158 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0, in TestLoopUri()
159 iidArray, required); CheckErr(res); in TestLoopUri()
162 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE); in TestLoopUri()
163 CheckErr(res); in TestLoopUri()
186 res = (*EngineItf)->CreateAudioPlayer(EngineItf, &player, &audioSource, &audioSink, in TestLoopUri()
187 MAX_NUMBER_INTERFACES, iidArray, required); CheckErr(res); in TestLoopUri()
190 res = (*player)->Realize(player, SL_BOOLEAN_FALSE); CheckErr(res); in TestLoopUri()
[all …]
/frameworks/wilhelm/tests/examples/
DslesTestSawtoothBufferQueue.cpp59 void CheckErr( SLresult res ) in CheckErr() argument
61 if ( res != SL_RESULT_SUCCESS ) in CheckErr()
63 fprintf(stdout, "%u SL failure, exiting\n", res); in CheckErr()
88 SLresult res; in BufferQueueCallback() local
95 res = (*queueItf)->Enqueue(queueItf, (void*) pCntxt->pData, in BufferQueueCallback()
97 CheckErr(res); in BufferQueueCallback()
109 SLresult res; in TestPlaySawtoothBufferQueue() local
135 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlaySawtoothBufferQueue()
136 CheckErr(res); in TestPlaySawtoothBufferQueue()
149 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0, in TestPlaySawtoothBufferQueue()
[all …]
DslesTestDecodeAac.cpp209 SLresult res = (*caller)->GetPosition(caller, &position); in PlayCallback() local
210 ExitOnError(res); in PlayCallback()
241 SLresult res; in AndroidBufferQueueCallback() local
273 res = (*caller)->Enqueue(caller, (void *)&kEosBufferCntxt /*pBufferContext*/, in AndroidBufferQueueCallback()
277 ExitOnError(res); in AndroidBufferQueueCallback()
288 res = (*caller)->Enqueue(caller, NULL /*pBufferContext*/, in AndroidBufferQueueCallback()
290 ExitOnError(res); in AndroidBufferQueueCallback()
332 SLresult res; in DecPlayCallback() local
333 res = (*queueItf)->Enqueue(queueItf, pCntxt->pData, BUFFER_SIZE_IN_BYTES); in DecPlayCallback()
334 ExitOnError(res); in DecPlayCallback()
[all …]
/frameworks/av/services/camera/libcameraservice/
DCameraFlashlight.cpp80 status_t res = OK; in setTorchMode() local
98 res = createFlashlightControl(cameraId); in setTorchMode()
99 if (res) { in setTorchMode()
100 return res; in setTorchMode()
102 res = mFlashControl->setTorchMode(cameraId, enabled); in setTorchMode()
103 return res; in setTorchMode()
108 res = mFlashControl->setTorchMode(cameraId, enabled); in setTorchMode()
109 if (res == BAD_INDEX) { in setTorchMode()
113 res = createFlashlightControl(cameraId); in setTorchMode()
114 if (res) { in setTorchMode()
[all …]
/frameworks/wilhelm/tests/
DmimeUri_test.cpp63 void CheckErr( SLresult res ) in CheckErr() argument
65 if ( res != SL_RESULT_SUCCESS ) { in CheckErr()
66 fprintf(stderr, "%u SL failure, exiting\n", res); in CheckErr()
103 SLresult res; in TestPlayUri() local
123 res = (*sl)->GetInterface(sl, SL_IID_ENGINE, (void*)&EngineItf); in TestPlayUri()
124 CheckErr(res); in TestPlayUri()
138 res = (*EngineItf)->CreateOutputMix(EngineItf, &OutputMix, 0, in TestPlayUri()
139 iidArray, required); CheckErr(res); in TestPlayUri()
142 res = (*OutputMix)->Realize(OutputMix, SL_BOOLEAN_FALSE); in TestPlayUri()
143 CheckErr(res); in TestPlayUri()
[all …]
/frameworks/native/libs/vr/libpdx_uds/
Dchannel_parcelable.cpp39 status_t res = OK; in writeToParcel() local
46 res = parcel->writeUint32(kUdsMagicParcelHeader); in writeToParcel()
47 if (res != OK) { in writeToParcel()
48 ALOGE("ChannelParcelable::writeToParcel: Cannot write magic: res=%d.", res); in writeToParcel()
49 return res; in writeToParcel()
52 res = parcel->writeFileDescriptor(data_fd_.Get()); in writeToParcel()
53 if (res != OK) { in writeToParcel()
55 res); in writeToParcel()
56 return res; in writeToParcel()
59 res = parcel->writeFileDescriptor(pollin_event_fd_.Get()); in writeToParcel()
[all …]
/frameworks/wilhelm/tests/native-media/jni/
Dnative-media-jni.c102 XAresult res; in AndroidBufferQueueCallback() local
117 res = (*playerBQItf)->Clear(playerBQItf); in AndroidBufferQueueCallback()
118 assert(XA_RESULT_SUCCESS == res); in AndroidBufferQueueCallback()
196 res = (*caller)->Enqueue(caller, NULL /*pBufferContext*/, in AndroidBufferQueueCallback()
201 assert(XA_RESULT_SUCCESS == res); in AndroidBufferQueueCallback()
209 res = (*caller)->Enqueue(caller, (void *)&kEosBufferCntxt /*pBufferContext*/, in AndroidBufferQueueCallback()
214 assert(XA_RESULT_SUCCESS == res); in AndroidBufferQueueCallback()
242 XAresult res; in StreamChangeCallback() local
244 res = (*caller)->QueryStreamType(caller, streamIndex, &domain); in StreamChangeCallback()
245 assert(XA_RESULT_SUCCESS == res); in StreamChangeCallback()
[all …]
/frameworks/base/rs/java/android/renderscript/
DDouble3.java51 Double3 res = new Double3(); in add() local
52 res.x = a.x + b.x; in add()
53 res.y = a.y + b.y; in add()
54 res.z = a.z + b.z; in add()
56 return res; in add()
89 Double3 res = new Double3(); in add() local
90 res.x = a.x + b; in add()
91 res.y = a.y + b; in add()
92 res.z = a.z + b; in add()
94 return res; in add()
[all …]
DFloat4.java54 Float4 res = new Float4(); in add() local
55 res.x = a.x + b.x; in add()
56 res.y = a.y + b.y; in add()
57 res.z = a.z + b.z; in add()
58 res.w = a.w + b.w; in add()
60 return res; in add()
95 Float4 res = new Float4(); in add() local
96 res.x = a.x + b; in add()
97 res.y = a.y + b; in add()
98 res.z = a.z + b; in add()
[all …]
DDouble4.java54 Double4 res = new Double4(); in add() local
55 res.x = a.x + b.x; in add()
56 res.y = a.y + b.y; in add()
57 res.z = a.z + b.z; in add()
58 res.w = a.w + b.w; in add()
60 return res; in add()
95 Double4 res = new Double4(); in add() local
96 res.x = a.x + b; in add()
97 res.y = a.y + b; in add()
98 res.z = a.z + b; in add()
[all …]
/frameworks/base/core/java/android/content/
DLoggingContentInterface.java21 import android.content.res.AssetFileDescriptor;
75 public <T> T setResult(T res) { in setResult() argument
76 if (res instanceof Cursor) { in setResult()
78 DatabaseUtils.dumpCursor((Cursor) res, sb); in setResult()
80 sb.append(" = ").append(deepToString(res)); in setResult()
82 return res; in setResult()
98 } catch (Exception res) { in query()
99 l.setResult(res); in query()
100 throw res; in query()
110 } catch (Exception res) { in getType()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java17 package android.content.res;
45 final Resources res = getActivity().getResources(); in testGetEmpty() local
46 assertNull(mCache.getInstance(-1, res, null)); in testGetEmpty()
52 final Resources res = getActivity().getResources(); in testSetGet() local
53 assertEquals(5f, mCache.getInstance(1, res, null)); in testSetGet()
54 assertNotSame(5f, mCache.getInstance(1, res, null)); in testSetGet()
55 assertEquals(null, mCache.getInstance(1, res, getActivity().getTheme())); in testSetGet()
61 final Resources res = getActivity().getResources(); in testSetGetThemed() local
62 assertEquals(null, mCache.getInstance(1, res, null)); in testSetGetThemed()
63 assertEquals(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testSetGetThemed()
[all …]

12345678910>>...83