Home
last modified time | relevance | path

Searched refs:NO_ERROR (Results 1 – 25 of 611) sorted by relevance

12345678910>>...25

/frameworks/native/libs/gui/
DISurfaceComposer.cpp149 int err = NO_ERROR; in authenticateSurfaceTexture()
152 if (err != NO_ERROR) { in authenticateSurfaceTexture()
158 if (err != NO_ERROR) { in authenticateSurfaceTexture()
165 if (err != NO_ERROR) { in authenticateSurfaceTexture()
172 if (err != NO_ERROR) { in authenticateSurfaceTexture()
190 if (err != NO_ERROR) { in getSupportedFrameTimestamps()
197 if (err != NO_ERROR) { in getSupportedFrameTimestamps()
203 if (err != NO_ERROR) { in getSupportedFrameTimestamps()
206 if (result != NO_ERROR) { in getSupportedFrameTimestamps()
212 if (err != NO_ERROR) { in getSupportedFrameTimestamps()
[all …]
DIGraphicBufferProducer.cpp102 if (result != NO_ERROR) { in requestBuffer()
109 if(result != NO_ERROR) { in requestBuffer()
125 if (result != NO_ERROR) { in requestBuffers()
130 if (result != NO_ERROR) { in requestBuffers()
146 if (result != NO_ERROR) { in setMaxDequeuedBufferCount()
160 if (result != NO_ERROR) { in setAsyncMode()
181 if (result != NO_ERROR) { in dequeueBuffer()
188 if (result != NO_ERROR) { in dequeueBuffer()
199 if (result != NO_ERROR) { in dequeueBuffer()
205 if (result != NO_ERROR) { in dequeueBuffer()
[all …]
DITransactionCompletedListener.cpp39 if (err != NO_ERROR) return err; in writeToParcel()
43 if (err != NO_ERROR) return err; in writeToParcel()
49 if (err != NO_ERROR) return err; in writeToParcel()
52 if (err != NO_ERROR) return err; in writeToParcel()
55 if (err != NO_ERROR) return err; in writeToParcel()
58 if (err != NO_ERROR) return err; in writeToParcel()
61 if (err != NO_ERROR) return err; in writeToParcel()
69 if (err != NO_ERROR) return err; in readFromParcel()
73 if (err != NO_ERROR) return err; in readFromParcel()
78 if (err != NO_ERROR) return err; in readFromParcel()
[all …]
/frameworks/native/libs/gui/tests/
DSurfaceTextureGL_test.cpp31 ASSERT_EQ(NO_ERROR, native_window_api_connect(mANW.get(), in TEST_F()
33 ASSERT_EQ(NO_ERROR, native_window_set_buffers_dimensions(mANW.get(), in TEST_F()
35 ASSERT_EQ(NO_ERROR, native_window_set_buffers_format(mANW.get(), in TEST_F()
37 ASSERT_EQ(NO_ERROR, native_window_set_usage(mANW.get(), in TEST_F()
41 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(mANW.get(), in TEST_F()
52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), in TEST_F()
55 ASSERT_EQ(NO_ERROR, mST->updateTexImage()); in TEST_F()
81 ASSERT_EQ(NO_ERROR, native_window_api_connect(mANW.get(), in TEST_F()
83 ASSERT_EQ(NO_ERROR, native_window_set_buffers_dimensions(mANW.get(), in TEST_F()
85 ASSERT_EQ(NO_ERROR, native_window_set_buffers_format(mANW.get(), in TEST_F()
[all …]
DSurface_test.cpp99 ASSERT_EQ(NO_ERROR, mComposerClient->initCheck()); in SetUp()
111 ASSERT_EQ(NO_ERROR, t.setLayer(mSurfaceControl, 0x7fffffff).show(mSurfaceControl).apply()); in SetUp()
142 ASSERT_EQ(NO_ERROR, native_window_set_buffer_count(window.get(), BUFFER_COUNT)); in testSurfaceListener()
147 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(window.get(), &buffers[i])); in testSurfaceListener()
150 ASSERT_EQ(NO_ERROR, window->cancelBuffer(window.get(), buffers[i], -1)); in testSurfaceListener()
156 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(window.get(), &buffer)); in testSurfaceListener()
157 ASSERT_EQ(NO_ERROR, window->queueBuffer(window.get(), buffer, -1)); in testSurfaceListener()
161 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(window.get(), &buffer)); in testSurfaceListener()
167 ASSERT_EQ(NO_ERROR, consumer->acquireBuffer(&releasedItems[i], 0)); in testSurfaceListener()
168 ASSERT_EQ(NO_ERROR, consumer->releaseBuffer(releasedItems[i].mSlot, in testSurfaceListener()
[all …]
DSurfaceTextureFBO_test.cpp30 ASSERT_EQ(NO_ERROR, native_window_api_connect(mANW.get(), in TEST_F()
32 ASSERT_EQ(NO_ERROR, native_window_set_buffers_dimensions(mANW.get(), in TEST_F()
34 ASSERT_EQ(NO_ERROR, native_window_set_buffers_format(mANW.get(), in TEST_F()
36 ASSERT_EQ(NO_ERROR, native_window_set_usage(mANW.get(), in TEST_F()
40 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(mANW.get(), in TEST_F()
52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), in TEST_F()
55 ASSERT_EQ(NO_ERROR, mST->updateTexImage()); in TEST_F()
64 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(mANW.get(), in TEST_F()
71 ASSERT_EQ(NO_ERROR, buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, in TEST_F()
75 ASSERT_EQ(NO_ERROR, buf->unlock()); in TEST_F()
[all …]
/frameworks/av/media/libstagefright/
DSurfaceUtils.cpp33 status_t err = NO_ERROR; in setNativeWindowSizeFormatAndUsage()
38 if (err != NO_ERROR) { in setNativeWindowSizeFormatAndUsage()
44 if (err != NO_ERROR) { in setNativeWindowSizeFormatAndUsage()
51 if (err != NO_ERROR) { in setNativeWindowSizeFormatAndUsage()
57 if (err != NO_ERROR) { in setNativeWindowSizeFormatAndUsage()
73 if (err != NO_ERROR) { in setNativeWindowSizeFormatAndUsage()
80 if (err != NO_ERROR) { in setNativeWindowSizeFormatAndUsage()
82 err = NO_ERROR; in setNativeWindowSizeFormatAndUsage()
92 if (err != NO_ERROR) { in setNativeWindowSizeFormatAndUsage()
101 if (err != NO_ERROR) { in setNativeWindowSizeFormatAndUsage()
[all …]
/frameworks/native/libs/gralloc/types/tests/
DGralloc4_test.cpp78 ASSERT_EQ(NO_ERROR, encode(input, &vec)); in testHelper()
79 ASSERT_EQ(NO_ERROR, decode(vec, &output)); in testHelper()
87 ASSERT_EQ(NO_ERROR, encode(input, &vec)); in testHelperConst()
88 ASSERT_EQ(NO_ERROR, decode(vec, &output)); in testHelperConst()
97 ASSERT_EQ(NO_ERROR, encode(metadataType, input, &vec)); in testHelperMetadataType()
98 ASSERT_EQ(NO_ERROR, decode(metadataType, vec, &output)); in testHelperMetadataType()
107 ASSERT_EQ(NO_ERROR, encode(metadataType, input, &vec)); in testHelperMetadataTypeConst()
108 ASSERT_EQ(NO_ERROR, decode(metadataType, vec, &output)); in testHelperMetadataTypeConst()
116 ASSERT_EQ(NO_ERROR, encode(input, &vec)); in testHelperStableAidlType()
117 ASSERT_EQ(NO_ERROR, decode(vec, &output)); in testHelperStableAidlType()
[all …]
/frameworks/native/libs/binder/tests/
DbinderLibTest.cpp219 EXPECT_THAT(m_server->transact(code, data, &reply), StatusEq(NO_ERROR)); in addServerEtc()
224 EXPECT_THAT(reply.readInt32(&id), StatusEq(NO_ERROR)); in addServerEtc()
315 ret = m_eventTriggered ? NO_ERROR : TIMED_OUT; in waitEvent()
361 if (status != NO_ERROR) { in onTransact()
365 return NO_ERROR; in onTransact()
385 EXPECT_EQ(NO_ERROR, ret); in onTransact()
387 return NO_ERROR; in onTransact()
410 StatusEq(NO_ERROR)); in TEST_F()
416 StatusEq(NO_ERROR)); in TEST_F()
423 StatusEq(NO_ERROR)); in TEST_F()
[all …]
/frameworks/native/libs/incidentcompanion/src/
DIncidentManager.cpp39 if (err != NO_ERROR) { in writeToParcel()
45 if (err != NO_ERROR) { in writeToParcel()
51 if (err != NO_ERROR) { in writeToParcel()
56 if (err != NO_ERROR) { in writeToParcel()
62 if (err != NO_ERROR) { in writeToParcel()
67 return NO_ERROR; in writeToParcel()
75 if (err != NO_ERROR) { in readFromParcel()
80 if (err != NO_ERROR) { in readFromParcel()
85 if (err != NO_ERROR) { in readFromParcel()
99 return NO_ERROR; in readFromParcel()
[all …]
/frameworks/av/media/libmediametrics/
DMediaMetricsItem.cpp143 if (status != NO_ERROR) return status; in readFromParcel()
159 if (status != NO_ERROR) return status; in readFromParcel0()
167 if (status != NO_ERROR) return status; in readFromParcel0()
174 if (status != NO_ERROR) return status; in readFromParcel0()
177 return NO_ERROR; in readFromParcel0()
185 if (status != NO_ERROR) return status; in writeToParcel()
204 if (status != NO_ERROR) return status; in writeToParcel0()
209 if (status != NO_ERROR) return status; in writeToParcel0()
211 return NO_ERROR; in writeToParcel0()
286 if (status == NO_ERROR) { in selfrecord()
[all …]
/frameworks/base/libs/incident/src/
DIncidentReportArgs.cpp55 if (err != NO_ERROR) { in writeToParcel()
60 if (err != NO_ERROR) { in writeToParcel()
66 if (err != NO_ERROR) { in writeToParcel()
72 if (err != NO_ERROR) { in writeToParcel()
78 if (err != NO_ERROR) { in writeToParcel()
84 if (err != NO_ERROR) { in writeToParcel()
89 if (err != NO_ERROR) { in writeToParcel()
94 if (err != NO_ERROR) { in writeToParcel()
99 if (err != NO_ERROR) { in writeToParcel()
103 return NO_ERROR; in writeToParcel()
[all …]
/frameworks/av/media/libmedia/
DIMediaRecorder.cpp164 if (status != NO_ERROR) { in setPrivacySensitive()
176 if (status != NO_ERROR) { in isPrivacySensitive()
180 if (status == NO_ERROR) { in isPrivacySensitive()
311 if (ret == NO_ERROR) { in getMetrics()
409 if (status != NO_ERROR) { in getRoutedDeviceId()
438 || (status = (status_t)reply.readInt32()) != NO_ERROR) { in getActiveMicrophones()
451 return status == NO_ERROR ? (status_t)reply.readInt32() : status; in setPreferredMicrophoneDirection()
460 return status == NO_ERROR ? (status_t)reply.readInt32() : status; in setPreferredMicrophoneFieldDimension()
473 || (status = (status_t)reply.readInt32()) != NO_ERROR) { in getPortId()
478 return NO_ERROR; in getPortId()
[all …]
DIMediaPlayer.cpp481 : (tmp = data.writeInt32(1)) != NO_ERROR in applyVolumeShaper()
483 if (status != NO_ERROR) { in applyVolumeShaper()
489 : (tmp = data.writeInt32(1)) != NO_ERROR in applyVolumeShaper()
491 if (status != NO_ERROR) { in applyVolumeShaper()
497 if (status == NO_ERROR) { in applyVolumeShaper()
500 if (status != NO_ERROR) { in applyVolumeShaper()
512 if (status != NO_ERROR) { in getVolumeShaperState()
517 if (status != NO_ERROR) { in getVolumeShaperState()
584 if (status != NO_ERROR) { in getRoutedDeviceId()
620 return NO_ERROR; in onTransact()
[all …]
/frameworks/base/cmds/incidentd/src/
DPrivacyFilter.cpp104 return NO_ERROR; in strip_field()
112 if (err != NO_ERROR) { in strip_field()
120 return NO_ERROR; in strip_field()
202 return NO_ERROR; in strip()
207 if (err != NO_ERROR) { in strip()
222 return NO_ERROR; in strip()
226 status_t err = NO_ERROR; in writeData()
231 return NO_ERROR; in writeData()
234 err = WriteFully(fd, reader->readBuffer(), reader->currentToRead()) ? NO_ERROR : -errno; in writeData()
236 if (err != NO_ERROR) return err; in writeData()
[all …]
Dproto_util.cpp40 return NO_ERROR; in write_header_section()
44 if (err != NO_ERROR) { in write_header_section()
49 if (err != NO_ERROR) { in write_header_section()
53 return NO_ERROR; in write_header_section()
59 return WriteFully(fd, buf, p - buf) ? NO_ERROR : -errno; in write_section_header()
66 if (err != NO_ERROR) { in write_section()
74 return NO_ERROR; in write_section()
/frameworks/av/media/libaudiofoundation/tests/
Daudiofoundation_parcelable_test.cpp82 ASSERT_EQ(data.writeParcelable(audioGains), NO_ERROR); in TEST()
85 ASSERT_EQ(data.readParcelable(&audioGainsFromParcel), NO_ERROR); in TEST()
93 ASSERT_EQ(data.writeParcelable(audioProfiles), NO_ERROR); in TEST()
96 ASSERT_EQ(data.readParcelable(&audioProfilesFromParcel), NO_ERROR); in TEST()
107 ASSERT_EQ(data.writeParcelable(*audioPort), NO_ERROR); in TEST()
111 ASSERT_EQ(data.readParcelable(audioPortFromParcel.get()), NO_ERROR); in TEST()
120 ASSERT_EQ(data.writeParcelable(*audioPortConfig), NO_ERROR); in TEST()
123 ASSERT_EQ(data.readParcelable(audioPortConfigFromParcel.get()), NO_ERROR); in TEST()
134 ASSERT_EQ(desc->setEncapsulationModes(1 << AUDIO_ENCAPSULATION_MODE_HANDLE), NO_ERROR); in TEST()
136 AUDIO_ENCAPSULATION_METADATA_TYPE_ALL_POSITION_BITS), NO_ERROR); in TEST()
[all …]
/frameworks/base/libs/androidfw/
DBackupData.cpp54 m_status(NO_ERROR), in BackupDataWriter()
83 return NO_ERROR; in write_padding_for()
89 if (m_status != NO_ERROR) { in WriteEntityHeader()
150 if (m_status != NO_ERROR) { in WriteEntityData()
167 return NO_ERROR; in WriteEntityData()
180 m_status(NO_ERROR), in BackupDataReader()
215 if (err != NO_ERROR) { \
226 if (m_status != NO_ERROR) { in ReadNextHeader()
235 return NO_ERROR; in ReadNextHeader()
237 else if (amt != NO_ERROR) { in ReadNextHeader()
[all …]
/frameworks/native/libs/vr/libpdx/
Dserialization_tests.cpp1294 EXPECT_EQ(ErrorCode::NO_ERROR, error); in TEST()
1300 EXPECT_EQ(ErrorCode::NO_ERROR, error); in TEST()
1312 EXPECT_EQ(ErrorCode::NO_ERROR, error); in TEST()
1318 EXPECT_EQ(ErrorCode::NO_ERROR, error); in TEST()
1324 EXPECT_EQ(ErrorCode::NO_ERROR, error); in TEST()
1330 EXPECT_EQ(ErrorCode::NO_ERROR, error); in TEST()
1363 EXPECT_EQ(ErrorCode::NO_ERROR, error); in TEST()
1369 EXPECT_EQ(ErrorCode::NO_ERROR, error); in TEST()
1375 EXPECT_EQ(ErrorCode::NO_ERROR, error); in TEST()
1381 EXPECT_EQ(ErrorCode::NO_ERROR, error); in TEST()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DCredentials_test.cpp78 ASSERT_EQ(NO_ERROR, mComposerClient->initCheck()); in initClient()
86 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getActiveDisplayMode(mDisplay, &mode)); in setupBackgroundSurface()
97 ASSERT_EQ(NO_ERROR, in setupBackgroundSurface()
189 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getActiveDisplayMode(display, &mode)); in TEST_F()
193 ASSERT_EQ(NO_ERROR, SurfaceComposerClient::getDynamicDisplayInfo(display, &info)); in TEST_F()
202 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, NO_ERROR)); in TEST_F()
211 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, NO_ERROR)); in TEST_F()
227 ASSERT_EQ(res, NO_ERROR); in TEST_F()
234 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, PERMISSION_DENIED)); in TEST_F()
242 ASSERT_NO_FATAL_FAILURE(checkWithPrivileges<status_t>(condition, NO_ERROR, PERMISSION_DENIED)); in TEST_F()
[all …]
/frameworks/base/libs/androidfw/tests/
DSplit_test.cpp68 ASSERT_EQ(NO_ERROR, in TEST_F()
79 ASSERT_EQ(NO_ERROR, in TEST_F()
108 ASSERT_EQ(NO_ERROR, in TEST_F()
110 ASSERT_EQ(NO_ERROR, table.add(basic_de_fr_contents_.data(), in TEST_F()
132 ASSERT_EQ(NO_ERROR, in TEST_F()
138 ASSERT_EQ(NO_ERROR, table.add(basic_de_fr_contents_.data(), in TEST_F()
159 ASSERT_EQ(NO_ERROR, in TEST_F()
170 ASSERT_EQ(NO_ERROR, table.add(basic_de_fr_contents_.data(), in TEST_F()
190 ASSERT_EQ(NO_ERROR, in TEST_F()
192 ASSERT_EQ(NO_ERROR, table.add(basic_hdpi_contents_.data(), in TEST_F()
[all …]
DDynamicRefTable_test.cpp30 ASSERT_EQ(shared_table.lookupResourceValue(&value), NO_ERROR); in TEST()
39 ASSERT_EQ(shared_app_table.lookupResourceValue(&value2), NO_ERROR); in TEST()
50 ASSERT_EQ(shared_table.lookupResourceValue(&value), NO_ERROR); in TEST()
59 ASSERT_EQ(shared_app_table.lookupResourceValue(&value2), NO_ERROR); in TEST()
71 ASSERT_EQ(shared_table.lookupResourceValue(&value), NO_ERROR); in TEST()
80 ASSERT_EQ(app_table.lookupResourceValue(&value3), NO_ERROR); in TEST()
92 ASSERT_EQ(shared_app_table.lookupResourceValue(&value2), NO_ERROR); in TEST()
102 ASSERT_EQ(app_table.lookupResourceValue(&value), NO_ERROR); in TEST()
112 ASSERT_EQ(custom_app_table.lookupResourceValue(&value2), NO_ERROR); in TEST()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DRenderSurfaceTest.cpp57 .WillRepeatedly(Return(NO_ERROR)); in RenderSurfaceTest()
87 EXPECT_CALL(*mNativeWindow, connect(NATIVE_WINDOW_API_EGL)).WillOnce(Return(NO_ERROR)); in TEST_F()
89 .WillOnce(Return(NO_ERROR)); in TEST_F()
91 .WillOnce(Return(NO_ERROR)); in TEST_F()
135 .WillOnce(Return(NO_ERROR)); in TEST_F()
149 .WillOnce(Return(NO_ERROR)); in TEST_F()
158 .WillOnce(Return(NO_ERROR)); in TEST_F()
169 .WillOnce(Return(NO_ERROR)); in TEST_F()
171 .WillOnce(Return(NO_ERROR)); in TEST_F()
194 EXPECT_CALL(*mDisplaySurface, beginFrame(true)).WillOnce(Return(NO_ERROR)); in TEST_F()
[all …]
/frameworks/base/libs/storage/
DIMountService.cpp68 if (remote()->transact(TRANSACTION_registerListener, data, &reply) != NO_ERROR) { in registerListener()
84 if (remote()->transact(TRANSACTION_unregisterListener, data, &reply) != NO_ERROR) { in unregisterListener()
99 if (remote()->transact(TRANSACTION_isUsbMassStorageConnected, data, &reply) != NO_ERROR) { in isUsbMassStorageConnected()
116 if (remote()->transact(TRANSACTION_setUsbMassStorageEnabled, data, &reply) != NO_ERROR) { in setUsbMassStorageEnabled()
131 if (remote()->transact(TRANSACTION_isUsbMassStorageEnabled, data, &reply) != NO_ERROR) { in isUsbMassStorageEnabled()
148 if (remote()->transact(TRANSACTION_mountVolume, data, &reply) != NO_ERROR) { in mountVolume()
167 if (remote()->transact(TRANSACTION_unmountVolume, data, &reply) != NO_ERROR) { in unmountVolume()
184 if (remote()->transact(TRANSACTION_formatVolume, data, &reply) != NO_ERROR) { in formatVolume()
201 if (remote()->transact(TRANSACTION_getStorageUsers, data, &reply) != NO_ERROR) { in getStorageUsers()
230 if (remote()->transact(TRANSACTION_getVolumeState, data, &reply) != NO_ERROR) { in getVolumeState()
[all …]
/frameworks/base/libs/services/src/os/
DDropBoxManager.cpp74 if (err != NO_ERROR) { in writeToParcel()
79 if (err != NO_ERROR) { in writeToParcel()
85 if (err != NO_ERROR) { in writeToParcel()
90 if (err != NO_ERROR) { in writeToParcel()
95 if (err != NO_ERROR) { in writeToParcel()
99 if (err != NO_ERROR) { in writeToParcel()
103 return NO_ERROR; in writeToParcel()
112 if (err != NO_ERROR) { in readFromParcel()
117 if (err != NO_ERROR) { in readFromParcel()
122 if (err != NO_ERROR) { in readFromParcel()
[all …]

12345678910>>...25