Home
last modified time | relevance | path

Searched refs:ContextUtils (Results 1 – 25 of 55) sorted by relevance

123

/external/libchrome/libchrome_tools/patch/
DContextUtils.patch1 …base/android/java/src/org/chromium/base/ContextUtils.java b/base/android/java/src/org/chromium/bas…
3 --- a/base/android/java/src/org/chromium/base/ContextUtils.java
4 +++ b/base/android/java/src/org/chromium/base/ContextUtils.java
5 @@ -100,9 +100,10 @@ public class ContextUtils {
/external/opencensus-java/api/src/test/java/io/opencensus/tags/unsafe/
DContextUtilsTest.java37 assertThat(ContextUtils.TAG_CONTEXT_KEY.toString()).isEqualTo("opencensus-tag-context-key"); in testContextKeyName()
42 TagContext tags = ContextUtils.TAG_CONTEXT_KEY.get(); in testGetCurrentTagContext_DefaultContext()
49 Context orig = Context.current().withValue(ContextUtils.TAG_CONTEXT_KEY, null).attach(); in testGetCurrentTagContext_ContextSetToNull()
51 TagContext tags = ContextUtils.TAG_CONTEXT_KEY.get(); in testGetCurrentTagContext_ContextSetToNull()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/
DCurrentSpanUtils.java21 import io.opencensus.trace.unsafe.ContextUtils;
37 return ContextUtils.CONTEXT_SPAN_KEY.get(); in getCurrentSpan()
93 origContext = Context.current().withValue(ContextUtils.CONTEXT_SPAN_KEY, span).attach(); in ScopeInSpan()
120 Context.current().withValue(ContextUtils.CONTEXT_SPAN_KEY, span).attach(); in run()
154 Context.current().withValue(ContextUtils.CONTEXT_SPAN_KEY, span).attach(); in call()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/tags/
DCurrentTagContextUtils.java22 import io.opencensus.tags.unsafe.ContextUtils;
37 return ContextUtils.TAG_CONTEXT_KEY.get(); in getCurrentTagContext()
63 orig = Context.current().withValue(ContextUtils.TAG_CONTEXT_KEY, tags).attach(); in WithTagContext()
/external/libchrome/base/android/java/src/org/chromium/base/library_loader/
DLibraryLoader.java24 import org.chromium.base.ContextUtils;
204 loadAlreadyLocked(ContextUtils.getApplicationContext()); in ensureInitialized()
216 preloadNowOverrideApplicationContext(ContextUtils.getApplicationContext()); in preloadNow()
258 loadNowOverrideApplicationContext(ContextUtils.getApplicationContext()); in loadNow()
271 if (mLoaded && appContext != ContextUtils.getApplicationContext()) { in loadNowOverrideApplicationContext()
301 ContextUtils.getAppSharedPreferences() in setDontPrefetchLibrariesOnNextRuns()
315 return ContextUtils.getAppSharedPreferences().getBoolean( in isNotPrefetchingLibraries()
761 if (!ContextUtils.isIsolatedProcess()) { in makeLibraryDirAndSetPermission()
762 File cacheDir = ContextCompat.getCodeCacheDir(ContextUtils.getApplicationContext()); in makeLibraryDirAndSetPermission()
775 ContextCompat.getCodeCacheDir(ContextUtils.getApplicationContext()), LIBRARY_DIR); in getLibraryDir()
/external/webrtc/examples/unityplugin/java/src/org/webrtc/
DUnityUtility.java26 return Camera2Enumerator.isSupported(ContextUtils.getApplicationContext()); in useCamera2()
48 createCameraCapturer(new Camera2Enumerator(ContextUtils.getApplicationContext())); in LinkCamera()
52 capturer.initialize(surfaceTextureHelper, ContextUtils.getApplicationContext(), in LinkCamera()
/external/libchrome/base/android/java/src/org/chromium/base/multidex/
DChromiumMultiDexInstaller.java13 import org.chromium.base.ContextUtils;
63 if (ContextUtils.isIsolatedProcess()) { in shouldInstallMultiDex()
66 String currentProcessName = ContextUtils.getProcessName(); in shouldInstallMultiDex()
/external/opencensus-java/api/src/main/java/io/opencensus/trace/unsafe/
DContextUtils.java34 public final class ContextUtils { class
36 private ContextUtils() {} in ContextUtils() method in ContextUtils
/external/webrtc/rtc_base/java/src/org/webrtc/
DContextUtils.java19 public class ContextUtils { class
33 ContextUtils.applicationContext = applicationContext; in initialize()
/external/webrtc/test/android/org/webrtc/native_test/
DRTCNativeUnitTest.java15 import org.webrtc.ContextUtils;
24 ContextUtils.initialize(activity.getApplicationContext()); in preCreate()
/external/libchrome/base/android/java/src/org/chromium/base/
DBuildInfo.java58 String hostPackageName = ContextUtils.getApplicationContext().getPackageName(); in getAll()
90 Context appContext = ContextUtils.getApplicationContext(); in BuildInfo()
138 currentResourcesVersion = ContextUtils.getApplicationContext().getString( in BuildInfo()
189 return ContextUtils.getApplicationContext().getApplicationInfo().targetSdkVersion >= 28; in targetsAtLeastP()
DPathUtils.java113 Context appContext = ContextUtils.getApplicationContext(); in setPrivateDataDirectorySuffixInternal()
148 assert ContextUtils.getApplicationContext() != null; in setPrivateDataDirectorySuffix()
224 files = ContextUtils.getApplicationContext().getExternalFilesDirs( in getAllPrivateDownloadsDirectories()
246 ApplicationInfo ai = ContextUtils.getApplicationContext().getApplicationInfo(); in getNativeLibraryDirectory()
DContentUriUtils.java114 ContentResolver resolver = ContextUtils.getApplicationContext().getContentResolver(); in getMimeType()
130 ContentResolver resolver = ContextUtils.getApplicationContext().getContentResolver(); in getAssetFileDescriptor()
220 if (!DocumentsContract.isDocumentUri(ContextUtils.getApplicationContext(), uri)) { in isVirtualDocument()
223 ContentResolver contentResolver = ContextUtils.getApplicationContext().getContentResolver(); in isVirtualDocument()
DSysUtils.java131 (ActivityManager) ContextUtils.getApplicationContext().getSystemService( in isCurrentlyLowMemory()
178 Context appContext = ContextUtils.getApplicationContext(); in detectLowEndDevice()
181 isLowRam = ((ActivityManager) ContextUtils.getApplicationContext().getSystemService( in detectLowEndDevice()
/external/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/
DWebRtcAudioManager.java23 import org.webrtc.ContextUtils;
176 (AudioManager) ContextUtils.getApplicationContext().getSystemService(Context.AUDIO_SERVICE); in WebRtcAudioManager()
243 return ContextUtils.getApplicationContext().getPackageManager().hasSystemFeature( in hasEarpiece()
249 return ContextUtils.getApplicationContext().getPackageManager().hasSystemFeature( in isLowLatencyOutputSupported()
268 && ContextUtils.getApplicationContext().getPackageManager().hasSystemFeature( in isProAudioSupported()
DWebRtcAudioUtils.java26 import org.webrtc.ContextUtils;
198 final Context context = ContextUtils.getApplicationContext(); in logAudioState()
381 return ContextUtils.getApplicationContext().getPackageManager().hasSystemFeature( in hasMicrophone()
/external/opencensus-java/api/src/main/java/io/opencensus/tags/unsafe/
DContextUtils.java34 public final class ContextUtils { class
37 private ContextUtils() {} in ContextUtils() method in ContextUtils
/external/libchrome/base/test/android/junit/src/org/chromium/base/test/
DBaseRobolectricTestRunner.java14 import org.chromium.base.ContextUtils;
29 ContextUtils.initApplicationContextForTests(RuntimeEnvironment.application); in beforeTest()
/external/libchrome/base/test/android/java/src/org/chromium/base/
DContentUriTestUtils.java28 Cursor c = ContextUtils.getApplicationContext().getContentResolver().query( in insertImageIntoMediaStore()
42 Uri uri = ContextUtils.getApplicationContext().getContentResolver().insert( in insertImageIntoMediaStore()
/external/opencensus-java/impl_core/src/main/java/io/opencensus/implcore/stats/
DMeasureMapImpl.java23 import io.opencensus.tags.unsafe.ContextUtils;
59 record(ContextUtils.TAG_CONTEXT_KEY.get()); in record()
/external/libchrome/base/android/java/src/org/chromium/base/memory/
DMemoryPressureUma.java11 import org.chromium.base.ContextUtils;
64 ContextUtils.getApplicationContext().registerComponentCallbacks(sInstance); in initializeInstance()
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/tags/
DCurrentTagContextUtilsTest.java29 import io.opencensus.tags.unsafe.ContextUtils;
58 Context orig = Context.current().withValue(ContextUtils.TAG_CONTEXT_KEY, null).attach(); in testGetCurrentTagContext_ContextSetToNull()
/external/opencensus-java/contrib/spring_sleuth_v1x/src/main/java/io/opencensus/contrib/spring/sleuth/v1x/
DOpenCensusSleuthSpanContextHolder.java21 import io.opencensus.trace.unsafe.ContextUtils;
147 Context.current().withValue(ContextUtils.CONTEXT_SPAN_KEY, this.ocSpan); in SpanContext()
/external/opencensus-java/contrib/log_correlation/stackdriver/src/main/java/io/opencensus/contrib/logcorrelation/stackdriver/
DOpenCensusTraceLoggingEnhancer.java26 import io.opencensus.trace.unsafe.ContextUtils;
198 Span span = ContextUtils.CONTEXT_SPAN_KEY.get(); in getCurrentSpanContext()
/external/webrtc/examples/androidnativeapi/java/org/webrtc/examples/androidnativeapi/
DMainActivity.java21 import org.webrtc.ContextUtils;
38 ContextUtils.initialize(getApplicationContext()); in onCreate()

123