Home
last modified time | relevance | path

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

/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.java92 RollbackInfo available = Utils.getAvailableRollback(TestApp.A); in testApkOnlyCommitRollback() local
93 assertThat(available).isStaged(); in testApkOnlyCommitRollback()
94 assertThat(available).packagesContainsExactly( in testApkOnlyCommitRollback()
98 Utils.rollback(available.getRollbackId(), TestApp.A2); in testApkOnlyCommitRollback()
100 assertThat(committed).hasRollbackId(available.getRollbackId()); in testApkOnlyCommitRollback()
169 RollbackInfo available = Utils.getAvailableRollback(TestApp.Apex); in testApexOnlyCommitRollback() local
170 assertThat(available).isStaged(); in testApexOnlyCommitRollback()
171 assertThat(available).packagesContainsExactly( in testApexOnlyCommitRollback()
174 Utils.rollback(available.getRollbackId(), TestApp.Apex3); in testApexOnlyCommitRollback()
175 RollbackInfo committed = Utils.getCommittedRollbackById(available.getRollbackId()); in testApexOnlyCommitRollback()
[all …]
/cts/tests/rollback/src/android/server/cts/rollback/
DRollbackManagerTest.java85 RollbackInfo available = Utils.getAvailableRollback(TestApp.A); in testBasic() local
86 assertThat(available).isNotNull(); in testBasic()
87 assertThat(available).isNotStaged(); in testBasic()
88 assertThat(available).packagesContainsExactly( in testBasic()
92 Utils.rollback(available.getRollbackId(), TestApp.A2); in testBasic()
97 assertThat(committed).hasRollbackId(available.getRollbackId()); in testBasic()
/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/tests/net/src/android/net/cts/
DLocalSocketTest.java274 assertEquals(0, serverInputStream.available()); in testAvailable()
278 assertEquals(50, serverInputStream.available()); in testAvailable()
282 assertEquals(0, clientInputStream.available()); in testAvailable()
284 assertEquals(50, serverInputStream.available()); in testAvailable()
352 assertEquals(bytesToTransfer, inputStream.available()); in testFlushWorks()
363 assertEquals(0, inputStream.available()); in testFlushWorks()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityButtonTest.java51 boolean available) {
/cts/hostsidetests/jvmti/base/jni/
DAndroid.bp39 // Platform libraries that may not be available to apps. Link in statically.
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvViewTest.java72 Boolean available = mVideoAvailableMap.get(inputId); in isVideoAvailable() local
73 return available == null ? false : available.booleanValue(); in isVideoAvailable()
/cts/hostsidetests/jvmti/attaching/
DAndroid.bp50 // Platform libraries that may not be available to apps. Link in statically.
/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/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/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DSeccompDeviceTest.java214 while (is.available() > 0) { in readInputStreamFully()
/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.java388 byteArray = new byte[rawStream.available()];
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DXmpDepthDecode.java236 section.data = new byte[is.available()]; in parse()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContacts_PeopleTest.java256 int size = inputStream.available(); in testAccessPhotoData()
DContactsTest.java224 int size = inputStream.available(); in testPhotosTable()
/cts/hostsidetests/theme/
DREADME41 available internally at go/emu-dev. This script will install the image in
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DPowerTestHostLink.java147 while (streamIn.available() > 0 || total == 0) { in run()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java639 InputStreamEntity entity = new InputStreamEntity(in, in.available()); in getResponse()
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java926 while((fis.available() != 0) && (fis.read(b) != -1)) { in tryFileRead()
/cts/tests/tests/media/src/android/media/cts/
D.goutputstream-9KZYJZ92 Disable until better solution is available
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale261 A few language systems have post-linkage optimization available