Home
last modified time | relevance | path

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

123456

/cts/hostsidetests/security/securityPatch/Bug-34328139/
Dpoc.c32 int status[10]; variable
39 status[index] = 1; in threadForConfig()
51 status[index] = 2; in threadForConfig()
58 status[0] = 1; in threadForClose()
70 status[0] = 2; in threadForClose()
88 status[i] = 0; in main()
116 while (status[0] != 1 || status[1] != 1 || status[2] != 1 in main()
117 || status[3] != 1 || status[4] != 1 || status[5] != 1 in main()
118 || status[6] != 1 || status[7] != 1 || status[8] != 1 in main()
119 || status[9] != 1) { in main()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DNativeEncoderTest.java85 boolean status = testEncode(mResourceVideo720p, MIME_AVC, 1280, 720); in testEncodeSurfaceH264720p()
86 assertTrue("native encode error", status); in testEncodeSurfaceH264720p()
89 boolean status = testEncode(mResourceVideo720p, MIME_VP8, 1280, 720); in testEncodeSurfaceVp8720p()
90 assertTrue("native encode error", status); in testEncodeSurfaceVp8720p()
93 boolean status = testEncode(mResourceVideo720p, MIME_HEVC, 1280, 720); in testEncodeSurfaceHevc720p()
94 assertTrue("native encode error", status); in testEncodeSurfaceHevc720p()
97 boolean status = testEncode(mResourceVideo360p, MIME_AVC, 640, 360); in testEncodeSurfaceH264360p()
98 assertTrue("native encode error", status); in testEncodeSurfaceH264360p()
101 boolean status = testEncode(mResourceVideo360p, MIME_VP8, 640, 360); in testEncodeSurfaceVp8360p()
102 assertTrue("native encode error", status); in testEncodeSurfaceVp8360p()
[all …]
DAudioEffectTest.java259 int status = track.attachAuxEffect(mEffect.getId()); in test1_7AuxiliaryOnAudioTrack() local
260 if (status != AudioTrack.SUCCESS) { in test1_7AuxiliaryOnAudioTrack()
263 status = track.setAuxEffectSendLevel(1.0f); in test1_7AuxiliaryOnAudioTrack()
264 if (status != AudioTrack.SUCCESS) { in test1_7AuxiliaryOnAudioTrack()
346 int status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray() local
347 assertFalse("getParameter 1 failed", AudioEffect.isError(status)); in test3_0SetParameterByteArrayByteArray()
353 status = mEffect.setParameter(param, value); in test3_0SetParameterByteArrayByteArray()
354 assertEquals("setParameter failed", AudioEffect.SUCCESS, status); in test3_0SetParameterByteArrayByteArray()
355 status = mEffect.getParameter(param, value); in test3_0SetParameterByteArrayByteArray()
356 assertFalse("getParameter 2 failed", AudioEffect.isError(status)); in test3_0SetParameterByteArrayByteArray()
[all …]
/cts/tests/tests/location/src/android/location/cts/
DGnssStatusTest.java80 public static void validateGnssStatus(GnssStatus status, SoftAssert softAssert) { in validateGnssStatus() argument
81 int sCount = status.getSatelliteCount(); in validateGnssStatus()
88 String.valueOf(status.getAzimuthDegrees(i)), in validateGnssStatus()
89 status.getAzimuthDegrees(i) >= 0.0 && status.getAzimuthDegrees(i) <= 360.0); in validateGnssStatus()
91 if (status.hasCarrierFrequencyHz(i)) { in validateGnssStatus()
94 String.valueOf(status.getCarrierFrequencyHz(i)), in validateGnssStatus()
95 status.getCarrierFrequencyHz(i) > 0.0); in validateGnssStatus()
100 String.valueOf(status.getCn0DbHz(i)), in validateGnssStatus()
101 status.getCn0DbHz(i) >= 0.0 && in validateGnssStatus()
102 status.getCn0DbHz(i) <= 63.0); in validateGnssStatus()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DNotificationListenerVerifierActivity.java183 status = READY; in setUp()
203 status = PASS; in test()
206 status = FAIL; in test()
225 status = READY; in setUp()
237 status = FAIL; in test()
289 status = pass ? PASS : FAIL; in test()
314 status = READY; in setUp()
320 if (status == READY) { in test()
322 status = RETEST; in test()
332 status = PASS; in test()
[all …]
DConditionProviderVerifierActivity.java89 status = FAIL; in test()
94 status = PASS; in test()
96 status = WAIT_FOR_USER; in test()
121 status = PASS; in test()
124 status = RETEST; in test()
156 status = PASS; in test()
159 status = FAIL; in test()
186 status = READY; in setUp()
200 status = PASS; in test()
203 status = FAIL; in test()
[all …]
DAttentionManagementVerifierActivity.java141 status = READY; in setUp()
152 status = PASS; in test()
153 if (mAliceUri == null) { status = FAIL; } in test()
154 if (mBobUri == null) { status = FAIL; } in test()
155 if (mCharlieUri != null) { status = FAIL; } in test()
157 if (status == PASS && !isStarred(mAliceUri)) { in test()
158 status = RETEST; in test()
183 status = READY; in test()
186 status = FAIL; in test()
189 status = FAIL; in test()
[all …]
DInteractiveVerifierActivity.java96 int status; field in InteractiveVerifierActivity.InteractiveTestCase
113 void setUp() { status = READY; next(); }; in setUp()
116 void test() { status = FAIL; next(); }; in test()
160 mCurrentTest.status = PASS; in onCreate()
163 mCurrentTest.status = savedStatus; in onCreate()
176 final int status = mCurrentTest == null ? SETUP : mCurrentTest.status; in onSaveInstanceState() local
177 outState.putInt(STATUS, status); in onSaveInstanceState()
178 Log.i(TAG, "saved state(" + stateIndex + "}, status(" + status + ")"); in onSaveInstanceState()
186 mCurrentTest.status = READY; in onResume()
196 ImageView status = (ImageView) item.findViewById(R.id.nls_status); in markItem() local
[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/hostsidetests/security/securityPatch/CVE-2017-0564/
Dpoc.c126 int status[2]; variable
131 status[0] = 1; in threadForIonFree01()
143 status[0] = 2; in threadForIonFree01()
150 status[1] = 1; in threadForIonFree02()
162 status[1] = 2; in threadForIonFree02()
173 status[0] = 0; in main()
174 status[1] = 0; in main()
203 while (status[0] != 1 || status[1] != 1) { in main()
210 while (status[0] != 2 || status[1] != 2) { in main()
/cts/tests/tests/debug/libdebugtest/
Dandroid_debug_cts.cpp47 int status; in parent() local
48 int wpid = waitpid(child, &status, 0); in parent()
50 assert_or_return(WIFEXITED(status)); in parent()
51 assert_or_return(WEXITSTATUS(status ) == 0); in parent()
69 int status; in ptraceAttach() local
70 assert_or_exit(waitpid(parent, &status, __WALL) == parent); in ptraceAttach()
71 assert_or_exit(WIFSTOPPED(status)); in ptraceAttach()
72 assert_or_exit(WSTOPSIG(status) == SIGSTOP); in ptraceAttach()
/cts/tests/tests/security/jni/
Dandroid_security_cts_SeccompTest.cpp42 int status; in testSyscallBlocked() local
43 int ret = waitpid(pid, &status, 0); in testSyscallBlocked()
49 if (WIFEXITED(status)) { in testSyscallBlocked()
54 if (WIFSIGNALED(status)) { in testSyscallBlocked()
55 int signal = WTERMSIG(status); in testSyscallBlocked()
/cts/tests/tests/media/libmediandkjni/
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-mediadrm-jni.cpp189 media_status_t status = AMediaDrm_getPropertyString(aMediaObjects.getDrm(), in Java_android_media_cts_NativeClearKeySystemTest_testGetPropertyStringNative() local
202 "get property string returns %d", status); in Java_android_media_cts_NativeClearKeySystemTest_testGetPropertyStringNative()
228 media_status_t status = AMediaExtractor_setDataSource( in Java_android_media_cts_NativeClearKeySystemTest__testPsshNative() local
232 if (status != AMEDIA_OK) { in Java_android_media_cts_NativeClearKeySystemTest__testPsshNative()
234 "set video data source error=%d", status); in Java_android_media_cts_NativeClearKeySystemTest__testPsshNative()
336 media_status_t status = AMEDIA_OK; in fillDecoder() local
354 status = AMediaCodec_queueSecureInputBuffer( in fillDecoder()
360 status = AMediaCodec_queueInputBuffer( in fillDecoder()
518 media_status_t status = AMEDIA_OK; in Java_android_media_cts_NativeClearKeySystemTest_testClearKeyPlaybackNative() local
525 status = AMediaDrm_setOnEventListener(aMediaObjects.getDrm(), listener); in Java_android_media_cts_NativeClearKeySystemTest_testClearKeyPlaybackNative()
[all …]
/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/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java66 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateFileHasSanePermissions() local
67 FileUtils.getFileStatus(myFile.getAbsolutePath(), status, false); in testCreateFileHasSanePermissions() local
74 Integer.toOctalString(status.mode)); in testCreateFileHasSanePermissions()
85 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateDirectoryHasSanePermissions() local
86 FileUtils.getFileStatus(myDir.getAbsolutePath(), status, false); in testCreateDirectoryHasSanePermissions() local
94 Integer.toOctalString(status.mode)); in testCreateDirectoryHasSanePermissions()
335 FileUtils.FileStatus status = new FileUtils.FileStatus(); in assertFileOwnedBy() local
337 if (file.exists() && FileUtils.getFileStatus(path, status, true)) { in assertFileOwnedBy()
338 String actualOwner = FileUtils.getUserName(status.uid); in assertFileOwnedBy()
355 FileUtils.FileStatus status = new FileUtils.FileStatus(); in assertFileOwnedByGroup() local
[all …]
/cts/tests/tests/security/src/android/security/cts/
DEffectBundleTest.java168 boolean status = false; in eqSetParamProperties()
194 status = true; in eqSetParamProperties()
205 return status; in eqSetParamProperties()
211 boolean status = false; in eqGetParamFreqRangeCommand()
245 status = true; in eqGetParamFreqRangeCommand()
248 status = false; in eqGetParamFreqRangeCommand()
257 return status; in eqGetParamFreqRangeCommand()
263 boolean status = false; in eqGetParam()
273 status = true; in eqGetParam()
276 status = false; in eqGetParam()
[all …]
/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()
/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.java896 public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
897 … if (DEBUG) Log.d(TAG, "onConnectionStateChange: status= " + status + ", newState= " + newState);
898 if (status == BluetoothGatt.GATT_SUCCESS) {
924 } else if (status == BluetoothProfile.STATE_DISCONNECTED) {
931 showMessage("Failed to connect: " + status + " , newState = " + newState);
938 public void onServicesDiscovered(BluetoothGatt gatt, int status) {
942 … if ((status == BluetoothGatt.GATT_SUCCESS) && (mBluetoothGatt.getService(SERVICE_UUID) != null)) {
948 public void onMtuChanged(BluetoothGatt gatt, int mtu, int status) {
949 super.onMtuChanged(gatt, mtu, status);
953 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/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/common/util/src/com/android/compatibility/common/util/
DTestStatus.java48 for (TestStatus status : TestStatus.values()) { in getStatus()
49 if (value.compareToIgnoreCase(status.getValue()) == 0) { in getStatus()
50 return status; in getStatus()
/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/provider/src/android/provider/cts/contacts/
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()

123456