Home
last modified time | relevance | path

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

123456

/cts/tests/tests/media/src/android/media/cts/
DNativeEncoderTest.java87 boolean status = testEncode(mResourceVideo720p, MIME_AVC, 1280, 720); in testEncodeSurfaceH264720p()
88 assertTrue("native encode error", status); in testEncodeSurfaceH264720p()
91 boolean status = testEncode(mResourceVideo720p, MIME_VP8, 1280, 720); in testEncodeSurfaceVp8720p()
92 assertTrue("native encode error", status); in testEncodeSurfaceVp8720p()
95 boolean status = testEncode(mResourceVideo720p, MIME_HEVC, 1280, 720); in testEncodeSurfaceHevc720p()
96 assertTrue("native encode error", status); in testEncodeSurfaceHevc720p()
99 boolean status = testEncode(mResourceVideo360p, MIME_AVC, 640, 360); in testEncodeSurfaceH264360p()
100 assertTrue("native encode error", status); in testEncodeSurfaceH264360p()
103 boolean status = testEncode(mResourceVideo360p, MIME_VP8, 640, 360); in testEncodeSurfaceVp8360p()
104 assertTrue("native encode error", status); in testEncodeSurfaceVp8360p()
[all …]
DAudioEffectTest.java261 int status = track.attachAuxEffect(mEffect.getId()); in test1_7AuxiliaryOnAudioTrack() local
262 if (status != AudioTrack.SUCCESS) { in test1_7AuxiliaryOnAudioTrack()
265 status = track.setAuxEffectSendLevel(1.0f); in test1_7AuxiliaryOnAudioTrack()
266 if (status != AudioTrack.SUCCESS) { in test1_7AuxiliaryOnAudioTrack()
348 int status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray() local
349 assertFalse("getParameter 1 failed", AudioEffect.isError(status)); in test3_0SetParameterByteArrayByteArray()
355 status = mEffect.setParameter(param, value); in test3_0SetParameterByteArrayByteArray()
356 assertEquals("setParameter failed", AudioEffect.SUCCESS, status); in test3_0SetParameterByteArrayByteArray()
357 status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray()
358 assertFalse("getParameter 2 failed", AudioEffect.isError(status)); in test3_0SetParameterByteArrayByteArray()
[all …]
/cts/tests/tests/location/src/android/location/cts/
DGnssStatusTest.java81 private void validateGnssStatus(GnssStatus status, SoftAssert softAssert) { in validateGnssStatus() argument
82 int sCount = status.getSatelliteCount(); in validateGnssStatus()
89 String.valueOf(status.getAzimuthDegrees(i)), in validateGnssStatus()
90 status.getAzimuthDegrees(i) >= 0.0 && status.getAzimuthDegrees(i) <= 360.0); in validateGnssStatus()
92 status.hasCarrierFrequencyHz(i), in validateGnssStatus()
93 status.hasCarrierFrequencyHz(i) ? status.getCarrierFrequencyHz(i) : 0F); in validateGnssStatus()
97 String.valueOf(status.getCn0DbHz(i)), in validateGnssStatus()
98 status.getCn0DbHz(i) >= 0.0 && in validateGnssStatus()
99 status.getCn0DbHz(i) <= 63.0); in validateGnssStatus()
103 String.valueOf(status.getElevationDegrees(i)), in validateGnssStatus()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DConditionProviderVerifierActivity.java98 status = FAIL; in test()
101 status = PASS; in test()
103 status = WAIT_FOR_USER; in test()
137 status = FAIL; in test()
140 status = FAIL; in test()
142 status = PASS; in test()
170 status = PASS; in test()
174 status = RETEST; in test()
178 status = FAIL; in test()
195 status = READY; in setUp()
[all …]
DNotificationListenerVerifierActivity.java217 status = READY; in setUp()
231 status = PASS; in test()
234 status = FAIL; in test()
262 status = READY; in setUp()
280 status = PASS; in test()
284 status = RETEST; in test()
286 status = FAIL; in test()
291 status = WAIT_FOR_USER; in test()
341 status = READY; in setUp()
359 status = PASS; in test()
[all …]
DInteractiveVerifierActivity.java98 protected int status; field in InteractiveVerifierActivity.InteractiveTestCase
116 protected void setUp() { status = READY; next(); }; in setUp()
119 protected void test() { status = FAIL; next(); }; in test()
125 status = FAIL; in setFailed()
174 mCurrentTest.status = PASS; in onCreate()
177 mCurrentTest.status = savedStatus; in onCreate()
190 final int status = mCurrentTest == null ? SETUP : mCurrentTest.status; in onSaveInstanceState() local
191 outState.putInt(STATUS, status); in onSaveInstanceState()
192 Log.i(TAG, "saved state(" + stateIndex + "}, status(" + status + ")"); in onSaveInstanceState()
200 mCurrentTest.status = READY; in onResume()
[all …]
DAttentionManagementVerifierActivity.java173 status = PASS; in test()
177 status = RETEST; in test()
179 status = FAIL; in test()
196 status = READY; in setUp()
205 status = PASS; in test()
206 if (mAliceUri == null) { status = FAIL; } in test()
207 if (mBobUri == null) { status = FAIL; } in test()
208 if (mCharlieUri != null) { status = FAIL; } in test()
210 if (status == PASS && !isStarred(mAliceUri)) { in test()
211 status = RETEST; in test()
[all …]
DShortcutThrottlingResetActivity.java120 status = PASS; in test()
122 status = FAIL; in test()
150 status = PASS; in test()
169 status = RETEST; in test()
173 status = PASS; in test()
192 status = FAIL; in test()
197 status = PASS; in test()
202 status = FAIL; in test()
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp190 media_status_t status = AMediaDrm_getPropertyString(aMediaObjects.getDrm(), in Java_android_media_cts_NativeMediaDrmClearkeyTest_testGetPropertyStringNative() local
203 "get property string returns %d", status); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testGetPropertyStringNative()
229 media_status_t status = AMediaExtractor_setDataSource( in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative() local
233 if (status != AMEDIA_OK) { in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative()
235 "set video data source error=%d", status); in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative()
334 media_status_t status = AMEDIA_OK; in fillDecoder() local
353 status = AMediaCodec_queueSecureInputBuffer( in fillDecoder()
359 status = AMediaCodec_queueInputBuffer( in fillDecoder()
509 media_status_t status = AMediaDrm_getKeyRequest(aMediaObjects.getDrm(), in acquireLicense() local
513 if (status != AMEDIA_OK) { in acquireLicense()
[all …]
Dnative_media_decoder_source.cpp163 int status = AMediaCodec_dequeueOutputBuffer(mDec.get(), &info, 1000); in run() local
164 if (status >= 0) { in run()
179 AMediaCodec_releaseOutputBuffer(mDec.get(), status, render); in run()
186 } else if (status == AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED) { in run()
187 } else if (status == AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED) { in run()
191 } else if (status == AMEDIACODEC_INFO_TRY_AGAIN_LATER) { in run()
193 ALOGV("Invalid status : %d", status); in run()
216 media_status_t status = AMediaCodec_configure( in prepare() local
218 if (status != AMEDIA_OK) { in prepare()
227 media_status_t status = AMediaCodec_start(mDec.get()); in start() local
[all …]
Dnative_media_encoder_jni.cpp124 media_status_t status = AMediaCodec_configure( in prepare() local
126 if (status != AMEDIA_OK) { in prepare()
133 status = AMediaCodec_createInputSurface(mEnc.get(), &anw); in prepare()
138 status = AMediaCodec_setInputSurface(mEnc.get(), surface.get()); in prepare()
141 return status == AMEDIA_OK ? OK : FAIL; in prepare()
147 media_status_t status = AMediaCodec_start(mEnc.get()); in start() local
148 if (status != AMEDIA_OK) { in start()
231 int status = AMediaCodec_dequeueOutputBuffer(mEnc.get(), &info, 5000); in run() local
232 if (status >= 0) { in run()
236 AMediaCodec_releaseOutputBuffer(mEnc.get(), status, false); in run()
[all …]
/cts/tests/tests/debug/libdebugtest/
Dandroid_debug_cts.cpp43 int status; in parent() local
44 int wpid = waitpid(child, &status, 0); in parent()
46 ASSERT_TRUE(WIFEXITED(status)); in parent()
47 ASSERT_EQ(0, WEXITSTATUS(status)); in parent()
64 int status; in ptraceAttach() local
65 assert_or_exit(waitpid(parent, &status, __WALL) == parent); in ptraceAttach()
66 assert_or_exit(WIFSTOPPED(status)); in ptraceAttach()
67 assert_or_exit(WSTOPSIG(status) == SIGSTOP); in ptraceAttach()
/cts/hostsidetests/seccomp/app/jni/
Dandroid_seccomp_cts_app_SeccompDeviceTest.cpp47 int status; in testSyscallBlocked() local
48 int ret = waitpid(pid, &status, 0); in testSyscallBlocked()
54 if (WIFEXITED(status)) { in testSyscallBlocked()
59 if (WIFSIGNALED(status)) { in testSyscallBlocked()
60 int signal = WTERMSIG(status); in testSyscallBlocked()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DCorrelation.java41 boolean status = false; in computeCorrelation()
96 status = true; in computeCorrelation()
97 return status; in computeCorrelation()
102 boolean status = false; in downsampleData()
137 status = true; in downsampleData()
138 return status; in downsampleData()
142 boolean status = false; in autocorrelation()
160 status = true; in autocorrelation()
163 return status; in autocorrelation()
DRingerModeActivity.java199 status = PASS; in test()
213 status = PASS; in test()
215 status = WAIT_FOR_USER; in test()
235 status = PASS; in test()
237 status = WAIT_FOR_USER; in test()
258 status = PASS; in test()
260 status = WAIT_FOR_USER; in test()
309 status = PASS; in test()
322 status = PASS; in test()
362 status = PASS; in test()
[all …]
/cts/tools/utils/
Dmonsoon.py112 status = self.GetStatus()
117 if not status:
119 elif serialno and status["serialNumber"] != serialno:
121 (status["serialNumber"], dev))
123 self.start_voltage = status["voltage1"]
162 status = dict(zip(STATUS_FIELDS, struct.unpack(STATUS_FORMAT, bytes)))
163 assert status["packetType"] == 0x10
164 for k in status.keys():
166 status[k] = 2.0 + status[k] * 0.01
172 status[k] = status[k] * 0.000125
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DDspWindow.java63 boolean status = false; in fillWindow()
71 status = fillRectangular(r); in fillWindow()
74 status = fillTriangular(r, size / 2); in fillWindow()
77 status = fillTriangular(r, overlap); in fillWindow()
80 status = fillHamming(r, size / 2); in fillWindow()
83 status = fillHamming(r, overlap); in fillWindow()
86 status = fillHanning(r, size / 2); in fillWindow()
89 status = fillHanning(r, overlap); in fillWindow()
92 return status; in fillWindow()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleEncryptedServerService.java303 public void onConnectionStateChange(BluetoothDevice device, int status, int newState) {
307 if (status == BluetoothGatt.GATT_SUCCESS) {
311 } else if (status == BluetoothProfile.STATE_DISCONNECTED) {
320 public void onServiceAdded(int status, BluetoothGattService service) {
324 if (status == BluetoothGatt.GATT_SUCCESS) {
336 int status = BluetoothGatt.GATT_SUCCESS;
352 status = BluetoothGatt.GATT_FAILURE;
356 status = BluetoothGatt.GATT_FAILURE;
364 mGattServer.sendResponse(device, requestId, status, offset, value);
370 int status = BluetoothGatt.GATT_SUCCESS;
[all …]
DBleClientService.java908 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
909 … if (DEBUG) Log.d(TAG, "onConnectionStateChange: status= " + status + ", newState= " + newState);
910 if (status == BluetoothGatt.GATT_SUCCESS) {
936 } else if (status == BluetoothProfile.STATE_DISCONNECTED) {
943 showMessage("Failed to connect: " + status + " , newState = " + newState);
950 public void onServicesDiscovered(BluetoothGatt gatt, int status) {
954 … if ((status == BluetoothGatt.GATT_SUCCESS) && (mBluetoothGatt.getService(SERVICE_UUID) != null)) {
960 public void onMtuChanged(BluetoothGatt gatt, int mtu, int status) {
961 super.onMtuChanged(gatt, mtu, status);
965 if (status == BluetoothGatt.GATT_SUCCESS) {
[all …]
/cts/tests/tests/os/jni/
Dandroid_os_cts_OSFeatures.cpp75 int status; in android_os_cts_OSFeatures_hasSeccompSupport() local
76 TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in android_os_cts_OSFeatures_hasSeccompSupport()
77 return WIFSIGNALED(status) && (WTERMSIG(status) == SIGSYS); in android_os_cts_OSFeatures_hasSeccompSupport()
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java92 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateFileHasSanePermissions() local
93 FileUtils.getFileStatus(myFile.getAbsolutePath(), status, false); in testCreateFileHasSanePermissions() local
100 Integer.toOctalString(status.mode)); in testCreateFileHasSanePermissions()
111 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateDirectoryHasSanePermissions() local
112 FileUtils.getFileStatus(myDir.getAbsolutePath(), status, false); in testCreateDirectoryHasSanePermissions() local
120 Integer.toOctalString(status.mode)); in testCreateDirectoryHasSanePermissions()
488 FileUtils.FileStatus status = new FileUtils.FileStatus(); in assertFileOwnedBy() local
490 if (file.exists() && FileUtils.getFileStatus(path, status, true)) { in assertFileOwnedBy()
491 String actualOwner = FileUtils.getUserName(status.uid); in assertFileOwnedBy()
508 FileUtils.FileStatus status = new FileUtils.FileStatus(); in assertFileOwnedByGroup() local
[all …]
/cts/apps/CtsVerifier/assets/scripts/power_monitors/
Dmonsoon.py150 status = self.GetStatus()
152 if not status:
156 self.start_voltage = status["voltage1"]
222 status = monsoon.GetStatus()
224 if not status:
268 status = dict(zip(STATUS_FIELDS, struct.unpack(STATUS_FORMAT, bytes)))
269 assert status["packetType"] == 0x10
270 for k in status.keys():
272 status[k] = 2.0 + status[k] * 0.01
278 status[k] = status[k] * 0.000125
[all …]
/cts/tests/app/app/src/android/app/stubs/
DPendingIntentStubActivity.java27 public static int status = INVALIDATE; field in PendingIntentStubActivity
36 status = ON_CREATE; in onCreate()
45 status = INVALIDATE; in prepare()
/cts/tests/tests/security/src/android/security/cts/
DEffectBundleTest.java264 boolean status = false; in eqSetParamProperties()
289 status = true; in eqSetParamProperties()
300 return status; in eqSetParamProperties()
306 boolean status = false; in eqGetParamFreqRangeCommand()
339 status = true; in eqGetParamFreqRangeCommand()
342 status = false; in eqGetParamFreqRangeCommand()
351 return status; in eqGetParamFreqRangeCommand()
357 boolean status = false; in eqGetParam()
367 status = true; in eqGetParam()
370 status = false; in eqGetParam()
[all …]
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_SyncTest.cpp59 jint* status = static_cast<jint*>(env->GetPrimitiveArrayCritical(status_array, nullptr)); in syncPoll() local
64 status[i] = STATUS_ERROR; in syncPoll()
66 status[i] = STATUS_SIGNALED; in syncPoll()
68 status[i] = STATUS_UNSIGNALED; in syncPoll()
70 env->ReleasePrimitiveArrayCritical(status_array, status, 0); in syncPoll()

123456