Home
last modified time | relevance | path

Searched refs:mInjector (Results 1 – 25 of 78) sorted by relevance

1234

/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DFilesActivity.java76 private Injector<ActionHandler<FilesActivity>> mInjector; field in FilesActivity
103 mInjector = new Injector<>( in onCreate()
114 mInjector.selectionMgr = DocsSelectionHelper.create(); in onCreate()
116 mInjector.focusManager = new FocusManager( in onCreate()
117 mInjector.features, in onCreate()
118 mInjector.selectionMgr, in onCreate()
123 mInjector.menuManager = new MenuManager( in onCreate()
124 mInjector.features, in onCreate()
134 mInjector.selectionMgr, in onCreate()
136 mInjector.getModel()::getItemUri, in onCreate()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DPickActivity.java81 private Injector<ActionHandler<PickActivity>> mInjector; field in PickActivity
104 mInjector = new Injector<>( in onCreate()
115 mInjector.selectionMgr = DocsSelectionHelper.create(); in onCreate()
117 mInjector.focusManager = new FocusManager( in onCreate()
118 mInjector.features, in onCreate()
119 mInjector.selectionMgr, in onCreate()
124 mInjector.menuManager = new MenuManager( in onCreate()
128 mInjector.getModel()::getItemCount); in onCreate()
130 mInjector.actionModeController = new ActionModeController( in onCreate()
132 mInjector.selectionMgr, in onCreate()
[all …]
DActionHandler.java118 activity.getApplicationContext(), mInjector.pickResult); in ActionHandler()
303 mInjector.pickResult.setFileCount(fileCount); in updatePickResult()
304 mInjector.pickResult.setIsSearching(isSearching); in updatePickResult()
305 mInjector.pickResult.setRoot(root); in updatePickResult()
306 mInjector.pickResult.setFileUri(uri); in updatePickResult()
329 mInjector.pickResult.increaseActionCount(); in showAppDetails()
347 mInjector.pickResult.increaseActionCount(); in openRoot()
354 mInjector.pickResult.increaseActionCount(); in openRoot()
360 mInjector.dialogs.showActionNotAllowed(); in openRoot()
385 mInjector.dialogs.showNoApplicationFound(); in openRoot()
[all …]
/packages/modules/ConfigInfrastructure/service/java/com/android/server/deviceconfig/
DUnattendedRebootManager.java78 private final UnattendedRebootManagerInjector mInjector; field in UnattendedRebootManager
222 mInjector = injector; in UnattendedRebootManager()
276 mInjector.setPrepareForUnattendedRebootFallbackAlarm( in maybePrepareUnattendedReboot()
298 mInjector.prepareForUnattendedUpdate( in prepareUnattendedReboot()
303 mInjector.cancelPrepareForUnattendedRebootFallbackAlarm(mContext); in prepareUnattendedReboot()
314 rebootHour = mInjector.getRebootStartTime(); in scheduleReboot()
317 Instant.ofEpochMilli(mInjector.now()) in scheduleReboot()
318 .atZone(mInjector.zoneId()) in scheduleReboot()
322 long rebootTimeMillis = timeToReboot.atZone(mInjector.zoneId()).toInstant().toEpochMilli(); in scheduleReboot()
326 LocalDateTime.ofInstant(Instant.ofEpochMilli(mInjector.now()), mInjector.zoneId()))) { in scheduleReboot()
[all …]
/packages/modules/AdServices/sdksandbox/SdkSandbox/src/com/android/sdksandbox/
DSandboxedSdkHolder.java63 private SdkSandboxServiceImpl.Injector mInjector; field in SandboxedSdkHolder
82 mInjector = injector; in init()
121 sandboxLatencyInfo.setTimeSandboxCalledSdk(mInjector.elapsedRealtime()); in init()
123 sandboxLatencyInfo.setTimeSdkCallCompleted(mInjector.elapsedRealtime()); in init()
126 sandboxLatencyInfo.setTimeSdkCallCompleted(mInjector.elapsedRealtime()); in init()
131 sandboxLatencyInfo.setTimeSdkCallCompleted(mInjector.elapsedRealtime()); in init()
152 sandboxLatencyInfo.setTimeSandboxCalledSystemServer(mInjector.elapsedRealtime()); in sendLoadSdkSuccess()
166 sandboxLatencyInfo.setTimeSandboxCalledSystemServer(mInjector.elapsedRealtime()); in sendSurfacePackageError()
179 sandboxLatencyInfo.setTimeSandboxCalledSystemServer(mInjector.elapsedRealtime()); in sendLoadSdkError()
213 mInjector.elapsedRealtime()); in onSurfacePackageRequested()
[all …]
DSdkSandboxServiceImpl.java74 private Injector mInjector; field in SdkSandboxServiceImpl
108 mInjector = injector; in SdkSandboxServiceImpl()
126 mInjector = new Injector(getApplicationContext()); in onCreate()
203 sandboxLatencyInfo.setTimeSandboxCalledSdk(mInjector.elapsedRealtime()); in unloadSdk()
205 sandboxLatencyInfo.setTimeSdkCallCompleted(mInjector.elapsedRealtime()); in unloadSdk()
207 sandboxLatencyInfo.setTimeSandboxCalledSystemServer(mInjector.elapsedRealtime()); in unloadSdk()
247 return mInjector in getClientSharedPreferences()
330 if (mInjector.getCallingUid() != Process.SYSTEM_UID) { in enforceCallerIsSystemServer()
333 + mInjector.getCallingUid()); in enforceCallerIsSystemServer()
395 mInjector, in loadSdkInternal()
[all …]
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/
DNearbyService.java66 private Injector mInjector; field in NearbyService
75 if (mInjector != null && mInjector instanceof SystemInjector) {
79 ((SystemInjector) mInjector).initializeBluetoothAdapter();
90 mInjector = new SystemInjector(context); in NearbyService()
91 mBroadcastProviderManager = new BroadcastProviderManager(context, mInjector); in NearbyService()
96 ? new DiscoveryProviderManager(context, mInjector) in NearbyService()
97 : new DiscoveryProviderManagerLegacy(context, mInjector); in NearbyService()
103 this.mInjector = injector; in setInjector()
189 if (mInjector instanceof SystemInjector) { in onBootPhase()
190 ((SystemInjector) mInjector).initializeAppOpsManager(); in onBootPhase()
[all …]
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/scheduling/
DDeleteExpiredJob.java53 private final Injector mInjector; field in DeleteExpiredJob
57 mInjector = new Injector(); in DeleteExpiredJob()
63 mInjector = injector; in DeleteExpiredJob()
94 mInjector in getExecutionFuture()
97 mInjector.getExecutor()); in getExecutionFuture()
108 mInjector.getClock().currentTimeMillis() in getExecutionFuture()
109 - mInjector.getFlags().getTaskHistoryTtl(); in getExecutionFuture()
110 return mInjector in getExecutionFuture()
114 mInjector.getExecutor()) in getExecutionFuture()
123 mInjector.getExecutor()); in getExecutionFuture()
DDeleteExpiredJobService.java58 private final Injector mInjector; field in DeleteExpiredJobService
61 mInjector = new Injector(); in DeleteExpiredJobService()
66 mInjector = injector; in DeleteExpiredJobService()
95 Flags flags = mInjector.getFlags(); in onStartJob()
123 mInjector in onStartJob()
126 mInjector.getExecutor()); in onStartJob()
131 mInjector.getClock().currentTimeMillis() in onStartJob()
133 return mInjector in onStartJob()
137 mInjector.getExecutor()); in onStartJob()
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/server/sdksandbox/
DLoadSdkSessionUnitTest.java50 private SdkSandboxManagerService.Injector mInjector; field in LoadSdkSessionUnitTest
59 mInjector = new SdkSandboxManagerService.Injector(mContext); in setup()
77 mInjector, in testLoadSdkSessionIsInitiallyPendingLoad()
95 mInjector, in testGetSdkProviderInfo_SdkDoesNotExist()
110 mInjector, in testGetSdkProviderInfo_SdkIsValid()
138 mInjector, in testLoadSdkError()
161 mInjector, in testSecondLoadFails_ErrorOnFirstLoad_SameSession()
210 mInjector, in testSandboxDiedOnLoadSdkRequest()
241 mInjector, in testLoadSdk_SandboxDiesBeforeCompletion()
265 mInjector, in testLoadSdk_CustomizedApplicationInfoIsPassedToService()
[all …]
DSdkSandboxRestrictionManagerUnitTest.java47 private SdkSandboxRestrictionManager.Injector mInjector; field in SdkSandboxRestrictionManagerUnitTest
62 mInjector = Mockito.spy(new FakeInjector(context, mPackageManagerHelper)); in setUp()
63 mSdkSandboxRestrictionManager = new SdkSandboxRestrictionManager(mInjector); in setUp()
77 Mockito.when(mInjector.getCurrentSdkLevel()).thenReturn(33); in testGetEffectiveTargetSdkVersion_default_noAdSdk_currentSdkLevelLessThanDefaultValue()
87 Mockito.when(mInjector.getCurrentSdkLevel()).thenReturn(34); in testGetEffectiveTargetSdkVersion_noAdSdk_currentSdkLevelSameAsDefaultValue()
96 Mockito.when(mInjector.getCurrentSdkLevel()).thenReturn(35); in testGetEffectiveTargetSdkVersion_noAdSdk_equalToCurrentSdkLevel()
105 Mockito.when(mInjector.getCurrentSdkLevel()).thenReturn(34); in testGetEffectiveTargetSdkVersion_currentSdkVersionUsed()
121 Mockito.when(mInjector.getCurrentSdkLevel()).thenReturn(36); in testGetEffectiveTargetSdkVersion_withDifferentTargetSdkVersionForSdk()
139 Mockito.when(mInjector.getCurrentSdkLevel()).thenReturn(37); in testGetEffectiveTargetSdkVersion_sharedUid()
DSdkSandboxStatsdMetricsUnitTest.java133 private FakeInjector mInjector; field in SdkSandboxStatsdMetricsUnitTest
197 mInjector = in setup()
212 mService = new SdkSandboxManagerService(mSpyContext, mInjector); in setup()
226 mInjector.resetTimeSeries(); in tearDown()
244 mInjector.setLatencyTimeSeries( in testLatencyMetrics_LoadSdk()
303 mInjector.setLatencyTimeSeries( in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_FailureOnMultiLoad()
325 mInjector.setLatencyTimeSeries( in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_InvalidSdkName()
354 mInjector.setLatencyTimeSeries( in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_FailureOnAppDeath()
380 mInjector.setLatencyTimeSeries( in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_NoInternet()
409 mInjector.setLatencyTimeSeries( in testLatencyMetrics_SystemServerAppToSandbox_LoadSdk_LoadSandboxFailure()
[all …]
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/display/
DWebViewFlow.java77 private final Injector mInjector; field in WebViewFlow
94 mInjector = new Injector(); in WebViewFlow()
119 mStartServiceTimeMillis = mInjector.getClock().elapsedRealtime(); in isServiceFlowReady()
167 result, mInjector.getClock(), in uploadServiceFlowMetrics()
172 mInjector.getExecutor()) in uploadServiceFlowMetrics()
178 /* result= */ null, mInjector.getClock(), in uploadServiceFlowMetrics()
183 mInjector.getExecutor()); in uploadServiceFlowMetrics()
193 mInjector.getExecutor()) in getServiceFlowResultFuture()
199 mInjector.getExecutor()) in getServiceFlowResultFuture()
201 mInjector.getFlags().getIsolatedServiceDeadlineSeconds(), in getServiceFlowResultFuture()
[all …]
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/
DLoadSdkSession.java131 private final SdkSandboxManagerService.Injector mInjector; field in LoadSdkSession
178 mInjector = injector; in LoadSdkSession()
221 sandboxLatencyInfo.setTimeSystemServerCallFinished(mInjector.elapsedRealtime()); in load()
229 sandboxLatencyInfo.setTimeSystemServerCallFinished(mInjector.elapsedRealtime()); in load()
259 sandboxLatencyInfo.setTimeSystemServerCalledApp(mInjector.elapsedRealtime()); in handleLoadSuccess()
286 sandboxLatencyInfo.setTimeSystemServerCalledApp(mInjector.elapsedRealtime()); in handleLoadFailure()
314 sandboxLatencyInfo.setTimeSystemServerCallFinished(mInjector.elapsedRealtime()); in unload()
320 mInjector.elapsedRealtime()); in unload()
385 sandboxLatencyInfo.setTimeSystemServerCallFinished(mInjector.elapsedRealtime()); in requestSurfacePackage()
409 sandboxLatencyInfo.setTimeSystemServerCalledApp(mInjector.elapsedRealtime()); in handleSurfacePackageReady()
[all …]
DSdkSandboxManagerService.java196 private Injector mInjector; field in SdkSandboxManagerService
328 mInjector = injector; in SdkSandboxManagerService()
329 mInjector.setLocalManager(new LocalImpl()); in SdkSandboxManagerService()
330 mServiceProvider = mInjector.getSdkSandboxServiceProvider(); in SdkSandboxManagerService()
333 mSdkSandboxPulledAtoms = mInjector.getSdkSandboxPulledAtoms(); in SdkSandboxManagerService()
334 mSdkSandboxStorageManager = mInjector.getSdkSandboxStorageManager(); in SdkSandboxManagerService()
335 mSdkSandboxStatsdLogger = mInjector.getSdkSandboxStatsdLogger(); in SdkSandboxManagerService()
404 sandboxLatencyInfo.setTimeSystemServerReceivedCallFromApp(mInjector.elapsedRealtime()); in getSandboxedSdks()
435 sandboxLatencyInfo.setTimeSystemServerCallFinished(mInjector.elapsedRealtime()); in getSandboxedSdks()
482 sandboxLatencyInfo.setTimeSystemServerReceivedCallFromApp(mInjector.elapsedRealtime()); in addSdkSandboxProcessDeathCallback()
[all …]
DSdkSandboxRestrictionManager.java44 private final Injector mInjector; field in SdkSandboxRestrictionManager
55 mInjector = injector; in SdkSandboxRestrictionManager()
77 PackageManagerHelper packageManagerHelper = mInjector.getPackageManagerHelper(appUid); in getEffectiveTargetSdkVersion()
81 int effectiveTargetSdkVersion = mInjector.getCurrentSdkLevel(); in getEffectiveTargetSdkVersion()
101 if (mInjector.getCurrentSdkLevel() <= DEFAULT_TARGET_SDK_VERSION) { in getEffectiveTargetSdkVersion()
111 int targetSdkVersion = mInjector.getCurrentSdkLevel(); in getEffectiveTargetSdkVersion()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/request/
DRenderFlow.java107 private final Injector mInjector; field in RenderFlow
153 mInjector = Objects.requireNonNull(injector); in RenderFlow()
160 mStartServiceTimeMillis = mInjector.getClock().elapsedRealtime(); in isServiceFlowReady()
170 mInjector.decryptToken(mSlotResultToken)); in isServiceFlowReady()
217 val, mInjector.getClock(), in uploadServiceFlowMetrics()
221 mInjector.getExecutor() in uploadServiceFlowMetrics()
228 mInjector.getClock(), in uploadServiceFlowMetrics()
232 mInjector.getExecutor() in uploadServiceFlowMetrics()
247 mInjector.getExecutor()) in getServiceFlowResultFuture()
251 mInjector.getExecutor()) in getServiceFlowResultFuture()
[all …]
DAppRequestFlow.java126 private final Injector mInjector; field in AppRequestFlow
158 mInjector = Objects.requireNonNull(injector); in AppRequestFlow()
163 mStartServiceTimeMillis.set(mInjector.getClock().elapsedRealtime()); in isServiceFlowReady()
243 mInjector.getClock(), in uploadServiceFlowMetrics()
248 mInjector.getExecutor()) in uploadServiceFlowMetrics()
255 mInjector.getClock(), in uploadServiceFlowMetrics()
260 mInjector.getExecutor()); in uploadServiceFlowMetrics()
271 mInjector.getExecutor() in getServiceFlowResultFuture()
275 .transformAsync(this::validateExecuteOutput, mInjector.getExecutor()) in getServiceFlowResultFuture()
276 .transformAsync(this::logQuery, mInjector.getExecutor()); in getServiceFlowResultFuture()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DDebugHelper.java52 private final Injector<?> mInjector; field in DebugHelper
62 mInjector = injector; in DebugHelper()
66 assert (mInjector.features.isDebugSupportEnabled()); in getNextColors()
76 assert (mInjector.features.isDebugSupportEnabled()); in getNextMessage()
116 if (mInjector.actions != null) { in toggleDebugMode()
117 mInjector.actions.setDebugMode(mDebugEnabled); in toggleDebugMode()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/webtrigger/
DWebTriggerFlow.java97 @NonNull private final Injector mInjector; field in WebTriggerFlow
123 mInjector = Objects.requireNonNull(injector); in WebTriggerFlow()
129 mStartServiceTimeMillis = mInjector.getClock().elapsedRealtime(); in isServiceFlowReady()
226 val, mInjector.getClock(), in uploadServiceFlowMetrics()
230 mInjector.getExecutor() in uploadServiceFlowMetrics()
237 mInjector.getClock(), in uploadServiceFlowMetrics()
241 mInjector.getExecutor() in uploadServiceFlowMetrics()
252 mInjector.getExecutor()) in getServiceFlowResultFuture()
258 mInjector.getExecutor()) in getServiceFlowResultFuture()
260 mInjector.getFlags().getIsolatedServiceDeadlineSeconds(), in getServiceFlowResultFuture()
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/com/android/sdksandbox/
DSandboxedActivityTest.java55 private FakeInjector mInjector; field in SandboxedActivityTest
82 mInjector = new FakeInjector(mRegistry); in setUp()
95 SandboxedActivity sandboxedActivity = new SandboxedActivity(mInjector); in testSandboxedActivityCreation()
117 Mockito.spy(new SandboxedActivity(mInjector)); in testSandboxedActivityFinishIfNoIntentExtras()
132 Mockito.spy(new SandboxedActivity(mInjector)); in testSandboxedActivityFinishIfNoIntentExtrasNotHavingTheHandlerToken()
151 Mockito.spy(new SandboxedActivity(mInjector)); in testSandboxedActivityFinishIfHandlerTokenIsWrongType()
172 Mockito.spy(new SandboxedActivity(mInjector)); in testSandboxedActivityFinishIfHandlerNotRegistered()
191 Mockito.spy(new SandboxedActivity(mInjector)); in testMultipleSandboxedActivitiesForTheSameHandler()
198 Mockito.spy(new SandboxedActivity(mInjector)); in testMultipleSandboxedActivitiesForTheSameHandler()
217 SandboxedActivity sandboxedActivity = new SandboxedActivity(mInjector); in testAttachBaseContextWrapsTheBaseContextIfCustomizedSdkContextFlagIsEnabled()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/
DDataAccessServiceImpl.java84 private final Injector mInjector; field in DataAccessServiceImpl
116 mInjector = Objects.requireNonNull(injector, "injector"); in DataAccessServiceImpl()
122 mVendorDataDao = mInjector.getVendorDataDao( in DataAccessServiceImpl()
129 mLocalDataDao = mInjector.getLocalDataDao( in DataAccessServiceImpl()
143 mEventsDao = mInjector.getEventsDao(mApplicationContext); in DataAccessServiceImpl()
163 mInjector.getExecutor().execute( in onRequest()
168 mInjector.getExecutor().execute( in onRequest()
179 mInjector.getExecutor().execute( in onRequest()
187 mInjector.getExecutor().execute( in onRequest()
204 mInjector.getExecutor().execute( in onRequest()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryFragment.java162 private Injector<?> mInjector; field in DirectoryFragment
442 mInjector = mActivity.getInjector(); in onCreateView()
445 mSelectionMgr = mInjector.selectionMgr; in onCreateView()
446 mModel = mInjector.getModel(); in onCreateView()
449 mInjector.actions.registerDisplayStateChangedListener(mOnDisplayStateChanged); in onCreateView()
452 if (mInjector.config.dragAndDropEnabled()) { in onCreateView()
458 mInjector.actions, in onCreateView()
460 mInjector.dialogs, in onCreateView()
479 mInjector.actions.unregisterDisplayStateChangedListener(mOnDisplayStateChanged); in onDestroyView()
544 new DocsSelectionPredicate(mInjector.config, mState, mModel, mRecView); in onActivityCreated()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DBaseActivity.java101 protected Injector<?> mInjector; field in BaseActivity
192 mInjector = getInjector(); in onCreate()
194 mDrawer = DrawerController.create(this, mInjector.config); in onCreate()
224 if (mInjector.pickResult != null) { in onCreate()
225 mInjector.pickResult.increaseActionCount(); in onCreate()
229 mInjector.actions.loadDocumentsForCurrentStack(); in onCreate()
293 final CommandInterceptor cmdInterceptor = new CommandInterceptor(mInjector.features); in onCreate()
300 mInjector.features, in onCreate()
301 mInjector.debugHelper::toggleDebugMode, in onCreate()
366 mInjector.actions.loadCrossProfileRoot(getCurrentRoot(), userId); in onCreate()
[all …]
/packages/modules/Connectivity/nearby/service/java/com/android/server/nearby/provider/
DBleBroadcastProvider.java51 private final Injector mInjector; field in BleBroadcastProvider
59 mInjector = injector; in BleBroadcastProvider()
73 BluetoothAdapter adapter = mInjector.getBluetoothAdapter(); in start()
76 mInjector.getBluetoothAdapter().getBluetoothLeAdvertiser(); in start()
125 BluetoothAdapter adapter = mInjector.getBluetoothAdapter(); in stop()
128 mInjector.getBluetoothAdapter().getBluetoothLeAdvertiser(); in stop()

1234