/external/libmojo/base/android/java/src/org/chromium/base/ |
ContextUtils.java | 51 * @param appContext The application context. 53 public static void initApplicationContext(Context appContext) { 56 if (sApplicationContext != null && sApplicationContext != appContext) { 59 initJavaSideApplicationContext(appContext); 97 * @param appContext The new application context. 100 public static void initApplicationContextForTests(Context appContext) { 101 initJavaSideApplicationContext(appContext); 105 private static void initJavaSideApplicationContext(Context appContext) { 106 if (appContext == null) { 109 sApplicationContext = appContext; [all...] |
PathUtils.java | 154 public static String getDataDirectory(Context appContext) { 163 public static String getDatabaseDirectory(Context appContext) { 173 public static String getCacheDirectory(Context appContext) { 179 public static String getThumbnailCacheDirectory(Context appContext) { 189 private static String getDownloadsDirectory(Context appContext) { 210 private static String getNativeLibraryDirectory(Context appContext) { 211 ApplicationInfo ai = appContext.getApplicationInfo();
|
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/systemcalllog/ |
SystemCallLogDataSource.java | 47 Context appContext, ContentObserverCallbacks contentObserverCallbacks) { 50 if (!PermissionsUtil.hasCallLogReadPermissions(appContext)) { 55 appContext 61 ThreadUtil.getUiThreadHandler(), appContext, contentObserverCallbacks)); 66 public boolean isDirty(Context appContext) { 81 Context appContext, 94 private final Context appContext; 98 Handler handler, Context appContext, ContentObserverCallbacks contentObserverCallbacks) { 100 this.appContext = appContext; [all...] |
/packages/apps/Dialer/java/com/android/dialer/calllog/ |
RefreshAnnotatedCallLogWorker.java | 42 private final Context appContext; 46 public RefreshAnnotatedCallLogWorker(Context appContext, DataSources dataSources) { 47 this.appContext = appContext; 56 boolean annotatedCallLogUpdated = checkDirtyAndRebuildIfNecessary(appContext, skipDirtyCheck); 66 private boolean checkDirtyAndRebuildIfNecessary(Context appContext, boolean skipDirtyCheck) { 71 SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext); 91 || isDirty(appContext); 98 rebuild(appContext, lastRebuildTimeMillis); 109 private boolean isDirty(Context appContext) { [all...] |
CallLogFramework.java | 57 public void registerContentObservers(Context appContext) { 60 if (!isNewCallLogEnabled(appContext)) { 65 dataSource.registerContentObservers(appContext, this); 98 public void markDirtyAndNotify(Context appContext) { 102 SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(appContext);
|
/packages/apps/Dialer/java/com/android/dialer/calllog/database/ |
AnnotatedCallLog.java | 41 public static SQLiteDatabase getWritableDatabase(Context appContext) { 44 return new AnnotatedCallLogDatabaseHelper(appContext, DATABASE_NAME).getWritableDatabase(); 48 public static SQLiteDatabase getReadableDatabase(Context appContext) { 51 return new AnnotatedCallLogDatabaseHelper(appContext, DATABASE_NAME).getReadableDatabase();
|
AnnotatedCallLogDatabaseHelper.java | 31 AnnotatedCallLogDatabaseHelper(Context appContext, String databaseName) { 32 super(appContext, databaseName, null, 1);
|
/packages/apps/Dialer/java/com/android/dialer/blocking/ |
BlockedNumbersAutoMigrator.java | 40 @NonNull private final Context appContext; 53 @NonNull Context appContext, 56 this.appContext = Assert.isNotNull(appContext); 63 .createNonUiTaskBuilder(new ShouldAttemptAutoMigrate(appContext)) 89 FilteredNumberCompat.setHasMigratedToNewBlocking(appContext, true); 95 private final Context appContext; 97 ShouldAttemptAutoMigrate(Context appContext) { 98 this.appContext = appContext; [all...] |
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/ |
MojoTestCase.java | 29 Context appContext = getInstrumentation().getTargetContext().getApplicationContext(); 30 ContextUtils.initApplicationContext(appContext); 31 LibraryLoader.get(LibraryProcessType.PROCESS_BROWSER).ensureInitialized(appContext);
|
/packages/apps/Camera2/src/com/android/camera/burst/ |
BurstFacadeFactory.java | 71 * @param appContext the Android application context which is passes through 77 public static BurstFacade create(Context appContext, 80 if (BurstControllerImpl.isBurstModeSupported(appContext.getContentResolver())) { 81 BurstFacade burstController = new BurstFacadeImpl(appContext, orientationController, 84 new ToastingBurstFacadeDecorator.BurstToaster(appContext);
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
CountryDetector.java | 80 private final Context appContext; 84 Context appContext, 91 this.appContext = appContext; 97 registerForLocationUpdates(appContext, locationManager); 125 Context appContext = context.getApplicationContext(); 128 appContext, 132 new Geocoder(appContext)); 166 || !PermissionsUtil.hasLocationPermissions(appContext) 167 || !UserManagerCompat.isUserUnlocked(appContext)) { [all...] |
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/contacts/ |
ContactsDataSource.java | 36 public boolean isDirty(Context appContext) { 46 Context appContext, 57 Context appContext, ContentObserverCallbacks contentObserverCallbacks) {
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
AnimationLoading.java | 88 Context appContext = AnimationLoading.this; 92 loadAnimator(appContext, R.anim.object_animator); 97 loadAnimator(appContext, R.anim.animator); 105 (AnimatorSet) AnimatorInflater.loadAnimator(appContext, 110 loadAnimator(appContext, R.anim.color_animator); 114 loadAnimator(appContext, R.anim.object_animator_pvh); 119 loadAnimator(appContext, R.anim.object_animator_pvh_kf); 123 loadAnimator(appContext, R.anim.value_animator_pvh_kf); 137 loadAnimator(appContext, R.anim.object_animator_pvh_kf_interpolated);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
LocalBluetoothManager.java | 57 Context appContext = context.getApplicationContext(); 58 sInstance = new LocalBluetoothManager(adapter, appContext); 60 onInitCallback.onBluetoothManagerInitialized(appContext, sInstance); 119 void onBluetoothManagerInitialized(Context appContext,
|
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/ |
CallLogDataSource.java | 40 boolean isDirty(Context appContext); 52 Context appContext, 59 Context appContext, ContentObserverCallbacks contentObserverCallbacks); 66 void markDirtyAndNotify(Context appContext);
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupTypeFragment.java | 53 final Context appContext = inflater.getContext().getApplicationContext(); 59 : EmailServiceUtils.getServiceInfoList(appContext)) { 60 if (EmailServiceUtils.isServiceAvailable(appContext, info.protocol)) {
|
/packages/apps/Settings/src/com/android/settings/dashboard/suggestions/ |
SuggestionFeatureProviderImpl.java | 52 final Context appContext = context.getApplicationContext(); 54 new SuggestionFeaturizer(new EventStore(appContext))); 55 mMetricsFeatureProvider = FeatureFactory.getFactory(appContext)
|
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/ |
VideoCapturerAndroidTestFixtures.java | 303 Context appContext) throws InterruptedException { 309 appContext, observer); 325 VideoCapturerAndroid capturer, Context appContext) throws InterruptedException { 331 appContext, observer); 372 Context appContext) throws InterruptedException { 379 appContext, observer); 419 VideoCapturerAndroid capturer, Context appContext) throws InterruptedException { 427 appContext, observer); 442 VideoCapturerAndroid capturer, Context appContext) throws InterruptedException { 450 appContext, observer) [all...] |
/packages/apps/Camera2/src/com/android/camera/device/ |
PortabilityCameraActionProvider.java | 41 Context appContext, 46 mAppContext = appContext;
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
EmergencyTonePreferenceControllerTest.java | 65 final Context appContext = ShadowApplication.getInstance().getApplicationContext(); 71 when(mActivity.getResources()).thenReturn(appContext.getResources()); 72 mPreference = new DropDownPreference(appContext);
|
/packages/apps/Camera2/src/com/android/camera/ |
SoundPlayer.java | 40 public SoundPlayer(Context appContext) { 41 mAppContext = appContext;
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
CopyJob.java | 210 .setContentIntent(PendingIntent.getActivity(appContext, 0, navigateIntent, 293 ProvidersCache cache = DocumentsApplication.getProvidersCache(appContext); 352 appContext, operationType, Metrics.OPMODE_PROVIDER); 359 appContext, Metrics.SUBFILEOP_QUICK_COPY, src.derivedUri); 384 appContext, Metrics.SUBFILEOP_OBTAIN_STREAM_TYPE, src.derivedUri); 397 appContext, Metrics.SUBFILEOP_OBTAIN_STREAM_TYPE, src.derivedUri); 414 appContext, Metrics.SUBFILEOP_CREATE_DOCUMENT, dest.derivedUri); 422 appContext, Metrics.SUBFILEOP_CREATE_DOCUMENT, dest.derivedUri); 433 appContext, Metrics.SUBFILEOP_QUERY_DOCUMENT, dstUri); 472 appContext, Metrics.SUBFILEOP_QUERY_CHILDREN, srcDir.derivedUri) [all...] |
DeleteJob.java | 99 ContentResolver resolver = appContext.getContentResolver(); 118 appContext, Metrics.SUBFILEOP_DELETE_DOCUMENT, doc.derivedUri);
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
Typefaces.java | 23 * Note: Considered making this a singleton provided by factory/appcontext, but seemed too simple,
|
/frameworks/base/core/java/android/security/ |
NetworkSecurityPolicy.java | 114 Context appContext = context.createPackageContext(packageName, 0); 115 ManifestConfigSource source = new ManifestConfigSource(appContext);
|