Home
last modified time | relevance | path

Searched +defs:is +defs:null (Results 1 – 25 of 404) sorted by relevance

12345678910>>...17

/aosp_15_r20/libcore/luni/src/test/java/libcore/java/nio/file/
H A DDefaultFileSystemProviderTest.java92 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ)) { in test_newInputStream()
100 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), WRITE)) { in test_newInputStream_openOption()
105 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), APPEND)) { in test_newInputStream_openOption()
110 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), in test_newInputStream_openOption()
117 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), DELETE_ON_CLOSE, in test_newInputStream_openOption()
125 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), READ); in test_newInputStream_twice()
136 try (InputStream is = provider.newInputStream(null)){ in test_newInputStream_NPE()
140 try (InputStream is = provider.newInputStream(filesSetup.getDataFilePath(), in test_newInputStream_NPE()
141 (OpenOption[]) null)) { in test_newInputStream_NPE()
152 try (InputStream is = provider.newInputStream(filesSetup.getTestPath())) { in test_newOutputStream()
[all …]
H A DFiles2Test.java216 Files.getAttribute(filesSetup.getDataFilePath(), null); in test_getAttribute_Exception() local
255 Files.setPosixFilePermissions(filesSetup.getDataFilePath(), null); in test_setPosixFilePermissions_NPE() local
410 Files.setLastModifiedTime(filesSetup.getDataFilePath(), null); in test_setLastModifiedTime_NPE() local
916 try(Stream<Path> pathStream = Files.find(rootDir, 2, null)) { in test_find_NPE() argument
960 Files.lines(filesSetup.getDataFilePath(), null); in test_lines$Path$Charset_NPE() local
1107 Files.newBufferedReader(filesSetup.getDataFilePath(), null); in test_newBufferedReader$Path$Charset_NPE() local
1216 try (InputStream is = Files.newInputStream(filesSetup.getDataFilePath())) { in test_newByteChannel_openOption_WRITE()
1240 try (InputStream is = Files.newInputStream(filesSetup.getDataFilePath())) { in test_newByteChannel_openOption_WRITE_READ()
1254 (OpenOption[]) null)) { in test_newByteChannel_NPE()
1334 Files.readAllLines(filesSetup.getDataFilePath(), null); in test_readAllLine$Path$Charset_NPE() local
[all …]
/aosp_15_r20/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
H A DResultsAssertionsUtils.java101 try (Cursor c = resolver.query(uri, projection, null, null)) { in assertRedactedReadOnlyAccess() argument
127 uri, projection, /* queryArgs */ null, /* cancellationSignal */ null)) { in assertExtension() argument
171 try (InputStream is = resolver.openInputStream(uri)) { in assertImageRedactedReadOnlyAccess()
182 try (Cursor c = resolver.query(uri, null, null, null)) { in assertImageRedactedReadOnlyAccess() argument
189 try (InputStream is = new FileInputStream(file)) { in assertImageRedactedReadOnlyAccess()
197 public static void assertImageExifRedacted(InputStream is) throws IOException { in assertImageExifRedacted()
/aosp_15_r20/cts/tests/PhotoPicker/src/android/photopicker/cts/
H A DCloudPhotoPickerTest.java321 InputStream is = new FileInputStream(pfd2.getFileDescriptor()); in testMediaStoreOpenFile() local
349 InputStream is = new FileInputStream(afd2.getFileDescriptor()); in testMediaStoreOpenAssetFile() local
368 .openTypedAssetFileDescriptor(uri, "*/*", null, cg)) { in testMediaStoreOpenTypedAssetFile() argument
370 mContext.getContentResolver(), uri, "*/*", null, cg)) { in testMediaStoreOpenTypedAssetFile() argument
377 InputStream is = new FileInputStream(afd2.getFileDescriptor()); in testMediaStoreOpenTypedAssetFile() local
396 .openFileDescriptor(mContext.getContentResolver(), uri, "w", null)) { in testMediaStoreOpenFile_invalidMode() argument
416 .openAssetFileDescriptor(mContext.getContentResolver(), uri, "w", null)) { in testMediaStoreOpenAssetFile_invalidMode() argument
435 try (Cursor c = resolver.query(clipData.getItemAt(0).getUri(), null, null, null)) { in testUriAccessWithValidProjection() argument
470 new String[] {MediaStore.MediaColumns.RELATIVE_PATH}, null, null)) { in testUriAccessWithInvalidProjection() argument
/aosp_15_r20/external/robolectric/integration_tests/nativegraphics/src/test/java/org/robolectric/shadows/
H A DShadowNativeBitmapFactoryTest.java130 InputStream is = obtainInputStream(); in testDecodeResourceStream() local
164 InputStream is = obtainInputStream(); in testDecodeStream1() local
177 InputStream is = obtainInputStream(); in testDecodeStream2() local
188 InputStream is = obtainInputStream(testImage.id); in testDecodeStream3() local
470 verifyUnscaled(BitmapFactory.decodeStream(obtainInputStream(), null, null)); in testDecodeScaling() local
471 verifyUnscaled(BitmapFactory.decodeStream(obtainInputStream(), null, unscaledOpt)); in testDecodeScaling() local
472 verifyUnscaled(BitmapFactory.decodeStream(obtainInputStream(), null, defaultOpt)); in testDecodeScaling() local
476 verifyScaled(BitmapFactory.decodeStream(obtainInputStream(), null, scaledOpt)); in testDecodeScaling() local
620 InputStream is = obtainInputStream(resId); in obtainFile() local
/aosp_15_r20/packages/apps/TV/tests/common/src/com/android/tv/testing/data/
DChannelUtils.java57 context.getContentResolver().query(uri, projections, null, null, null)) { in queryChannelInfoMapForTvInput() argument
74 try (Cursor cursor = resolver.query(channelsUri, projection, null, null, null)) { in updateChannels() argument
138 resolver.delete(TvContract.buildChannelUri(rowId), null, null); in updateChannels() local
142 public static void copy(InputStream is, OutputStream os) throws IOException { in copy()
178 try (InputStream is = mContext.getContentResolver().openInputStream(logoUri); in doInBackground()
/aosp_15_r20/cts/tests/tests/graphics/src/android/graphics/cts/
H A DBitmapFactoryTest.java177 InputStream is = obtainInputStream(); in testDecodeResourceStream() local
211 InputStream is = obtainInputStream(); in testDecodeStream1() local
224 InputStream is = obtainInputStream(); in testDecodeStream2() local
235 InputStream is = obtainInputStream(testImage.id); in testDecodeStream3() local
697 verifyUnscaled(BitmapFactory.decodeStream(obtainInputStream(), null, null)); in testDecodeScaling() local
698 verifyUnscaled(BitmapFactory.decodeStream(obtainInputStream(), null, unscaledOpt)); in testDecodeScaling() local
699 verifyUnscaled(BitmapFactory.decodeStream(obtainInputStream(), null, defaultOpt)); in testDecodeScaling() local
703 verifyScaled(BitmapFactory.decodeStream(obtainInputStream(), null, scaledOpt)); in testDecodeScaling() local
/aosp_15_r20/cts/tests/tests/print/src/android/print/cts/
H A DPrintDocumentInfoTest.java189 try (FileInputStream is = new FileInputStream(queuedData[0].getFileDescriptor())) { in printDocumentBaseTest()
315 }, null, null, null, null, null, invocation -> { in createFirstMockDiscoverySessionCallbacks() field in PrintDocumentInfoTest
/aosp_15_r20/libcore/luni/src/test/java/libcore/java/lang/
H A DOldRuntimeTest.java44 InputStream is; field in OldRuntimeTest
107 Runtime.getRuntime().exec((String)null, null); in test_execLjava_lang_StringLjava_lang_StringArray() local
145 Runtime.getRuntime().exec((String[])null, null); in test_execLjava_lang_StringArrayLjava_lang_StringArray() local
200 Runtime.getRuntime().exec((String)null, null, workFolder); in test_execLjava_lang_StringLjava_lang_StringArrayLjava_io_File() local
240 Runtime.getRuntime().exec((String[])null, null, workFolder); in test_execLjava_lang_StringArrayLjava_lang_StringArrayLjava_io_File() local
534 loadMethod.invoke(Runtime.getRuntime(), "nonExistentLibrary", null); in test_loadDeprecated_targetSdkVersion_24() local
550 loadMethod.invoke(Runtime.getRuntime(), "nonExistentLibrary", null); in test_loadDeprecated_targetSdkVersion_25() local
566 loadMethod.invoke(Runtime.getRuntime(), "nonExistentLibrary", null); in test_loadLibraryDeprecated_targetSdkVersion_24() local
582 loadMethod.invoke(Runtime.getRuntime(), "nonExistentLibrary", null); in test_loadLibraryDeprecated_targetSdkVersion_25() local
/aosp_15_r20/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/
DBluetoothOppObexServerSession.java403 null, in onPut() local
404 null); in onPut() local
436 null, in onPut() local
437 null); in onPut() local
454 mContext.getContentResolver(), mFileInfo.mInsertUri, null, null); in onPut() local
476 InputStream is = null; in receiveFile() local
498 mContext.getContentResolver(), contentUri, updateValues, null, null); in receiveFile() local
567 null, in receiveFile() local
568 null); in receiveFile() local
DBluetoothOppObexClientSession.java117 static int readFully(InputStream is, byte[] buffer, int size) throws IOException { in readFully()
385 null, in processShareInfo() local
386 null); in processShareInfo() local
/aosp_15_r20/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/
H A DTvContractUtils.java127 resolver.delete(TvContract.buildChannelUri(rowId), null, null); in updateChannels() local
259 InputStream is = null; in insertUrl() local
285 public static void copy(InputStream is, OutputStream os) throws IOException { in copy()
/aosp_15_r20/external/replicaisland/src/com/replica/replicaisland/
H A DTextureLibrary.java128 assert gl != null; in loadBitmap() local
129 assert context != null; in loadBitmap() local
130 assert texture != null; in loadBitmap() local
160 InputStream is = context.getResources().openRawResource(texture.resource); in loadBitmap() local
/aosp_15_r20/external/apache-commons-io/src/test/java/org/apache/commons/io/
H A DIOUtilsTest.java175 final InputStream is = new InputStream() { in testAsBufferedInputStream() local
188 final InputStream is = new InputStream() { in testAsBufferedInputStreamWithBufferSize() local
211 final OutputStream is = new OutputStream() { in testAsBufferedOutputStream() local
236 final Reader is = new Reader() { in testAsBufferedReader() local
519 assertTrue(IOUtils.contentEquals((InputStream) null, null)); in testContentEquals_InputStream_InputStream() local
575 assertTrue(IOUtils.contentEquals((Reader) null, null)); in testContentEquals_Reader_Reader() local
709 CharArrayReader is = null; in testCopyLarge_CharExtraLength() local
736 CharArrayReader is = null; in testCopyLarge_CharFullLength() local
762 CharArrayReader is = null; in testCopyLarge_CharNoSkip() local
788 CharArrayReader is = null; in testCopyLarge_CharSkip() local
[all …]
/aosp_15_r20/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
H A DShadowBitmapFactory.java56 Resources res, TypedValue value, InputStream is, Rect pad, BitmapFactory.Options opts) { in decodeResourceStream()
75 InputStream is = res.openRawResource(id, value); in decodeResource() local
151 protected static Bitmap decodeStream(InputStream is) { in decodeStream()
157 InputStream is, Rect outPadding, BitmapFactory.Options opts) { in decodeStream()
211 ByteArrayInputStream is = new ByteArrayInputStream(data, offset, length); in decodeByteArray() local
285 g.drawImage(image.getBufferedImage(), 0, 0, null); in create() local
399 Resources res, TypedValue value, InputStream is, Rect pad, BitmapFactory.Options opts); in decodeResourceStream()
/aosp_15_r20/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
H A DInlineDexmakerMockMaker.java92 try (InputStream is = InlineDexmakerMockMaker.class.getClassLoader() in try()
141 allowHiddenApiReflectionFrom.invoke(null, LenientCopyTool.class); in allowHiddenApiReflectionFrom.invoke() argument
149 allowHiddenApiReflectionFrom.invoke(null, MockMethodAdvice.class); in allowHiddenApiReflectionFrom.invoke() argument
/aosp_15_r20/cts/tests/tests/jvmti/attaching/src/android.jvmti.attaching.cts/
H A DAttachingTest.java159 try (InputStream is = getAgentInputStream(cl, lib)) { in copyAgentToFile()
191 Debug.attachJvmtiAgent(tmpFile.getAbsolutePath(), null, classLoader); in a_attachInvalidAgent() local
209 Debug.attachJvmtiAgent(tmpFile.getAbsolutePath(), null, classLoader); in a_attachWithEquals() local
/aosp_15_r20/cts/tests/tests/provider/src/android/provider/cts/
H A DMockFontProvider.java123 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 400, 0, Columns.RESULT_CODE_OK, true), in map.put() argument
127 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 400, 0, Columns.RESULT_CODE_OK, true), in map.put() argument
141 new Font(0, 0, 0, null, 400, 0, Columns.RESULT_CODE_FONT_NOT_FOUND, true), in map.put() argument
145 new Font(0, 0, 0, null, 400, 0, Columns.RESULT_CODE_FONT_UNAVAILABLE, true), in map.put() argument
149 new Font(0, 0, 0, null, 400, 0, Columns.RESULT_CODE_MALFORMED_QUERY, true), in map.put() argument
153 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 700, 0, Columns.RESULT_CODE_OK, in map.put() argument
159 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 700, 0, Columns.RESULT_CODE_OK, in map.put() argument
167 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 700, 0, -5, true), in map.put() argument
171 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 400, 0, in map.put() argument
208 try (InputStream is = mgr.open(path)) { in prepareFontFiles()
/aosp_15_r20/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/
H A DDownloadManagerTest.java139 try (InputStream is = mContext.getResources().openRawResource(chainResId)) { in bindTLSServer()
150 try (InputStream is = mContext.getResources().openRawResource(keyResId)) { in bindTLSServer()
175 context.init(kmf.getKeyManagers(), tmf.getTrustManagers(), null); in bindTLSServer() local
/aosp_15_r20/packages/modules/NetworkStack/src/com/android/networkstack/ipmemorystore/
DIpMemoryStoreDatabase.java323 final ByteArrayInputStream is = new ByteArrayInputStream(encoded); in decodeAddressList() local
447 null, // groupBy in getExpiry() argument
506 null, // columns, null means everything in retrieveNetworkAttributes() argument
533 null, // groupBy in retrieveBlob() argument
559 null, // selection in wipeDataUponNetworkReset() argument
572 null, // selection in wipeDataUponNetworkReset() argument
585 null, // selection in wipeDataUponNetworkReset() argument
689 null, // columns, null means everything in findClosestAttributes() argument
815 null, // selection in dropNumberOfRecords() argument
856 null, // selection in getTotalRecordNumber() argument
[all …]
/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/om/
H A DOverlayManagerSettingsTests.java299 ByteArrayInputStream is = new ByteArrayInputStream(xml.getBytes("utf-8")); in testRestoreEmpty() local
322 ByteArrayInputStream is = new ByteArrayInputStream(xml.getBytes("utf-8")); in testRestoreSingleUserSingleOverlay() local
344 ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray()); in testPersistAndRestore() local
388 mSettings.init(oi.getOverlayIdentifier(), oi.userId, oi.targetPackageName, null, in insertSetting() local
/aosp_15_r20/cts/tests/tests/content/src/android/content/cts/
H A DContentProviderTest.java415 /* projection = */ null, in getAudioContentDisplayName() argument
553 try (InputStream is = new FileInputStream( in writeDataToPipe()
/aosp_15_r20/frameworks/base/core/tests/coretests/src/android/provider/
H A DMockFontProvider.java162 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 700, 0, Columns.RESULT_CODE_OK), in map.put() argument
166 new Font(id++, NO_FILE_ID, 0, null, 700, 0, Columns.RESULT_CODE_OK), in map.put() argument
195 try (InputStream is = mgr.open("fonts/" + file)) { in prepareFontFiles()
/aosp_15_r20/external/robolectric/utils/src/main/java/org/robolectric/util/
H A DUtil.java22 assert version != null; in getJavaVersion() local
54 public static byte[] readBytes(InputStream is) throws IOException { in readBytes()
/aosp_15_r20/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
H A DZFile.java546 assert entry != null; in entries() local
608 assert directory != null; in readData() local
689 assert eocdEntry != null; in readData() local
1036 assert storedEntry != null; in update() local
1126 assert entryStore != null; in update() local
1207 assert storedEntry != null; in packIfNecessary() local
1350 InputStream is = rawContents.openStream(); in writeEntry() local
1474 assert directory != null; in computeEocd() local
1873 assert replaceStore != null; in addToEntries() local
1987 assert currentStore != null; in mergeFrom() local
[all …]

12345678910>>...17