Home
last modified time | relevance | path

Searched refs:applicationContext (Results 1 – 25 of 27) sorted by relevance

12

/external/webrtc/rtc_base/java/src/org/webrtc/
DContextUtils.java21 private static Context applicationContext; field in ContextUtils
28 public static void initialize(Context applicationContext) { in initialize() argument
29 if (applicationContext == null) { in initialize()
33 ContextUtils.applicationContext = applicationContext; in initialize()
43 return applicationContext; in getApplicationContext()
/external/dagger2/java/dagger/hilt/android/internal/modules/
DApplicationContextModule.java31 private final Context applicationContext; field in ApplicationContextModule
33 public ApplicationContextModule(Context applicationContext) { in ApplicationContextModule() argument
34 this.applicationContext = applicationContext; in ApplicationContextModule()
40 return applicationContext; in provideContext()
45 return (Application) applicationContext.getApplicationContext(); in provideApplication()
/external/webrtc/examples/androidnativeapi/java/org/webrtc/examples/androidnativeapi/
DCallClient.java27 private final Context applicationContext; field in CallClient
35 public CallClient(Context applicationContext) { in CallClient() argument
36 this.applicationContext = applicationContext; in CallClient()
47 videoCapturer.initialize(videoCapturerSurfaceTextureHelper, applicationContext, in call()
/external/webrtc/sdk/android/api/org/webrtc/
DPeerConnectionFactory.java61 final Context applicationContext; field in PeerConnectionFactory.InitializationOptions
69 private InitializationOptions(Context applicationContext, String fieldTrials, in InitializationOptions() argument
73 this.applicationContext = applicationContext; in InitializationOptions()
82 public static Builder builder(Context applicationContext) { in builder() argument
83 return new Builder(applicationContext); in builder()
87 private final Context applicationContext; field in PeerConnectionFactory.InitializationOptions.Builder
95 Builder(Context applicationContext) { in Builder() argument
96 this.applicationContext = applicationContext; in Builder()
126 return new PeerConnectionFactory.InitializationOptions(applicationContext, fieldTrials, in createInitializationOptions()
293 ContextUtils.initialize(options.applicationContext); in initialize()
DNetworkMonitor.java87 public void startMonitoring(Context applicationContext) { in startMonitoring() argument
91 autoDetect = createAutoDetect(applicationContext); in startMonitoring()
110 private void startMonitoring(@Nullable Context applicationContext, long nativeObserver) { in startMonitoring() argument
114 applicationContext != null ? applicationContext : ContextUtils.getApplicationContext()); in startMonitoring()
DCamera1Capturer.java27 CameraSession.Events events, Context applicationContext, in createCameraSession() argument
30 Camera1Session.create(createSessionCallback, events, captureToTexture, applicationContext, in createCameraSession()
DCamera2Capturer.java32 CameraSession.Events events, Context applicationContext, in createCameraSession() argument
35 Camera2Session.create(createSessionCallback, events, applicationContext, cameraManager, in createCameraSession()
DScreenCapturerAndroid.java82 final Context applicationContext, final CapturerObserver capturerObserver) { in initialize() argument
95 mediaProjectionManager = (MediaProjectionManager) applicationContext.getSystemService( in initialize()
DVideoCapturer.java28 void initialize(SurfaceTextureHelper surfaceTextureHelper, Context applicationContext, in initialize() argument
DFileVideoCapturer.java172 public void initialize(SurfaceTextureHelper surfaceTextureHelper, Context applicationContext, in initialize() argument
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DDefaultMediaSourceFactoryTest.java196 Context applicationContext = ApplicationProvider.getApplicationContext(); in createMediaSource_withAdTagUri_callsAdsLoader() local
202 applicationContext, in createMediaSource_withAdTagUri_callsAdsLoader()
203 new DefaultDataSourceFactory(applicationContext, "userAgent"), in createMediaSource_withAdTagUri_callsAdsLoader()
213 Context applicationContext = ApplicationProvider.getApplicationContext(); in createMediaSource_withAdTagUriAdsLoaderNull_playsWithoutAdNoException() local
218 applicationContext, in createMediaSource_withAdTagUriAdsLoaderNull_playsWithoutAdNoException()
219 new DefaultDataSourceFactory(applicationContext, "userAgent"), in createMediaSource_withAdTagUriAdsLoaderNull_playsWithoutAdNoException()
229 Context applicationContext = ApplicationProvider.getApplicationContext(); in createMediaSource_withAdTagUriProvidersNull_playsWithoutAdNoException() local
234 DefaultMediaSourceFactory.newInstance(applicationContext).createMediaSource(mediaItem); in createMediaSource_withAdTagUriProvidersNull_playsWithoutAdNoException()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DStreamVolumeManager.java47 private final Context applicationContext; field in StreamVolumeManager
60 applicationContext = context.getApplicationContext(); in StreamVolumeManager()
65 (AudioManager) applicationContext.getSystemService(Context.AUDIO_SERVICE)); in StreamVolumeManager()
73 applicationContext.registerReceiver(receiver, filter); in StreamVolumeManager()
165 applicationContext.unregisterReceiver(receiver); in release()
/external/webrtc/sdk/android/src/java/org/webrtc/
DCamera1Session.java39 private final Context applicationContext; field in Camera1Session
54 final boolean captureToTexture, final Context applicationContext, in create() argument
109 callback.onDone(new Camera1Session(events, captureToTexture, applicationContext, in create()
157 private Camera1Session(Events events, boolean captureToTexture, Context applicationContext, in Camera1Session() argument
166 this.applicationContext = applicationContext; in Camera1Session()
316 int rotation = CameraSession.getDeviceOrientation(applicationContext); in getFrameOrientation()
DCameraCapturer.java182 private Context applicationContext; field in CameraCapturer
236 public void initialize(SurfaceTextureHelper surfaceTextureHelper, Context applicationContext, in initialize() argument
238 this.applicationContext = applicationContext; in initialize()
247 if (applicationContext == null) { in startCapture()
272 createCameraSession(createSessionCallback, cameraSessionEventsHandler, applicationContext, in createSessionInternal()
456 Context applicationContext, SurfaceTextureHelper surfaceTextureHelper, String cameraName, in createCameraSession() argument
DCamera2Session.java48 private final Context applicationContext; field in Camera2Session
271 Context applicationContext, CameraManager cameraManager, in create() argument
274 new Camera2Session(callback, events, applicationContext, cameraManager, surfaceTextureHelper, in create()
278 private Camera2Session(CreateSessionCallback callback, Events events, Context applicationContext, in Camera2Session() argument
288 this.applicationContext = applicationContext; in Camera2Session()
408 int rotation = CameraSession.getDeviceOrientation(applicationContext); in getFrameOrientation()
/external/connectedappssdk/testing/sdk/src/main/java/com/google/android/enterprise/connectedapps/testing/
DAbstractFakeProfileConnector.java44 private final Context applicationContext; field in AbstractFakeProfileConnector
59 this.applicationContext = context.getApplicationContext(); in AbstractFakeProfileConnector()
282 public Context applicationContext() { in applicationContext() method in AbstractFakeProfileConnector
283 return applicationContext; in applicationContext()
/external/dagger2/javatests/artifacts/hilt-android/simpleKotlin/app/src/sharedTest/java/dagger/hilt/android/simpleKotlin/
DTransitiveDependenciesTest.kt41 InstrumentationRegistry.getInstrumentation().targetContext.applicationContext in testEntryPointFromAndroidLib()
48 InstrumentationRegistry.getInstrumentation().targetContext.applicationContext in testEntryPointFromKotlinLib()
/external/webrtc/examples/androidvoip/java/org/webrtc/examples/androidvoip/
DVoipClient.java28 public VoipClient(Context applicationContext, OnVoipClientTaskCompleted listener) { in VoipClient() argument
35 nativeClient = nativeCreateClient(applicationContext); in VoipClient()
172 private static native long nativeCreateClient(Context applicationContext); in nativeCreateClient() argument
/external/connectedappssdk/sdk/src/main/java/com/google/android/enterprise/connectedapps/
DProfileConnector.java122 Context applicationContext(); in applicationContext() method
DUserConnector.java125 Context applicationContext(UserHandle userHandle); in applicationContext() method
DAbstractUserConnector.java89 public Context applicationContext(UserHandle userHandle) { in applicationContext() method in AbstractUserConnector
DAbstractProfileConnector.java203 public Context applicationContext() { in applicationContext() method in AbstractProfileConnector
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DShowcaseFragment.kt27 val service = (activity.applicationContext as LottieApplication).lottiefilesService in <lambda>()
DLottiefilesFragment.kt52 val service = (activity.applicationContext as LottieApplication).lottiefilesService in <lambda>()
/external/oboe/samples/drumthumper/src/main/java/com/plausibleaudio/drumthumper/
DDrumThumperActivity.kt74 Toast.makeText(applicationContext, "Added Device", Toast.LENGTH_LONG).show() in onAudioDevicesAdded()
82 Toast.makeText(applicationContext, "Removed Device", Toast.LENGTH_LONG).show() in onAudioDevicesRemoved()

12