Home
last modified time | relevance | path

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

1234

/cts/tests/tests/media/src/android/media/cts/
DAudioEffectTest.java252 int status = track.attachAuxEffect(mEffect.getId()); in test1_7AuxiliaryOnAudioTrack() local
253 if (status != AudioTrack.SUCCESS) { in test1_7AuxiliaryOnAudioTrack()
256 status = track.setAuxEffectSendLevel(1.0f); in test1_7AuxiliaryOnAudioTrack()
257 if (status != AudioTrack.SUCCESS) { in test1_7AuxiliaryOnAudioTrack()
339 int status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray() local
340 assertFalse("getParameter 1 failed", AudioEffect.isError(status)); in test3_0SetParameterByteArrayByteArray()
346 status = mEffect.setParameter(param, value); in test3_0SetParameterByteArrayByteArray()
347 assertEquals("setParameter failed", AudioEffect.SUCCESS, status); in test3_0SetParameterByteArrayByteArray()
348 status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray()
349 assertFalse("getParameter 2 failed", AudioEffect.isError(status)); in test3_0SetParameterByteArrayByteArray()
[all …]
DVisualizerTest.java235 int status = mVisualizer.setMeasurementMode(Visualizer.MEASUREMENT_MODE_NONE); in test3_0MeasurementModeNone() local
237 Visualizer.SUCCESS, status); in test3_0MeasurementModeNone()
267 int status = mVisualizer.setMeasurementMode(Visualizer.MEASUREMENT_MODE_PEAK_RMS); in test4_0MeasurementModePeakRms() local
269 Visualizer.SUCCESS, status); in test4_0MeasurementModePeakRms()
319 int status = mVisualizer.setMeasurementMode(Visualizer.MEASUREMENT_MODE_PEAK_RMS); in test4_1MeasurePeakRms() local
321 Visualizer.SUCCESS, status); in test4_1MeasurePeakRms()
334 status = mVisualizer.getMeasurementPeakRms(measurement); in test4_1MeasurePeakRms()
339 Visualizer.SUCCESS, status); in test4_1MeasurePeakRms()
391 int status = mVisualizer.setMeasurementMode(Visualizer.MEASUREMENT_MODE_PEAK_RMS); in test4_2MeasurePeakRmsLongMP3() local
393 Visualizer.SUCCESS, status); in test4_2MeasurePeakRmsLongMP3()
[all …]
/cts/tests/tests/security/jni/
Dandroid_security_cts_AudioPolicyBinderTest.cpp100 status_t status = aps->startOutput(output, (audio_stream_type_t)(AUDIO_STREAM_MIN -1), in android_security_cts_AudioPolicy_test_startOutput() local
102 if (status == NO_ERROR) { in android_security_cts_AudioPolicy_test_startOutput()
105 status = aps->startOutput(output, (audio_stream_type_t)AUDIO_STREAM_CNT, in android_security_cts_AudioPolicy_test_startOutput()
107 if (status == NO_ERROR) { in android_security_cts_AudioPolicy_test_startOutput()
128 status_t status = aps->stopOutput(output, (audio_stream_type_t)(AUDIO_STREAM_MIN -1), in android_security_cts_AudioPolicy_test_stopOutput() local
130 if (status == NO_ERROR) { in android_security_cts_AudioPolicy_test_stopOutput()
133 status = aps->stopOutput(output, (audio_stream_type_t)AUDIO_STREAM_CNT, in android_security_cts_AudioPolicy_test_stopOutput()
135 if (status == NO_ERROR) { in android_security_cts_AudioPolicy_test_stopOutput()
154 status_t status = aps->isStreamActive((audio_stream_type_t)(-1), 0); in android_security_cts_AudioPolicy_test_isStreamActive() local
155 if (status == NO_ERROR) { in android_security_cts_AudioPolicy_test_isStreamActive()
[all …]
Dandroid_security_cts_LoadEffectLibraryTest.cpp58 status_t status = binder->transact(i, data, &reply); in android_security_cts_LoadEffectLibraryTest_doLoadLibraryTest() local
59 if (status != NO_ERROR) { in android_security_cts_LoadEffectLibraryTest_doLoadLibraryTest()
62 status = reply.readInt32(); in android_security_cts_LoadEffectLibraryTest_doLoadLibraryTest()
63 if (status != NO_ERROR) { in android_security_cts_LoadEffectLibraryTest_doLoadLibraryTest()
72 status = AudioEffect::getEffectDescriptor(&uuid, &desc); in android_security_cts_LoadEffectLibraryTest_doLoadLibraryTest()
73 if (status == NO_ERROR) { in android_security_cts_LoadEffectLibraryTest_doLoadLibraryTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DInteractiveVerifierActivity.java93 int status; field in InteractiveVerifierActivity.InteractiveTestCase
110 void setUp() { status = READY; next(); }; in setUp()
113 void test() { status = FAIL; next(); }; in test()
152 mCurrentTest.status = PASS; in onCreate()
155 mCurrentTest.status = savedStatus; in onCreate()
168 final int status = mCurrentTest == null ? SETUP : mCurrentTest.status; in onSaveInstanceState() local
169 outState.putInt(STATUS, status); in onSaveInstanceState()
170 Log.i(TAG, "saved state(" + stateIndex + "}, status(" + status + ")"); in onSaveInstanceState()
178 mCurrentTest.status = READY; in onResume()
188 ImageView status = (ImageView) item.findViewById(R.id.nls_status); in markItem() local
[all …]
DAttentionManagementVerifierActivity.java117 status = READY; in setUp()
128 status = PASS; in test()
129 if (mAliceUri == null) { status = FAIL; } in test()
130 if (mBobUri == null) { status = FAIL; } in test()
131 if (mCharlieUri != null) { status = FAIL; } in test()
149 status = READY; in test()
152 status = FAIL; in test()
155 status = FAIL; in test()
157 status = PASS; in test()
175 status = PASS; in test()
[all …]
DNotificationListenerVerifierActivity.java159 status = READY; in setUp()
171 status = PASS; in test()
174 status = FAIL; in test()
197 status = FAIL; in test()
249 status = pass ? PASS : FAIL; in test()
273 status = READY; in setUp()
279 if (status == READY) { in test()
281 status = RETEST; in test()
291 status = PASS; in test()
294 status = FAIL; in test()
[all …]
DPackagePriorityVerifierActivity.java85 status = PASS; in test()
87 status = FAIL; in test()
104 status = WAIT_FOR_USER; in setUp()
109 status = PASS; in test()
130 status = WAIT_FOR_USER; in setUp()
135 status = PASS; in test()
159 status = READY; in setUp()
173 status = PASS; in test()
176 status = FAIL; in test()
204 status = READY; in setUp()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DCorrelation.java39 boolean status = false; in computeCorrelation()
94 status = true; in computeCorrelation()
95 return status; in computeCorrelation()
100 boolean status = false; in downsampleData()
124 status = true; in downsampleData()
125 return status; in downsampleData()
129 boolean status = false; in autocorrelation()
147 status = true; in autocorrelation()
150 return status; in autocorrelation()
/cts/tools/utils/
Dmonsoon.py103 status = self.GetStatus()
108 if not status:
110 elif serialno and status["serialNumber"] != serialno:
112 (status["serialNumber"], dev))
114 self.start_voltage = status["voltage1"]
153 status = dict(zip(STATUS_FIELDS, struct.unpack(STATUS_FORMAT, bytes)))
154 assert status["packetType"] == 0x10
155 for k in status.keys():
157 status[k] = 2.0 + status[k] * 0.01
163 status[k] = status[k] * 0.000125
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DOpenCVLibrary.java48 public void onManagerConnected(int status) { in loadAsync()
49 Log.v(TAG, "New Loading status: "+status); in loadAsync()
50 switch (status) { in loadAsync()
56 super.onManagerConnected(status); in loadAsync()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/suid/
DSuidFilesActivity.java130 FileStatus status = new FileStatus(); in getMessage() local
131 if (FileUtils.getFileStatus(file.getAbsolutePath(), status, true)) { in getMessage()
133 FileUtils.getUserName(status.getUid()), in getMessage()
134 FileUtils.getGroupName(status.getGid()), in getMessage()
135 FileUtils.getFormattedPermissions(status.getMode()), in getMessage()
212 private final FileStatus status = new FileStatus(); field in SuidFilesActivity.SuidFilesTask.DirectoryFileFilter
217 if (FileUtils.getFileStatus(pathname.getPath(), status, true)) { in accept()
218 return status.isDirectory() && !status.isSymbolicLink(); in accept()
229 private final FileStatus status = new FileStatus(); field in SuidFilesActivity.SuidFilesTask.SuidFileFilter
233 if (FileUtils.getFileStatus(pathname.getPath(), status, true)) { in accept()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java68 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateFileHasSanePermissions() local
69 FileUtils.getFileStatus(myFile.getAbsolutePath(), status, false); in testCreateFileHasSanePermissions() local
76 Integer.toOctalString(status.mode)); in testCreateFileHasSanePermissions()
87 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateDirectoryHasSanePermissions() local
88 FileUtils.getFileStatus(myDir.getAbsolutePath(), status, false); in testCreateDirectoryHasSanePermissions() local
96 Integer.toOctalString(status.mode)); in testCreateDirectoryHasSanePermissions()
296 FileUtils.FileStatus status = new FileUtils.FileStatus(); in assertFileOwnedBy() local
298 if (file.exists() && FileUtils.getFileStatus(path, status, true)) { in assertFileOwnedBy()
299 String actualOwner = FileUtils.getUserName(status.uid); in assertFileOwnedBy()
316 FileUtils.FileStatus status = new FileUtils.FileStatus(); in assertFileOwnedByGroup() local
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleClientService.java315 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
317 if (status == BluetoothGatt.GATT_SUCCESS) {
323 } else if (status == BluetoothProfile.STATE_DISCONNECTED) {
332 public void onServicesDiscovered(BluetoothGatt gatt, int status) {
334 if ((status == BluetoothGatt.GATT_SUCCESS) &&
344 BluetoothGattCharacteristic characteristic, int status) {
347 + value + " status=" + status);
349 if ((status == BluetoothGatt.GATT_SUCCESS) &&
361 BluetoothGattCharacteristic characteristic, int status) {
363 if ((status == BluetoothGatt.GATT_SUCCESS) &&
[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/tools/tradefed-host/src/com/android/cts/tradefed/result/
DCtsTestStatus.java50 for (CtsTestStatus status : CtsTestStatus.values()) { in getStatus()
51 if (value.compareToIgnoreCase(status.getValue()) == 0) { in getStatus()
52 return status; in getStatus()
/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/tests/provider/src/android/provider/cts/
DContactsContract_StatusUpdatesTest.java101 private Uri insertStatusUpdate(long dataId, int presence, String status, Long timestamp) in insertStatusUpdate() argument
107 .withValue(StatusUpdates.STATUS, status) in insertStatusUpdate()
127 private void assertPresence(Uri uri, int status) throws Exception { in assertPresence() argument
130 .withValue(StatusUpdates.PRESENCE, status) in assertPresence()
137 private void assertStatus(Uri uri, String status) throws Exception { in assertStatus() argument
140 .withValue(StatusUpdates.STATUS, status) in assertStatus()
173 private void assertPrecedence(int status) { in assertPrecedence() argument
174 assertTrue(StatusUpdates.getPresencePrecedence(status) >= 0); in assertPrecedence()
186 private void assertResource(int status) { in assertResource() argument
187 assertTrue(0 != StatusUpdates.getPresenceIconResourceId(status)); in assertResource()
/cts/tests/tests/os/jni/
Dandroid_os_cts_OSFeatures.cpp80 int status; in android_os_cts_OSFeatures_hasSeccompSupport() local
81 TEMP_FAILURE_RETRY(waitpid(pid, &status, 0)); in android_os_cts_OSFeatures_hasSeccompSupport()
82 return WIFSIGNALED(status) && (WTERMSIG(status) == SIGSYS); in android_os_cts_OSFeatures_hasSeccompSupport()
/cts/tests/tests/midi/src/android/midi/cts/
DMidiEchoTestService.java77 public void onDeviceStatusChanged(MidiDeviceStatus status) { in onDeviceStatusChanged() argument
79 inputOpened = status.isInputPortOpen(0); in onDeviceStatusChanged()
80 outputOpenCount = status.getOutputPortOpenCount(0); in onDeviceStatusChanged()
/cts/tests/tests/os/jni/seccomp-tests/tests/
Dseccomp_bpf_tests.c857 #define IS_SECCOMP_EVENT(status) ((status >> 16) == PTRACE_EVENT_SECCOMP) argument
865 pid_t tracee, int status, void *args);
901 int status; in tracer() local
902 if (wait(&status) != tracee) in tracer()
904 if (WIFSIGNALED(status) || WIFEXITED(status)) in tracer()
909 ASSERT_EQ(true, IS_SECCOMP_EVENT(status)); in tracer()
911 tracer_func(_metadata, tracee, status, args); in tracer()
952 int status; in teardown_trace_fixture() local
958 ASSERT_EQ(tracer, waitpid(tracer, &status, 0)); in teardown_trace_fixture()
959 if (WEXITSTATUS(status)) in teardown_trace_fixture()
[all …]
/cts/tests/app/src/android/app/cts/
DPendingIntentStubActivity.java26 public static int status = INVALIDATE; field in PendingIntentStubActivity
31 status = ON_CREATE; in onCreate()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationModeTestActivity.java139 ImageView status = (ImageView) item.findViewById(R.id.status); in setItemState() local
140 status.setImageResource(passed ? R.drawable.fs_good : R.drawable.fs_error); in setItemState()
144 status.invalidate(); in setItemState()
152 ImageView status = (ImageView) item.findViewById(R.id.status); in markItemWaiting() local
153 status.setImageResource(R.drawable.fs_warning); in markItemWaiting()
154 status.invalidate(); in markItemWaiting()
/cts/apps/CtsVerifier/jni/audio_loopback/
Dsles.cpp39 int status = SLES_FAIL; in slesInit() local
49 status = slesCreateServer(pSles, samplingRate, frameCount, micSource); in slesInit()
50 SLES_PRINTF("slesCreateServer =%d",status); in slesInit()
53 return status; in slesInit()
56 int status = SLES_FAIL; in slesDestroy() local
65 status = SLES_SUCCESS; in slesDestroy()
67 return status; in slesDestroy()
203 int status = SLES_FAIL; in slesCreateServer() local
206 return status; in slesCreateServer()
445 status = SLES_FAIL; in slesCreateServer()
[all …]
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp304 int status = AMediaCodec_dequeueOutputBuffer(codec[tt], &info, 1); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative() local
305 ALOGV("dequeueoutput on track %d: %d", tt, status); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
306 if (status >= 0) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
315 uint8_t *buf = AMediaCodec_getOutputBuffer(codec[tt], status, &bufsize); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
319 AMediaCodec_releaseOutputBuffer(codec[tt], status, false); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
320 } else if (status == AMEDIACODEC_INFO_OUTPUT_BUFFERS_CHANGED) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
322 } else if (status == AMEDIACODEC_INFO_OUTPUT_FORMAT_CHANGED) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
325 } else if (status == AMEDIACODEC_INFO_TRY_AGAIN_LATER) { in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
328 ALOGV("unexpected info code for track %d : %d", tt, status); in Java_android_media_cts_NativeDecoderTest_getDecodedDataNative()
430 int status = AMediaCodec_dequeueOutputBuffer(codec, &info, 1); in Java_android_media_cts_NativeDecoderTest_testPlaybackNative() local
[all …]

1234