/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/ |
BinaryDictOffdeviceUtilsTests.java | 101 try (final OutputStream out = Compress.getCompressedStream( method 130 try (final OutputStream out = new BufferedOutputStream(new FileOutputStream(dst))) { method 142 try (final OutputStream gzOut = Compress.getCompressedStream( method
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
ContactsDatabaseHelperUpgradeTest.java | 164 try (Cursor c = mDb.rawQuery("select * from contacts order by _id", null)) { method 180 try (Cursor c = mDb.rawQuery("select * from raw_contacts order by _id", null)) { method 196 try (Cursor c = mDb.rawQuery("select * from data_usage_stat", null)) { method [all...] |
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/ |
ManualDiscovery.java | 136 try (JsonWriter writer = new JsonWriter(new BufferedWriter( method 159 try (JsonReader reader = new JsonReader(new BufferedReader( method
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
CodeCoverageTestBase.java | 133 try { 161 try (CoverageCollectingListener coverageListener = method 200 try { 475 try {
|
/bionic/libc/dns/resolv/ |
res_send.c | 194 /* first try to bind to a random source port a few times */ 363 int gotsomewhere, terrno, try, v_circuit, resplen, ns, n; local 489 for (try = 0; try < statp->retry; try++) { 528 /* give the hook another try */ 549 try = statp->retry; 555 * Only record stats the first time we try a query. This ensures that 559 if (try == 0) { 585 /* Only record stats the first time we try a query. See above. * [all...] |
/cts/hostsidetests/compilation/src/android/cts/compilation/ |
AdbRootDependentCompilationTest.java | 93 try (OutputStream outputStream = new FileOutputStream(apkFile)) { method 182 try { 416 try {
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
PhoneAccountTest.java | 104 try { 156 try { 184 try { 210 try { 276 try (InputStream in = new FileInputStream(pfd.getFileDescriptor())) { method
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
BatteryStatsDumpsysTest.java | 48 try (BufferedReader reader = new BufferedReader( method 667 try { 700 try (BufferedReader reader = new BufferedReader( method
|
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/ |
MediaBitstreamsTest.java | 108 try (InputStream is = MediaBitstreamsTest.class.getResourceAsStream(dynConfXml)) { method 221 try { 234 try { 329 try {
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
ThemeHostTest.java | 141 try (ZipInputStream in = new ZipInputStream(zipStream)) { method 148 try (FileOutputStream out = new FileOutputStream(tmp)) { method 209 try (InputStream inputStream = new FileInputStream(comparison.second)) { method 225 try (ZipInputStream zipInput = new ZipInputStream(new FileInputStream(localZip))) { method 233 try (FileOutputStream pngOutput = new FileOutputStream(actual)) { method 272 try {
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
UsageStatsTest.java | 106 try (FileInputStream fis = new FileInputStream(pfd.getFileDescriptor())){ method 110 try { 215 try {
|
/cts/tests/tests/content/src/android/content/res/cts/ |
TypedArrayTest.java | 253 try (final XmlResourceParser parser = resources.getXml(R.xml.empty)) { method 261 try {
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BitmapColorSpaceTest.java | 169 try (InputStream in = mResources.getAssets().open("green-p3.png")) { method 191 try (InputStream in = mResources.getAssets().open("prophoto-rgba16f.png")) { method 213 try (InputStream in = mResources.getAssets().open("green-p3.png")) { method 242 try (InputStream in = mResources.getAssets().open("green-srgb.png")) { method 251 try (InputStream in = mResources.getAssets().open("green-p3.png")) { method 272 try (InputStream in = mResources.getAssets().open(fileName)) { method 310 try (InputStream in = mResources.getAssets().open(fileName)) { method 346 try (InputStream in = mResources.getAssets().open(fileName)) { method 386 try (InputStream in = mResources.getAssets().open(fileName)) { method 439 try (InputStream in = mResources.getAssets().open(fileName)) method 469 try (InputStream in = mResources.getAssets().open("green-p3.png")) { method 484 try (InputStream in = mResources.getAssets().open("green-p3.png")) { method 499 try (InputStream in = mResources.getAssets().open("green-srgb.png")) { method 515 try (InputStream in = mResources.getAssets().open("prophoto-rgba16f.png")) { method 531 try (InputStream in = mResources.getAssets().open("green-p3.png")) { method 547 try (InputStream in = mResources.getAssets().open("red-adobergb.png")) { method 563 try (InputStream in = mResources.getAssets().open("purple-displayprofile.png")) { method 579 try (InputStream in = mResources.getAssets().open("purple-cmyk.png")) { method 595 try (InputStream in = mResources.getAssets().open("green-p3.png")) { method 613 try (InputStream in = mResources.getAssets().open("green-srgb.png")) { method 631 try (InputStream in = mResources.getAssets().open("prophoto-rgba16f.png")) { method 648 try (InputStream in = mResources.getAssets().open("green-p3.png")) { method 664 try (InputStream in = mResources.getAssets().open("green-p3.png")) { method 676 try (InputStream in = mResources.getAssets().open("green-p3.png")) { method 696 try (InputStream in = mResources.getAssets().open("green-p3.png")) { method 711 try (InputStream in = mResources.getAssets().open("prophoto-rgba16f.png")) { method [all...] |
TypefaceTest.java | 55 // list of family names to try when attempting to find a typeface with a given style 322 try { 427 try (FileInputStream fis = new FileInputStream(obtainPath())) { method
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
KeyFactoryTest.java | 99 try { 157 try { 163 try { 176 try { 192 try { 197 try { 210 try { 230 try { 262 try { 264 try { 346 try (InputStream in = getContext().getResources().openRawResource(resId)) { method 374 try (InputStream in = getContext().getResources().openRawResource(resId)) { method [all...] |
/cts/tests/tests/os/src/android/os/cts/ |
ParcelFileDescriptorTest.java | 54 try { 85 try { 137 try { 156 try { 182 try { 196 try { 205 try { 278 try { 294 try (AutoCloseInputStream is = new AutoCloseInputStream(red)) { method 355 try { [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStoreUiTest.java | 107 try (ParcelFileDescriptor fd = resolver.openFileDescriptor(docUri, "rw")) { method 109 try (final BufferedReader reader = method 115 try (final OutputStream out = new FileOutputStream(fd.getFileDescriptor())) { method 126 try { 135 try { mDevice.findObject(sel).click(); } catch (Throwable ignored) { } 139 try { mDevice.findObject(sel).click(); } catch (Throwable ignored) { } 186 // Try a couple different strategies for taking a photo: first take a 198 // Hrm, that didn't work; let's try an alternative approach of digging 213 // Grr, let's try hunting around even more 261 try (OutputStream os = new FileOutputStream(mFile)) method [all...] |
SmsBackupRestoreTest.java | 112 try (Cursor mmsCursor = method 166 try (Cursor mmsCursor = mContentResolver.query(Telephony.Mms.CONTENT_URI, ID_PROJECTION, method 175 try (Cursor partCursor = mContentResolver.query(partUri, MMS_PART_TEXT_PROJECTION, method 189 try (Cursor addrCursor = mContentResolver.query(addrUri, MMS_ADDR_PROJECTION, method
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
TestUtils.java | 183 try (InputStream in = new FileInputStream(pfd.getFileDescriptor())) { method 201 try { 212 try { 247 try { 271 try { 344 try { 356 try { 390 try {
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
VisualVoicemailServiceTest.java | 146 try { 162 try { 498 try (SentSmsObserver observer = new SentSmsObserver(mContext, text)) { method 504 try { 514 try { 541 try { 550 try { 589 try { 603 try { 611 try { 650 try (Cursor cursor = mContext.getContentResolver() method 703 try (InputStream in = new FileInputStream(parcelFileDescriptor.getFileDescriptor())) { method [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
SimpleCursorAdapterTest.java | 154 // the binder try to bind but fail 166 try { 230 try { 241 try { 301 try { 328 try { 442 try (InputStream source = context.getResources().openRawResource(resId); method
|
/developers/build/prebuilts/gradle/PictureInPicture/app/src/main/java/com/example/android/pictureinpicture/widget/ |
MovieView.java | 372 try (AssetFileDescriptor fd = getResources().openRawResourceFd(mVideoResourceId)) { method
|
/developers/samples/android/media/PictureInPicture/app/src/main/java/com/example/android/pictureinpicture/widget/ |
MovieView.java | 373 try (AssetFileDescriptor fd = getResources().openRawResourceFd(mVideoResourceId)) { method
|
/external/clang/test/Preprocessor/ |
cxx_oper_keyword_ms_compat.cpp | 91 #define try macro 176 try
|
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/ |
ComponentProcessorTest.java | 2175 try (Writer writer = method [all...] |