Home
last modified time | relevance | path

Searched refs:appContext (Results 1 – 18 of 18) sorted by relevance

/external/libchrome/base/android/java/src/org/chromium/base/
DContextUtils.java61 public static void initApplicationContext(Context appContext) { in initApplicationContext() argument
64 if (sApplicationContext != null && sApplicationContext != appContext) { in initApplicationContext()
67 initJavaSideApplicationContext(appContext); in initApplicationContext()
98 public static void initApplicationContextForTests(Context appContext) { in initApplicationContextForTests() argument
107 initJavaSideApplicationContext(appContext); in initApplicationContextForTests()
111 private static void initJavaSideApplicationContext(Context appContext) { in initJavaSideApplicationContext() argument
112 if (appContext == null) { in initJavaSideApplicationContext()
115 sApplicationContext = appContext; in initJavaSideApplicationContext()
DPathUtils.java113 Context appContext = ContextUtils.getApplicationContext(); in setPrivateDataDirectorySuffixInternal() local
114 paths[DATA_DIRECTORY] = appContext.getDir( in setPrivateDataDirectorySuffixInternal()
118 paths[THUMBNAIL_DIRECTORY] = appContext.getDir( in setPrivateDataDirectorySuffixInternal()
120 if (appContext.getCacheDir() != null) { in setPrivateDataDirectorySuffixInternal()
122 paths[CACHE_DIRECTORY] = appContext.getCacheDir().getPath(); in setPrivateDataDirectorySuffixInternal()
125 new File(appContext.getCacheDir(), sCacheSubDirectory).getPath(); in setPrivateDataDirectorySuffixInternal()
DBuildInfo.java90 Context appContext = ContextUtils.getApplicationContext(); in BuildInfo() local
91 String hostPackageName = appContext.getPackageName(); in BuildInfo()
92 PackageManager pm = appContext.getPackageManager(); in BuildInfo()
DSysUtils.java178 Context appContext = ContextUtils.getApplicationContext(); in detectLowEndDevice() local
180 if (appContext != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { in detectLowEndDevice()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/network/
DNetworkCache.java22 private final Context appContext; field in NetworkCache
25 NetworkCache(Context appContext, String url) { in NetworkCache() argument
26 this.appContext = appContext.getApplicationContext(); in NetworkCache()
75 File file = new File(appContext.getCacheDir(), fileName); in writeTempCacheFile()
103 File file = new File(appContext.getCacheDir(), fileName); in renameTempFile()
119 …File jsonFile = new File(appContext.getCacheDir(), filenameForUrl(url, FileExtension.JSON, false)); in getCachedFile()
123 … File zipFile = new File(appContext.getCacheDir(), filenameForUrl(url, FileExtension.ZIP, false)); in getCachedFile()
DNetworkFetcher.java25 private final Context appContext; field in NetworkFetcher
35 appContext = context.getApplicationContext(); in NetworkFetcher()
37 networkCache = new NetworkCache(appContext, url); in NetworkFetcher()
/external/libchrome/base/android/java/src/org/chromium/base/library_loader/
DLibraryLoader.java222 public void preloadNowOverrideApplicationContext(Context appContext) { in preloadNowOverrideApplicationContext() argument
225 preloadAlreadyLocked(appContext); in preloadNowOverrideApplicationContext()
230 private void preloadAlreadyLocked(Context appContext) { in preloadAlreadyLocked() argument
235 mLibraryPreloaderStatus = mLibraryPreloader.loadLibrary(appContext); in preloadAlreadyLocked()
269 public void loadNowOverrideApplicationContext(Context appContext) throws ProcessInitException { in loadNowOverrideApplicationContext() argument
271 if (mLoaded && appContext != ContextUtils.getApplicationContext()) { in loadNowOverrideApplicationContext()
274 loadAlreadyLocked(appContext); in loadNowOverrideApplicationContext()
415 static String getExtractedLibraryPath(Context appContext, String libName) {
420 return extractFileIfStale(appContext, libraryEntry, makeLibraryDirAndSetPermission());
427 private void loadAlreadyLocked(Context appContext) throws ProcessInitException {
[all …]
/external/libchrome/libchrome_tools/patch/
DContextUtils.patch9 - if (appContext instanceof Application) {
10 - ApplicationStatus.initialize((Application) appContext);
13 + // if (appContext instanceof Application) {
14 + // ApplicationStatus.initialize((Application) appContext);
16 initJavaSideApplicationContext(appContext);
/external/volley/src/main/java/com/android/volley/toolbox/
DVolley.java89 final Context appContext = context.getApplicationContext(); in newRequestQueue() local
99 cacheDir = new File(appContext.getCacheDir(), DEFAULT_CACHE_DIR); in newRequestQueue()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DHostActivity.java183 Context appContext = getApplicationContext(); in onStart() local
186 (WifiManager) appContext.getSystemService(Context.WIFI_SERVICE)); in onStart()
191 (PowerManager) appContext.getSystemService(Context.POWER_SERVICE)); in onStart()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowVisualVoicemailSmsTest.java25 private final Context appContext = ApplicationProvider.getApplicationContext(); field in ShadowVisualVoicemailSmsTest
27 new PhoneAccountHandle(new ComponentName(appContext, Object.class), "foo");
/external/libtextclassifier/jni/com/google/android/textclassifier/
DActionsSuggestionsModel.java105 Object appContext, in suggestActionsWithIntents() argument
113 appContext, in suggestActionsWithIntents()
381 Object appContext, in nativeSuggestActions() argument
DAnnotatorModel.java218 Object appContext, in classifyText() argument
221 annotatorPtr, context, selectionBegin, selectionEnd, options, appContext, resourcesLocale); in classifyText()
1235 Object appContext, in nativeClassifyText() argument
/external/libchrome/base/test/android/javatests/src/org/chromium/base/test/
DBaseChromiumRunnerCommon.java40 MultiDexContextWrapper(Context instrContext, Context appContext) { in MultiDexContextWrapper() argument
42 mAppContext = appContext; in MultiDexContextWrapper()
/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DLottieCompositionFactory.java124 final Context appContext = context.getApplicationContext();
128 return fromAssetSync(appContext, fileName, cacheKey);
195 final Context appContext = context.getApplicationContext();
200 Context context = originalContext != null ? originalContext : appContext;
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DPeerConnectionClient.java125 private final Context appContext; field in PeerConnectionClient
325 public PeerConnectionClient(Context appContext, EglBase eglBase, in PeerConnectionClient() argument
328 this.appContext = appContext; in PeerConnectionClient()
339 PeerConnectionFactory.InitializationOptions.builder(appContext) in PeerConnectionClient()
530 return JavaAudioDeviceModule.builder(appContext) in createJavaAudioDevice()
666 appContext.getDir(RTCEVENTLOG_OUTPUT_DIR_NAME, Context.MODE_PRIVATE), outputFileName); in createRtcEventLogOutputFile()
670 if (appContext == null || peerConnection == null) { in maybeCreateAndStartRtcEventLog()
943 capturer.initialize(surfaceTextureHelper, appContext, videoSource.getCapturerObserver()); in createVideoTrack()
DCpuMonitor.java84 private final Context appContext; field in CpuMonitor
172 appContext = context.getApplicationContext(); in CpuMonitor()
293 Intent intent = appContext.registerReceiver( in getBatteryLevel()
/external/webrtc/sdk/android/api/org/webrtc/
DNetworkMonitor.java167 private NetworkMonitorAutoDetect createAutoDetect(Context appContext) { in createAutoDetect() argument
185 }, appContext); in createAutoDetect()