Home
last modified time | relevance | path

Searched defs:is (Results 1 – 25 of 132) sorted by relevance

123456

/aosp14/frameworks/base/tools/powermodel/test/com/android/powermodel/
H A DCsvParserTest.java64 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEmpty() local
76 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testOnlyNewline() local
88 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testTwoLines() local
103 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedEmpty() local
116 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedText() local
129 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedQuotes() local
142 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedCommas() local
155 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testEscapedQuotesAndCommas() local
168 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testNoNewline() local
181 final InputStream is = new ByteArrayInputStream(text.getBytes(StandardCharsets.UTF_8)); in testNoNewlineWithCommas() local
[all …]
H A DRawBatteryStatsTest.java48 final InputStream is = makeCsv(); in testVersion() local
69 final InputStream is = makeCsv("9,0,i,uid,1000,com.example.app"); in testUid() local
80 final InputStream is = makeCsv("9,0,i,gmcd,1,2,3,4,5,6,7"); in testVarargs() local
/aosp14/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DLimitedLengthInputStreamTest.java45 InputStream is = new LimitedLengthInputStream(mTestStream1, -1, TEST_STRING1.length); in testConstructor_NegativeOffset_Failure() local
55 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, -1); in testConstructor_NegativeLength_Failure() local
65 InputStream is = new LimitedLengthInputStream(null, 0, 1); in testConstructor_NullInputStream_Failure() local
75 InputStream is = new LimitedLengthInputStream(mTestStream1, Long.MAX_VALUE - 1, in testConstructor_OffsetLengthOverflow_Fail() local
91 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytesWithOffsetAndLength_WithString1() local
126 InputStream is = new LimitedLengthInputStream(mTestStream1, 0, TEST_STRING1.length + 10); in testReadBytesWithOffsetAndLength_ZeroOffset_PastEnd_Success() local
141 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkReadBytes_WithString1() local
171 InputStream is = new LimitedLengthInputStream(mTestStream1, offset, length); in checkSingleByteRead_WithString1() local
H A DMacAuthenticatedInputStreamTest.java78 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_Success() local
89 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_WrongTag_Failure() local
100 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_NullTag_Failure() local
111 MacAuthenticatedInputStream is = new MacAuthenticatedInputStream(mTestStream1, mac); in testString1Authenticate_ReadSingleByte_Success() local
/aosp14/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DIntentSenderTest.java34 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testRegisteredReceivePermissionGranted() local
57 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, in testRegisteredReceivePermissionDenied() local
66 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, in testLocalReceivePermissionGranted() local
87 PendingIntent is = PendingIntent.getBroadcast(getContext(), 0, intent, in testLocalReceivePermissionDenied() local
/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A DBinaryXmlTest.java70 final ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray()); in testLargeInterned_Binary() local
98 final ByteArrayInputStream is = new ByteArrayInputStream(firstRaw); in doTranscode() local
119 try (InputStream is = new FileInputStream(file)) { in testResolve_File()
130 try (InputStream is = new FileInputStream(file)) { in testResolve_File()
146 try (InputStream is = new ByteArrayInputStream(data) { in testResolve_Memory()
163 try (InputStream is = new ByteArrayInputStream(data) { in testResolve_Memory()
H A DXmlTest.java92 final ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray()); in doLargeValues() local
182 final ByteArrayInputStream is = new ByteArrayInputStream(raw); in doPersistableBundleRead() local
224 final ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray()); in doVerify() local
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/
H A DFontListParserTest.java222 try (InputStream is = new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8))) { in invalidXml_unpaired_family()
239 try (InputStream is = new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8))) { in invalidXml_unpaired_font()
258 try (InputStream is = new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8))) { in invalidXml_unpaired_axis()
275 try (InputStream is = new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8))) { in invalidXml_unclosed_family()
292 try (InputStream is = new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8))) { in invalidXml_unclosed_font()
311 try (InputStream is = new ByteArrayInputStream(xml.getBytes(StandardCharsets.UTF_8))) { in invalidXml_unclosed_axis()
H A DFontFileUtilTest.java68 try (InputStream is = am.open(path)) { in mmap()
90 private static boolean copyToFile(File file, InputStream is) { in copyToFile()
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DMovie.java60 public static Movie decodeStream(InputStream is) { in decodeStream()
73 private static native Movie nativeDecodeStream(InputStream is); in nativeDecodeStream()
80 InputStream is; in decodeFile() local
100 private static Movie decodeTempStream(InputStream is) { in decodeTempStream()
H A DBitmapFactory.java569 @Nullable InputStream is, @Nullable Rect pad, @Nullable Options opts) { in decodeResourceStream()
611 InputStream is = null; in decodeResource() local
760 public static Bitmap decodeStream(@Nullable InputStream is, @Nullable Rect outPadding, in decodeStream()
797 private static Bitmap decodeStreamInternal(@NonNull InputStream is, in decodeStreamInternal()
818 public static Bitmap decodeStream(InputStream is) { in decodeStream()
886 private static native Bitmap nativeDecodeStream(InputStream is, byte[] storage, in nativeDecodeStream()
H A DBitmapRegionDecoder.java140 public static BitmapRegionDecoder newInstance(@NonNull InputStream is, in newInstance()
157 public static BitmapRegionDecoder newInstance(@NonNull InputStream is) throws IOException { in newInstance()
329 InputStream is, byte[] storage); in nativeNewInstance()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/
H A DAssetTest.java36 public static void verifyTextAsset(InputStream is) throws IOException { in verifyTextAsset()
65 InputStream is = mAssets.open("text.txt"); in testReadToEnd() local
/aosp14/frameworks/base/tests/CoreTests/android/core/
H A DTestWebServer.java435 private int readOneLine(InputStream is) { in readOneLine()
473 private int readData(InputStream is, int length) { in readData()
497 private int parseStatusLine(InputStream is) { in parseStatusLine()
567 private int parseHeader(InputStream is) { in parseHeader()
605 private int readHeaders(InputStream is) { in readHeaders()
626 private int readContent(InputStream is) { in readContent()
641 InputStream is = new BufferedInputStream(s.getInputStream()); in handleClient() local
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
H A DPersistentDataStoreTest.java88 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testLoadBrightness() local
125 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testSetBrightness_brightnessTagWithNoUserId_updatesToBrightnessTagWithUserId() local
192 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testLoadingBrightnessConfigurations() local
225 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testBrightnessConfigWithInvalidCurveIsIgnored() local
244 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testBrightnessConfigWithInvalidFloatsIsIgnored() local
256 InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in testEmptyBrightnessConfigurationsDoesntCrash() local
549 public void setReadStream(InputStream is) { in setReadStream()
/aosp14/frameworks/base/obex/javax/obex/
H A DObexPacket.java39 public static ObexPacket read(InputStream is) throws IOException { in read()
51 public static ObexPacket read(int headerId, InputStream is) throws IOException { in read()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
H A DBitmapRegionTileSource.java71 InputStream is, boolean isShareable) { in newInstance()
108 public static DumbBitmapRegionDecoder newInstance(InputStream is) { in newInstance()
267 InputStream is = mContext.getContentResolver().openInputStream(mUri); in regenerateInputStream() local
273 InputStream is = regenerateInputStream(); in loadBitmapRegionDecoder() local
291 InputStream is = regenerateInputStream(); in loadPreviewBitmap() local
302 InputStream is = null; in readExif() local
332 InputStream is = mRes.openRawResource(mResId); in regenerateInputStream() local
337 InputStream is = regenerateInputStream(); in loadBitmapRegionDecoder() local
355 InputStream is = regenerateInputStream(); in readExif() local
/aosp14/frameworks/base/apct-tests/perftests/core/src/com/android/internal/util/
H A DFastDataPerfTest.java102 final ByteArrayInputStream is = new ByteArrayInputStream(doWrite()); in timeRead_Upstream() local
118 final ByteArrayInputStream is = new ByteArrayInputStream(doWrite()); in timeRead_LocalUsing4ByteSequences() local
133 final ByteArrayInputStream is = new ByteArrayInputStream(doWrite()); in timeRead_LocalUsing3ByteSequences() local
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DMemoryFileTest.java90 InputStream is = file.getInputStream(); in testRun() local
130 InputStream is = file.getInputStream(); in readIndexOutOfBoundsException() local
175 InputStream is = file.getInputStream(); in testReadEOF() local
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DWindowTracingTest.java139 try (InputStream is = new FileInputStream(mFile)) { in traceFile_startsWithMagicHeader()
161 try (InputStream is = new FileInputStream(mFile)) { in tracing_endsUpInFile()
H A DDisplayWindowSettingsProviderTests.java284 final InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in prepareOverrideDisplaySettings() local
302 final InputStream is = new ByteArrayInputStream(contents.getBytes(StandardCharsets.UTF_8)); in prepareSecondaryDisplaySettings() local
429 private void setReadStream(InputStream is) { in setReadStream()
/aosp14/frameworks/base/tests/Internal/src/com/android/internal/protolog/
H A DProtoLogImplTest.java127 try (InputStream is = new FileInputStream(mFile)) { in logFile_startsWithMagicHeader()
349 try (InputStream is = new FileInputStream(mFile)) { in log_protoEnabled()
374 try (InputStream is = new FileInputStream(mFile)) { in log_invalidParamsMask()
396 try (InputStream is = new FileInputStream(mFile)) { in log_protoDisabled()
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DArtBinaryXmlPullParser.java36 protected FastDataInput obtainFastDataInput(@NonNull InputStream is) { in obtainFastDataInput()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifModifier.java52 InputStream is = null; in ExifModifier() local
70 InputStream is = null; in commit() local
/aosp14/frameworks/base/tests/AppResourcesLoaders/src/com/android/example/loaders/
H A DLoadersApplication.java49 final InputStream is = getClassLoader().getResourceAsStream(LOADER_RESOURCES_APK); in copyResource() local

123456