/** * Installs secondary dexes if possible. * * <p>Isolated processes (e.g. renderer processes) can't load secondary dex files on K and below, * so we don't even try in that case. * * @param context The application context. */ @VisibleForTesting public static void install(Context context) { try { // TODO(jbudorick): Back out this version check once support for K & below works. // http://crbug.com/512357 if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP && processIsIsolated()) { Log.i(TAG, "Skipping multidex installation: inside isolated process."); } else { MultiDex.install(context); Log.i(TAG, "Completed multidex installation."); } } catch (NoSuchMethodException e) { Log.wtf(TAG, "Failed multidex installation", e); } catch (IllegalAccessException e) { Log.wtf(TAG, "Failed multidex installation", e); } catch (InvocationTargetException e) { Log.wtf(TAG, "Failed multidex installation", e); } }
@Override public void bookmarkModelChanged() { if (mEnhancedBookmarksModel.doesBookmarkExist(mBookmarkId)) { updateViewContent(); } else { Log.wtf( TAG, "The bookmark was deleted somehow during bookmarkModelChange!", new Exception(TAG)); finish(); } }
static { IntentFilter filter = new IntentFilter(); filter.addAction(TestStatusReporter.ACTION_HEARTBEAT); filter.addAction(TestStatusReporter.ACTION_TEST_FAILED); filter.addAction(TestStatusReporter.ACTION_TEST_PASSED); filter.addAction(TestStatusReporter.ACTION_TEST_STARTED); filter.addAction(TestStatusReporter.ACTION_TEST_RUN_STARTED); filter.addAction(TestStatusReporter.ACTION_TEST_RUN_FINISHED); filter.addAction(TestStatusReporter.ACTION_UNCAUGHT_EXCEPTION); try { filter.addDataType(TestStatusReporter.DATA_TYPE_HEARTBEAT); filter.addDataType(TestStatusReporter.DATA_TYPE_RESULT); } catch (IntentFilter.MalformedMimeTypeException e) { Log.wtf(TAG, "Invalid MIME type", e); } INTENT_FILTER = filter; }