Home
last modified time | relevance | path

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

12

/cts/tests/tests/content/src/android/content/res/cts/
DAssetManager_AssetInputStreamTest.java89 assertEquals(EXPECTED_BYTES.length, mAssetInputStream.available()); in testSingleByteRead()
92 assertEquals(EXPECTED_BYTES.length - i - 1, mAssetInputStream.available()); in testSingleByteRead()
97 assertEquals(0, mAssetInputStream.available()); in testSingleByteRead()
118 assertEquals(0, mAssetInputStream.available()); in testByteArrayRead()
125 assertEquals(EXPECTED_BYTES.length - 10, mAssetInputStream.available()); in testByteArrayReadOffset()
131 assertEquals(EXPECTED_BYTES.length - 15, mAssetInputStream.available()); in testByteArrayReadOffset()
141 assertEquals(0, mAssetInputStream.available()); in testByteArrayReadOffset()
147 assertEquals(EXPECTED_BYTES.length - 8, mAssetInputStream.available()); in testSkip()
152 assertEquals(0, mAssetInputStream.available()); in testSkip()
167 mAssetInputStream.read(null, 0, mAssetInputStream.available()); in testArgumentEdgeCases()
[all …]
DAssetFileDescriptor_AutoCloseInputStreamTest.java121 assertEquals(FILE_LENGTH, mInput.available()); in testAvailableRead()
123 assertEquals(FILE_LENGTH -1 , mInput.available()); in testAvailableRead()
129 assertEquals(FILE_LENGTH, mInput.available()); in testAvailableReadBuffer()
131 assertEquals(FILE_LENGTH - buf.length, mInput.available()); in testAvailableReadBuffer()
137 assertEquals(FILE_LENGTH, mInput.available()); in testAvailableReadBufferLen()
139 assertEquals(FILE_LENGTH - 2, mInput.available()); in testAvailableReadBufferLen()
/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/tests/rollback/src/com/android/cts/rollback/
DRollbackManagerTest.java94 RollbackInfo available = RollbackUtils.waitForAvailableRollback(TestApp.A); in testBasic() local
95 assertThat(available).isNotStaged(); in testBasic()
96 assertThat(available).packagesContainsExactly( in testBasic()
100 RollbackUtils.rollback(available.getRollbackId(), TestApp.A2); in testBasic()
106 assertThat(committed).hasRollbackId(available.getRollbackId()); in testBasic()
148 RollbackInfo available = RollbackUtils.waitForAvailableRollback(TestApp.A); in testRollbackClearsFlags() local
156 RollbackUtils.rollback(available.getRollbackId(), TestApp.A2); in testRollbackClearsFlags()
180 RollbackInfo available = RollbackUtils.waitForAvailableRollback(TestApp.A); in testRollbackAfterKeyRotation() local
181 RollbackUtils.rollback(available.getRollbackId(), TestApp.ARotated2); in testRollbackAfterKeyRotation()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DBluetoothSharingRestrictionTest.java95 static void assertBluetoothSharingAvailable(Context context, boolean available) in assertBluetoothSharingAvailable() argument
98 assertRestrictionEnforced(context, !available); in assertBluetoothSharingAvailable()
100 final int componentEnabledState = available in assertBluetoothSharingAvailable()
105 assertHandlerAvailable(context, fileSharingIntent(), OPP_LAUNCHER_COMPONENT, available); in assertBluetoothSharingAvailable()
/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/mediapc/
DREADME.md4 The test vectors used by the test suite is available at [link](https://storage.googleapis.com/andro…
/cts/tests/video/
DREADME.md6 The test vectors used by the test suite is available at [link](https://storage.googleapis.com/andro…
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCaCertInstallViaIntentTest.java63 byte[] cert = new byte[is.available()]; in onClick()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityButtonTest.java69 boolean available) {
/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/hostsidetests/jvmti/base/jni/
DAndroid.bp45 // 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://storage.googleapis.com/andro…
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainHotwordDetectionService.java157 while (fis.available() < 8) { in onDetect()
168 Log.d(TAG, "fis.available() = " + fis.available()); in onDetect()
/cts/hostsidetests/jvmti/attaching/
DAndroid.bp49 // Platform libraries that may not be available to apps. Link in statically.
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvViewTest.java78 Boolean available = mVideoAvailableMap.get(inputId); in isVideoAvailable() local
79 return available == null ? false : available.booleanValue(); in isVideoAvailable()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DEvents.java116 if (fileInputStream.available() < BYTES_PER_INT) { in readEvent()
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java161 public void setNetworkAvailable(final boolean available) { in setNetworkAvailable() argument
163 mWebView.setNetworkAvailable(available); in setNetworkAvailable()
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DSeccompDeviceTest.java211 while (is.available() > 0) { in readInputStreamFully()
/cts/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java294 boolean available) { in addFeature() argument
295 features.append(name).append(':').append(type).append(':').append(available).append(';'); in addFeature()
/cts/tools/cts-tradefed/
DREADME22 Android SDK available from http://developer.android.com
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityShortcutTest.java262 boolean available) { in performShortcutAndWaitForA11yButtonClicked()
/cts/tools/cts-api-coverage/proto/
Dcts_report.proto213 // Hardware features that may be available on the device.
218 optional bool available = 3; field
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckTestActivity.java393 byteArray = new byte[rawStream.available()];

12