Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_status.cpp64 static void checkIsOkay(const AStatus* status) { in checkIsOkay() argument
65 EXPECT_TRUE(AStatus_isOk(status)); in checkIsOkay()
66 EXPECT_EQ(std::string(), AStatus_getMessage(status)); in checkIsOkay()
67 EXPECT_EQ(EX_NONE, AStatus_getExceptionCode(status)); in checkIsOkay()
68 EXPECT_EQ(0, AStatus_getServiceSpecificError(status)); in checkIsOkay()
69 EXPECT_EQ(STATUS_OK, AStatus_getStatus(status)); in checkIsOkay()
71 static void checkIsErrorException(const AStatus* status, in checkIsErrorException() argument
74 EXPECT_FALSE(AStatus_isOk(status)); in checkIsErrorException()
75 EXPECT_EQ(message, AStatus_getMessage(status)); in checkIsErrorException()
76 EXPECT_EQ(exception, AStatus_getExceptionCode(status)); in checkIsErrorException()
[all …]
Dutilities.h118 binder_status_t status = AIBinder_prepareTransaction(binder, &in); member
119 if (status != STATUS_OK) return status;
121 status = writeFunc(in);
122 if (status != STATUS_OK) {
124 return status;
128 status = AIBinder_transact(binder, code, &in, &out, flags);
129 if (status != STATUS_OK) return status;
131 status = readFunc(out);
134 return status;
/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.java80 private 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 status.hasCarrierFrequencyHz(i), in validateGnssStatus()
92 status.hasCarrierFrequencyHz(i) ? status.getCarrierFrequencyHz(i) : 0F); in validateGnssStatus()
96 String.valueOf(status.getCn0DbHz(i)), in validateGnssStatus()
97 status.getCn0DbHz(i) >= 0.0 && in validateGnssStatus()
98 status.getCn0DbHz(i) <= 63.0); in validateGnssStatus()
102 String.valueOf(status.getElevationDegrees(i)), in validateGnssStatus()
[all …]
DTestGnssStatusCallback.java71 public void onSatelliteStatusChanged(GnssStatus status) { in onSatelliteStatusChanged() argument
73 mGnssStatus = status; in onSatelliteStatusChanged()
74 for (int i = 0; i < status.getSatelliteCount(); i++) { in onSatelliteStatusChanged()
75 if (!status.usedInFix(i)) { in onSatelliteStatusChanged()
78 if (status.hasCarrierFrequencyHz(i)) { in onSatelliteStatusChanged()
80 TestMeasurementUtil.getUniqueSvStringId(status.getConstellationType(i), in onSatelliteStatusChanged()
81 status.getSvid(i), status.getCarrierFrequencyHz(i))); in onSatelliteStatusChanged()
84 TestMeasurementUtil.getUniqueSvStringId(status.getConstellationType(i), in onSatelliteStatusChanged()
85 status.getSvid(i))); in onSatelliteStatusChanged()
/cts/tests/tests/os/src/android/os/cts/
DPowerManager_ThermalTest.java71 int status = 0; // Temperature.THROTTLING_NONE in testGetThermalStatus() local
72 assertEquals(status, mPowerManager.getCurrentThermalStatus()); in testGetThermalStatus()
73 status = 3; // Temperature.THROTTLING_SEVERE in testGetThermalStatus()
74 ThermalUtils.overrideThermalStatus(status); in testGetThermalStatus()
75 assertEquals(status, mPowerManager.getCurrentThermalStatus()); in testGetThermalStatus()
81 int status = PowerManager.THERMAL_STATUS_NONE; in testThermalStatusCallback() local
85 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback()
87 status = PowerManager.THERMAL_STATUS_SEVERE; in testThermalStatusCallback()
88 ThermalUtils.overrideThermalStatus(status); in testThermalStatusCallback()
90 .times(1)).onThermalStatusChanged(status); in testThermalStatusCallback()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DConditionProviderVerifierActivity.java103 status = FAIL; in test()
106 status = PASS; in test()
108 status = WAIT_FOR_USER; in test()
142 status = FAIL; in test()
145 status = FAIL; in test()
147 status = PASS; in test()
175 status = PASS; in test()
179 status = RETEST; in test()
183 status = FAIL; in test()
200 status = READY; in setUp()
[all …]
DNotificationListenerVerifierActivity.java249 status = READY; in setUp()
263 status = PASS; in test()
266 status = FAIL; in test()
294 status = READY; in setUp()
312 status = PASS; in test()
316 status = RETEST; in test()
318 status = FAIL; in test()
323 status = WAIT_FOR_USER; in test()
373 status = READY; in setUp()
391 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 …]
/cts/tests/tests/media/libmediandkjni/
Dnative-mediadrm-jni.cpp192 media_status_t status = AMediaDrm_getPropertyString(aMediaObjects.getDrm(), in Java_android_media_cts_NativeMediaDrmClearkeyTest_testGetPropertyStringNative() local
205 "get property string returns %d", status); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testGetPropertyStringNative()
230 media_status_t status = AMediaDrm_setPropertyByteArray(drm, propertyName, value, sizeof(value)); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative() local
231 if (status != AMEDIA_OK) { in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative()
237 status = AMediaDrm_getPropertyByteArray(drm, propertyName, &array); in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative()
238 if (status != AMEDIA_OK) { in Java_android_media_cts_NativeMediaDrmClearkeyTest_testPropertyByteArrayNative()
282 media_status_t status = AMediaExtractor_setDataSource( in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative() local
286 if (status != AMEDIA_OK) { in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative()
288 "set video data source error=%d", status); in Java_android_media_cts_NativeMediaDrmClearkeyTest__testPsshNative()
387 media_status_t status = AMEDIA_OK; in fillDecoder() local
[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 …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/qstiles/
DInteractiveVerifierActivity.java75 protected int status; field in InteractiveVerifierActivity.InteractiveTestCase
95 status = READY; in setUp()
101 status = FAIL; in test()
111 status = FAIL; in setFailed()
116 status = FAIL; in setFailed()
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()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2014-9803/
Dpoc.c56 int status = 0; in do_trace() local
59 waitpid(child, &status, 0); in do_trace()
62 status = ptrace(PTRACE_PEEKDATA, child, mem, 0); in do_trace()
67 return status; in do_trace()
85 int status = 0; in main() local
86 waitpid(child, &status, 0); // wait for child to exit naturally in main()
87 int exit = WEXITSTATUS(status); // get child exit status in main()
/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/
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.java201 status = PASS; in test()
215 status = PASS; in test()
217 status = WAIT_FOR_USER; in test()
237 status = PASS; in test()
239 status = WAIT_FOR_USER; in test()
260 status = PASS; in test()
262 status = WAIT_FOR_USER; in test()
311 status = PASS; in test()
324 status = PASS; in test()
364 status = PASS; in test()
[all …]
/cts/apps/CtsVerifier/jni/midi/
Dcom_android_cts_verifier_audio_midilib_NativeMidiManager.cpp46 media_status_t status; in Java_com_android_cts_verifier_audio_midilib_NativeMidiManager_startTest() local
49 status = AMidiDevice_fromJava(env, midiObj, &nativeMidiDevice); in Java_com_android_cts_verifier_audio_midilib_NativeMidiManager_startTest()
51 ALOGI("nativeSendDevice:%p, status:%d", nativeMidiDevice, status); in Java_com_android_cts_verifier_audio_midilib_NativeMidiManager_startTest()
56 status = AMidiDevice_release(nativeMidiDevice); in Java_com_android_cts_verifier_audio_midilib_NativeMidiManager_startTest()
58 ALOGI("device release status:%d", status); in Java_com_android_cts_verifier_audio_midilib_NativeMidiManager_startTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
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 …]
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 …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13273/
Dpoc.c34 static int status[MAX_THREAD]; variable
42 status[index] = 1; in thread_entry()
62 status[index] = 2; in thread_entry()
79 status[i] = 0; in main()
108 if (status[i] != 1) { in main()
124 if (status[i] != 2) { in main()
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java106 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateFileHasSanePermissions() local
107 FileUtils.getFileStatus(myFile.getAbsolutePath(), status, false); in testCreateFileHasSanePermissions() local
114 Integer.toOctalString(status.mode)); in testCreateFileHasSanePermissions()
126 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateDirectoryHasSanePermissions() local
127 FileUtils.getFileStatus(myDir.getAbsolutePath(), status, false); in testCreateDirectoryHasSanePermissions() local
135 Integer.toOctalString(status.mode)); in testCreateDirectoryHasSanePermissions()
557 FileUtils.FileStatus status = new FileUtils.FileStatus(); in assertFileOwnedBy() local
559 if (file.exists() && FileUtils.getFileStatus(path, status, true)) { in assertFileOwnedBy()
560 String actualOwner = FileUtils.getUserName(status.uid); in assertFileOwnedBy()
577 FileUtils.FileStatus status = new FileUtils.FileStatus(); in assertFileOwnedByGroup() local
[all …]
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DFcpTemplate.java53 private final String status; field in FcpTemplate
55 private FcpTemplate(@Nonnull List<Tlv> tlvs, @Nonnull String status) { in FcpTemplate() argument
57 this.status = status; in FcpTemplate()
65 return status; in getStatus()
105 String status = fcpResponse.substring(fcpResponse.length() - 4); in parseFcpTemplate() local
106 return new FcpTemplate(tlvObjects , status); in parseFcpTemplate()
/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()

1234567