Home
last modified time | relevance | path

Searched refs:available (Results 1 – 25 of 53) sorted by relevance

123

/cts/tests/tests/content/src/android/content/res/cts/
DAssetManager_AssetInputStreamTest.java91 assertEquals(EXPECTED_BYTES.length, mAssetInputStream.available()); in testSingleByteRead()
94 assertEquals(EXPECTED_BYTES.length - i - 1, mAssetInputStream.available()); in testSingleByteRead()
99 assertEquals(0, mAssetInputStream.available()); in testSingleByteRead()
120 assertEquals(0, mAssetInputStream.available()); in testByteArrayRead()
127 assertEquals(EXPECTED_BYTES.length - 10, mAssetInputStream.available()); in testByteArrayReadOffset()
133 assertEquals(EXPECTED_BYTES.length - 15, mAssetInputStream.available()); in testByteArrayReadOffset()
143 assertEquals(0, mAssetInputStream.available()); in testByteArrayReadOffset()
149 assertEquals(EXPECTED_BYTES.length - 8, mAssetInputStream.available()); in testSkip()
154 assertEquals(0, mAssetInputStream.available()); in testSkip()
169 mAssetInputStream.read(null, 0, mAssetInputStream.available()); in testArgumentEdgeCases()
[all …]
DAssetFileDescriptor_AutoCloseInputStreamTest.java158 assertEquals(FILE_LENGTH, mInput.available()); in testAvailableRead()
160 assertEquals(FILE_LENGTH - 1, mInput.available()); in testAvailableRead()
167 assertEquals(FILE_LENGTH, mInput.available()); in testAvailableReadBuffer()
169 assertEquals(FILE_LENGTH - buf.length, mInput.available()); in testAvailableReadBuffer()
176 assertEquals(FILE_LENGTH, mInput.available()); in testAvailableReadBufferLen()
178 assertEquals(FILE_LENGTH - 2, mInput.available()); in testAvailableReadBufferLen()
218 assertEquals(FILE_LENGTH, mInput.available()); in testReadZeroByte()
220 assertEquals(FILE_LENGTH, mInput.available()); in testReadZeroByte()
511 assertEquals(FILE_LENGTH, in.available()); in testNonSeekableInputStream()
513 assertEquals(FILE_LENGTH - 1, in.available()); in testNonSeekableInputStream()
[all …]
/cts/hostsidetests/rollback/app/src/com/android/cts/rollback/host/app/
DHostTestHelper.java119 RollbackInfo available = RollbackUtils.getAvailableRollback(TestApp.A); in testApkOnlyStagedRollback_Phase2_RollBack() local
120 assertThat(available).isStaged(); in testApkOnlyStagedRollback_Phase2_RollBack()
121 assertThat(available).packagesContainsExactly( in testApkOnlyStagedRollback_Phase2_RollBack()
125 RollbackUtils.rollback(available.getRollbackId(), TestApp.A2); in testApkOnlyStagedRollback_Phase2_RollBack()
127 assertThat(committed).hasRollbackId(available.getRollbackId()); in testApkOnlyStagedRollback_Phase2_RollBack()
182 RollbackInfo available = RollbackUtils.getAvailableRollback(TestApp.A); in testApkOnlyMultipleStagedRollback_Phase2_RollBack() local
183 assertThat(available).isStaged(); in testApkOnlyMultipleStagedRollback_Phase2_RollBack()
184 assertThat(available).packagesContainsExactly( in testApkOnlyMultipleStagedRollback_Phase2_RollBack()
188 RollbackUtils.rollback(available.getRollbackId(), TestApp.A2); in testApkOnlyMultipleStagedRollback_Phase2_RollBack()
190 assertThat(committed).hasRollbackId(available.getRollbackId()); in testApkOnlyMultipleStagedRollback_Phase2_RollBack()
[all …]
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DFeatureDeviceInfo.java102 boolean available) throws Exception { in addFeature() argument
106 store.addResult("available", available); in addFeature()
114 boolean available, in addFeature() argument
119 store.addResult("available", available); in addFeature()
/cts/tests/signature/api-check/android-test-base-uses-library-api/
DAndroid.bp37 // Prevent android.test.mock and android.test.runner classes being available at runtime by
39 // Otherwise, the test would break as it is not expecting those classes to be available.
/cts/tests/signature/api-check/android-test-mock-current-api/
DAndroid.bp36 // Prevent android.test.base and android.test.runner classes being available at runtime by
38 // Otherwise, the test would break as it is not expecting those classes to be available.
/cts/tests/tests/tv/src/android/media/tv/interactive/cts/
DStubTvInputService2.java153 public void notifyCueingMessageAvailability(boolean available) { in notifyCueingMessageAvailability() argument
154 super.notifyCueingMessageAvailability(available); in notifyCueingMessageAvailability()
/cts/tests/signature/api-check/android-test-base-current-api/
DAndroid.bp36 // Prevent android.test.base, android.test.runner and android.test.mock classes being available
39 // available.
/cts/tests/signature/api-check/android-test-base-29-api/
DAndroid.bp37 // Prevent android.test.runner and android.test.mock classes being available at runtime by
39 // Otherwise, the test would break as it is not expecting those classes to be available.
/cts/tests/videocodec/
DREADME.md4 The test vectors used by the test suite is available at [link](https://dl.google.com/android/xts/ct…
/cts/tests/net/src/android/net/cts/
DLocalSocketTest.java273 assertEquals(0, serverInputStream.available()); in testAvailable()
277 assertEquals(50, serverInputStream.available()); in testAvailable()
281 assertEquals(0, clientInputStream.available()); in testAvailable()
283 assertEquals(50, serverInputStream.available()); in testAvailable()
352 assertEquals(bytesToTransfer, inputStream.available()); in testFlushWorks()
363 assertEquals(0, inputStream.available()); in testFlushWorks()
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/util/jni/
Dandroid_virtualdevice_cts_camera_util_NativeCameraManager.cc119 void invokeCallback(const std::string& cameraId, const bool available) const { in invokeCallback()
125 executeInJvm(mJvm, [&cameraId, available, this](JNIEnv* env) { in invokeCallback()
128 available ? "onCameraAvailable" : "onCameraUnavailable", in invokeCallback()
/cts/tests/video/
DREADME.md6 The test vectors used by the test suite is available at [link](https://dl.google.com/android/xts/ct…
/cts/tests/rollback/src/com/android/cts/rollback/
DRollbackManagerTest.java120 RollbackInfo available = RollbackUtils.waitForAvailableRollback(TestApp.A); in testBasic() local
121 assertThat(available).isNotStaged(); in testBasic()
122 assertThat(available).packagesContainsExactly( in testBasic()
126 RollbackUtils.rollback(available.getRollbackId(), TestApp.A2); in testBasic()
132 assertThat(committed).hasRollbackId(available.getRollbackId()); in testBasic()
389 RollbackInfo available = RollbackUtils.waitForAvailableRollback(TestApp.A); in testRollbackClearsFlags() local
397 RollbackUtils.rollback(available.getRollbackId(), TestApp.A2); in testRollbackClearsFlags()
421 RollbackInfo available = RollbackUtils.waitForAvailableRollback(TestApp.A); in testRollbackAfterKeyRotation() local
422 RollbackUtils.rollback(available.getRollbackId(), TestApp.ARotated2); in testRollbackAfterKeyRotation()
/cts/tests/inputmethod/legacyimeclienttestlib/
DAndroid.bp23 // Ideally we want to use SDK version 3, but it's not available.
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCaCertInstallViaIntentTest.java63 byte[] cert = new byte[is.available()]; in onClick()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DSpatializerTest.java523 public void onSpatializerAvailableChanged(@NonNull Spatializer spat, boolean available) { in onSpatializerAvailableChanged() argument
524 Log.i(TAG, "onSpatializerAvailableChanged:" + available); in onSpatializerAvailableChanged()
570 public void onHeadTrackerAvailableChanged(Spatializer spatializer, boolean available) { in onHeadTrackerAvailableChanged() argument
571 Log.i(TAG, "onHeadTrackerAvailable(" + available + ")"); in onHeadTrackerAvailableChanged()
/cts/tests/sample/
DREADME10 The list of all available groups:
/cts/hostsidetests/incrementalinstall/app/v1/src/android/incrementalinstall/incrementaltestapp/
DMainActivity.java58 int size = is.available(); in loadDynamicAsset()
/cts/hostsidetests/jdwptunnel/sampleapps/ddmsapp/
DAndroid.bp37 // Platform libraries that may not be available to apps. Link in statically.
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityButtonTest.java74 boolean available) {
/cts/hostsidetests/jvmti/base/jni/
DAndroid.bp45 // Platform libraries that may not be available to apps. Link in statically.
/cts/tests/signature/api-check/android-test-runner-current-api/
DAndroid.bp37 // the manifest. Their classes should still be available at runtime as a dependency on
/cts/hostsidetests/jvmti/attaching/
DAndroid.bp49 // Platform libraries that may not be available to apps. Link in statically.
/cts/tests/media/
DREADME.md2 … Api. These tests aims to test all codecs advertised in MediaCodecList, available muxers and extra…
6 The test vectors used by the test suite is available at [link](https://dl.google.com/android/xts/ct…

123