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.java88 assertEquals(EXPECTED_BYTES.length, mAssetInputStream.available()); in testSingleByteRead()
91 assertEquals(EXPECTED_BYTES.length - i - 1, mAssetInputStream.available()); in testSingleByteRead()
96 assertEquals(0, mAssetInputStream.available()); in testSingleByteRead()
117 assertEquals(0, mAssetInputStream.available()); in testByteArrayRead()
124 assertEquals(EXPECTED_BYTES.length - 10, mAssetInputStream.available()); in testByteArrayReadOffset()
130 assertEquals(EXPECTED_BYTES.length - 15, mAssetInputStream.available()); in testByteArrayReadOffset()
140 assertEquals(0, mAssetInputStream.available()); in testByteArrayReadOffset()
146 assertEquals(EXPECTED_BYTES.length - 8, mAssetInputStream.available()); in testSkip()
151 assertEquals(0, mAssetInputStream.available()); in testSkip()
166 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/tests/tests/hardware/src/android/hardware/cts/
DGlUtils.java61 String[] available = getExtensions(); in hasExtensions() local
62 Arrays.sort(available); in hasExtensions()
64 if (Arrays.binarySearch(available, extension) < 0) return false; in hasExtensions()
/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/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/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.java48 boolean available) {
/cts/hostsidetests/jvmti/base/jni/
DAndroid.bp39 // Platform libraries that may not be available to apps. Link in statically.
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DSeccompDeviceTest.java104 while (is.available() > 0) { in readInputStreamFully()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java734 int available = displayHeight - anchorView.getHeight(); in testGetMaxAvailableHeight() local
739 assertTrue(maxAvailableHeight <= available); in testGetMaxAvailableHeight()
741 assertTrue(maxAvailableHeightIgnoringBottomDecoration <= available); in testGetMaxAvailableHeight()
749 assertTrue(maxAvailableHeightWithOffset <= available); in testGetMaxAvailableHeight()
754 assertTrue(maxAvailableHeightWithOffset <= available); in testGetMaxAvailableHeight()
758 assertTrue(maxAvailableHeightWithOffset <= available); in testGetMaxAvailableHeight()
768 assertTrue(maxAvailableHeightWithOffsetIgnoringBottomDecoration <= available); in testGetMaxAvailableHeight()
773 assertTrue(maxAvailableHeightWithOffsetIgnoringBottomDecoration <= available); in testGetMaxAvailableHeight()
778 assertTrue(maxAvailableHeightWithOffsetIgnoringBottomDecoration <= available); in testGetMaxAvailableHeight()
784 available = Math.max(displayHeight, in testGetMaxAvailableHeight()
[all …]
/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/tools/device-setup/TestDeviceSetup/src/android/tests/getinfo/
DDeviceInfoInstrument.java291 boolean available) { in addFeature() argument
292 features.append(name).append(':').append(type).append(':').append(available).append(';'); in addFeature()
/cts/tools/cts-api-coverage/proto/
Dcts_report.proto207 // Hardware features that may be available on the device.
212 optional bool available = 3; field
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java234 public void setNetworkAvailable(final boolean available) { in setNetworkAvailable() argument
238 mWebView.setNetworkAvailable(available); in setNetworkAvailable()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DRVCVXCheckTestActivity.java389 byteArray = new byte[rawStream.available()]; in showOpenCVLibaryLicenseDisplayButton()
/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/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java850 while((fis.available() != 0) && (fis.read(b) != -1)) { in tryFileRead()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java639 InputStreamEntity entity = new InputStreamEntity(in, in.available()); in getResponse()
/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
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...