Home
last modified time | relevance | path

Searched refs:mAms (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java138 private AccountManagerService mAms; field in AccountManagerServiceTest
182 mAms = new AccountManagerService(mTestInjector); in setUp()
199 mAms.mHandler.post(() -> { in tearDown()
230 mAms.addAccountExplicitly( in testCheckAddAccount()
232 mAms.addAccountExplicitly( in testCheckAddAccount()
234 mAms.addAccountExplicitly( in testCheckAddAccount()
236 mAms.addAccountExplicitly( in testCheckAddAccount()
238 mAms.addAccountExplicitly( in testCheckAddAccount()
240 mAms.addAccountExplicitly( in testCheckAddAccount()
245 Account[] accounts = mAms.getAccountsAsUser(null, in testCheckAddAccount()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DActivityManagerServiceTest.java235 private ActivityManagerService mAms; field in ActivityManagerServiceTest
271 mAms = new ActivityManagerService(mInjector, mServiceThreadRule.getThread(), in setUp()
273 mAms.mConstants.mNetworkAccessTimeoutMs = 2000; in setUp()
274 mAms.mActivityTaskManager = new ActivityTaskManagerService(mContext); in setUp()
275 mAms.mActivityTaskManager.initialize(null, null, mHandler.getLooper()); in setUp()
276 mAms.mAtmInternal = mActivityTaskManagerInternal; in setUp()
278 List.of(mAms.mUidObserverController.getDispatchRunnableForTest())); in setUp()
286 sProcessListSettingsListener = mAms.mProcessList.getProcessListSettingsListener(); in setUp()
342 mAms.mProcessList.mProcStateSeqCounter = 42; in incrementProcStateSeqAndNotifyAppsLocked()
400 mAms, info, TAG, Process.FIRST_SDK_SANDBOX_UID, in doNotApplySdkSandboxNextRestrictions()
[all …]
DServiceBindingOomAdjPolicyTest.java135 private ActivityManagerService mAms; field in ServiceBindingOomAdjPolicyTest
178 mAms = spy(realAms); in setUp()
179 realProcessList.mService = mAms; in setUp()
184 doReturn(false).when(mAms.mAtmInternal).hasSystemAlertWindowPermission(anyInt(), anyInt(), in setUp()
186 doReturn(true).when(mAms.mOomAdjuster.mCachedAppOptimizer).useFreezer(); in setUp()
187 doNothing().when(mAms.mOomAdjuster.mCachedAppOptimizer).freezeAppAsyncAtEarliestLSP( in setUp()
189 doNothing().when(mAms.mAppProfiler).updateLowMemStateLSP(anyInt(), anyInt(), in setUp()
234 assertNotEquals(0, mAms.bindService( in performTestServiceSelfBindingOomAdj()
245 verify(mAms.mOomAdjuster, bindMode).updateOomAdjPendingTargetsLocked(anyInt()); in performTestServiceSelfBindingOomAdj()
246 clearInvocations(mAms.mOomAdjuster); in performTestServiceSelfBindingOomAdj()
[all …]
DBroadcastQueueTest.java188 synchronized (mAms) { in setUp()
213 }).when(mAms).startProcessLocked(any(), any(), anyBoolean(), anyInt(), in setUp()
225 }).when(mAms).getProcessRecordLocked(any(), anyInt()); in setUp()
226 doNothing().when(mAms).appNotResponding(any(), any()); in setUp()
231 }).when(mAms).registerUidObserver(any(), anyInt(), in setUp()
234 mQueue = new BroadcastQueueModernImpl(mAms, mHandlerThread.getThreadHandler(), in setUp()
236 mAms.setBroadcastQueueForTest(mQueue); in setUp()
322 final ProcessRecord r = spy(new ProcessRecord(mAms, ai, processName, ai.uid)); in makeActiveProcessRecord()
338 r.makeActive(thread, mAms.mProcessStats); in makeActiveProcessRecord()
343 final ReceiverList receiverList = new ReceiverList(mAms, r, r.getPid(), r.info.uid, in makeActiveProcessRecord()
[all …]
DAppChildProcessTest.java76 private ActivityManagerService mAms; field in AppChildProcessTest
103 mAms = new ActivityManagerService(mInjector, mServiceThreadRule.getThread()); in setUp()
104 mAms.mActivityTaskManager = new ActivityTaskManagerService(mContext); in setUp()
105 mAms.mActivityTaskManager.initialize(null, null, mContext.getMainLooper()); in setUp()
106 mAms.mAtmInternal = spy(mAms.mActivityTaskManager.getAtmInternal()); in setUp()
107 mAms.mPackageManagerInt = mPackageManagerInt; in setUp()
108 pList.mService = mAms; in setUp()
109 mPhantomProcessList = mAms.mPhantomProcessList; in setUp()
234 ProcessRecord app = new ProcessRecord(mAms, ai, processName, uid); in makeAppProcess()
236 mAms.mPidsSelfLocked.doAddInternal(app.getPid(), app); in makeAppProcess()
DActivityManagerInternalTest.java57 private ActivityManagerService mAms; field in ActivityManagerInternalTest
70 mAms = new ActivityManagerService(mMockInjector, mServiceThreadRule.getThread()); in setUp()
71 mAmi = mAms.new LocalService(); in setUp()
131 final UidRecord record = new UidRecord(uid, mAms); in addActiveUidRecord()
141 mAms.mProcessList.mActiveUids.put(uid, record); in addActiveUidRecord()
146 mAms.mProcessList.mActiveUids.clear(); in clearActiveUids()
DServiceTimeoutTest.java89 private ActivityManagerService mAms; field in ServiceTimeoutTest
120 mAms = spy(realAms); in setUp()
147 mAms); in testServiceTimeoutAndProcessKill()
148 app.makeActive(mock(IApplicationThread.class), mAms.mProcessStats); in testServiceTimeoutAndProcessKill()
152 final ServiceRecord sr = spy(ServiceRecord.newEmptyInstanceForTest(mAms)); in testServiceTimeoutAndProcessKill()
169 mAms.removeLruProcessLocked(app); in testServiceTimeoutAndProcessKill()
DApplicationStartInfoTest.java92 private ActivityManagerService mAms; field in ApplicationStartInfoTest
112 mAms = new ActivityManagerService(mInjector, mServiceThreadRule.getThread()); in setUp()
113 mAms.mActivityTaskManager = new ActivityTaskManagerService(mContext); in setUp()
114 mAms.mActivityTaskManager.initialize(null, null, mContext.getMainLooper()); in setUp()
115 mAms.mAtmInternal = spy(mAms.mActivityTaskManager.getAtmInternal()); in setUp()
116 mAms.mPackageManagerInt = mPackageManagerInt; in setUp()
117 mAppStartInfoTracker.mService = mAms; in setUp()
326 ServiceRecord service = ServiceRecord.newEmptyInstanceForTest(mAms); in testApplicationStartInfo()
506 return makeProcessRecord(pid, uid, packageUid, definingUid, processName, packageName, mAms); in makeProcessRecord()
DAsyncProcessStartTest.java102 private ActivityManagerService mAms; field in AsyncProcessStartTest
141 mAms = spy(mRealAms); in setUp()
142 mRealProcessList.mService = mAms; in setUp()
219 final ProcessRecord r = spy(new ProcessRecord(mAms, ai, ai.processName, ai.uid)); in makeActiveProcessRecord()
223 r.makeActive(thread, mAms.mProcessStats); in makeActiveProcessRecord()
DProcessObserverTest.java101 private ActivityManagerService mAms; field in ProcessObserverTest
142 mAms = spy(mRealAms); in setUp()
143 mRealProcessList.mService = mAms; in setUp()
220 final ProcessRecord r = spy(new ProcessRecord(mAms, ai, ai.processName, ai.uid)); in makeActiveProcessRecord()
224 r.makeActive(thread, mAms.mProcessStats); in makeActiveProcessRecord()
DCachedAppOptimizerTest.java80 private ActivityManagerService mAms; field in CachedAppOptimizerTest
107 mAms = new ActivityManagerService( in setUp()
111 mCachedAppOptimizerUnderTest = new CachedAppOptimizer(mAms, in setUp()
135 ProcessRecord app = new ProcessRecord(mAms, ai, processName, uid); in makeProcessRecord()
999 mAms = new ActivityManagerService(mInjector, mServiceThreadRule.getThread()); in initActivityManagerService()
1000 mAms.mActivityTaskManager = new ActivityTaskManagerService(mContext); in initActivityManagerService()
1001 mAms.mActivityTaskManager.initialize(null, null, mContext.getMainLooper()); in initActivityManagerService()
1002 mAms.mAtmInternal = spy(mAms.mActivityTaskManager.getAtmInternal()); in initActivityManagerService()
1003 mAms.mPackageManagerInt = mPackageManagerInt; in initActivityManagerService()
DCacheOomRankerTest.java82 private ActivityManagerService mAms; field in CacheOomRankerTest
114 mAms = new ActivityManagerService( in setUp()
116 mAms.mActivityTaskManager = new ActivityTaskManagerService(context); in setUp()
117 mAms.mActivityTaskManager.initialize(null, null, context.getMainLooper()); in setUp()
118 mAms.mAtmInternal = spy(mAms.mActivityTaskManager.getAtmInternal()); in setUp()
119 mAms.mPackageManagerInt = mPackageManagerInt; in setUp()
126 mAms, in setUp()
746 ProcessRecord app = new ProcessRecord(mAms, ai, ai.packageName + ":process", mNextUid++); in nextProcessRecord()
DBaseBroadcastQueueTest.java119 ActivityManagerService mAms; field in BaseBroadcastQueueTest
173 mAms = spy(realAms); in setUp()
175 mSkipPolicy = spy(new BroadcastSkipPolicy(mAms)); in setUp()
DApplicationExitInfoTest.java106 private ActivityManagerService mAms; field in ApplicationExitInfoTest
138 mAms = new ActivityManagerService(mInjector, mServiceThreadRule.getThread()); in setUp()
139 mAms.mActivityTaskManager = new ActivityTaskManagerService(mContext); in setUp()
140 mAms.mActivityTaskManager.initialize(null, null, mContext.getMainLooper()); in setUp()
141 mAms.mAtmInternal = spy(mAms.mActivityTaskManager.getAtmInternal()); in setUp()
142 mAms.mPackageManagerInt = mPackageManagerInt; in setUp()
993 procState, pss, rss, processName, packageName, mAms); in makeProcessRecord()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DKeyboardInterceptor.java37 private final AccessibilityManagerService mAms; field in KeyboardInterceptor
49 mAms = service; in KeyboardInterceptor()
62 mAms = service; in KeyboardInterceptor()
69 if (mAms.getTraceManager().isA11yTracingEnabledForTypes(FLAGS_INPUT_FILTER)) { in onKeyEvent()
70 mAms.getTraceManager().logTrace(LOG_TAG + ".onKeyEvent", in onKeyEvent()
86 mAms.notifyKeyEvent(event, policyFlags); in onKeyEvent()
134 mAms.notifyKeyEvent(mEventQueueEnd.event, mEventQueueEnd.policyFlags); in processQueuedEvents()
DAccessibilityInputFilter.java177 private final AccessibilityManagerService mAms; field in AccessibilityInputFilter
275 mAms = service; in AccessibilityInputFilter()
288 mAms.onInputFilterInstalled(true); in onInstalled()
299 mAms.onInputFilterInstalled(false); in onUninstalled()
318 if (mAms.getTraceManager().isA11yTracingEnabledForTypes( in onInputEvent()
320 mAms.getTraceManager().logTrace(TAG + ".onInputEvent", in onInputEvent()
627 final ArrayList<Display> displaysList = mAms.getValidDisplayList(); in enableFeatures()
642 if (mAms.isDisplayProxyed(displayId)) { in enableFeaturesForDisplay()
651 mContext, mUserId, mAms.getTraceManager()); in enableFeaturesForDisplay()
657 TouchExplorer explorer = new TouchExplorer(displayContext, mAms); in enableFeaturesForDisplay()
[all …]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/
DTouchExplorer.java152 private final AccessibilityManagerService mAms; field in TouchExplorer
192 mAms = service; in TouchExplorer()
193 mState = new TouchState(mDisplayId, mAms); in TouchExplorer()
195 mDispatcher = new EventDispatcher(context, mAms, super.getNext(), mState); in TouchExplorer()
262 mAms.onTouchInteractionEnd(); in clear()
267 if (mAms.getTraceManager().isA11yTracingEnabledForTypes(LOGGING_FLAGS)) { in onMotionEvent()
268 mAms.getTraceManager().logTrace(LOG_TAG + ".onMotionEvent", LOGGING_FLAGS, in onMotionEvent()
319 mAms.sendMotionEventToListeningServices(rawEvent); in onMotionEvent()
329 if (mAms.getTraceManager().isA11yTracingEnabledForTypes(LOGGING_FLAGS)) { in onAccessibilityEvent()
330 mAms.getTraceManager().logTrace(LOG_TAG + ".onAccessibilityEvent", in onAccessibilityEvent()
[all …]
DEventDispatcher.java47 private final AccessibilityManagerService mAms; field in EventDispatcher
72 mAms = ams; in EventDispatcher()
175 event.setWindowId(mAms.getActiveWindowId()); in sendAccessibilityEvent()
476 if (!mAms.accessibilityFocusOnlyInActiveWindow() in computeClickLocation()
477 || mState.getLastTouchedWindowId() == mAms.getActiveWindowId()) { in computeClickLocation()
478 if (mAms.getAccessibilityFocusClickPointInScreen(outLocation)) { in computeClickLocation()
485 if (mAms.getAccessibilityFocusClickPointInScreen(outLocation)) { in computeClickLocation()
DTouchState.java97 private AccessibilityManagerService mAms; field in TouchState
102 mAms = ams; in TouchState()
203 mAms.moveNonProxyTopFocusedDisplayToTopIfNeeded(); in onReceivedAccessibilityEvent()
256 mAms.onTouchStateChanged(mDisplayId, state); in setState()
/frameworks/base/services/java/com/android/server/
DHsumBootUserInitializer.java45 private final ActivityManagerService mAms; field in HsumBootUserInitializer
85 mAms = am; in HsumBootUserInitializer()
183 final boolean started = mAms.startUserInBackgroundWithListener(UserHandle.USER_SYSTEM, in unlockSystemUser()
189 final boolean unlocked = mAms.unlockUser(UserHandle.USER_SYSTEM, /* token= */ null, in unlockSystemUser()
203 final boolean started = mAms.startUserInForegroundWithListener(bootUserId, in switchToBootUser()
DCommunalProfileInitializer.java35 private final ActivityManagerService mAms; field in CommunalProfileInitializer
39 mAms = ams; in CommunalProfileInitializer()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityInputFilterTest.java100 private AccessibilityManagerService mAms; field in AccessibilityInputFilterTest
150 mAms = spy(new AccessibilityManagerService(context)); in setUp()
151 mA11yInputFilter = new AccessibilityInputFilter(context, mAms, mEventHandler); in setUp()
154 doReturn(mDisplayList).when(mAms).getValidDisplayList(); in setUp()
155 doReturn(mMockMagnificationProcessor).when(mAms).getMagnificationProcessor(); in setUp()
362 mAms).getMagnificationMode(DEFAULT_DISPLAY); in testEnabledFeatures_windowMagnificationMode_expectedMagnificationGestureHandler()
376 mAms).getMagnificationMode(DEFAULT_DISPLAY); in testChangeMagnificationModeToWindow_expectedMagnificationGestureHandler()
379 mAms).getMagnificationMode(DEFAULT_DISPLAY); in testChangeMagnificationModeToWindow_expectedMagnificationGestureHandler()
397 mAms).getMagnificationMode(DEFAULT_DISPLAY); in testChangeMagnificationModeToWindow_magnifierFeature_expectedMagnificationGestureHandler()
402 mAms).getMagnificationMode(DEFAULT_DISPLAY); in testChangeMagnificationModeToWindow_magnifierFeature_expectedMagnificationGestureHandler()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DMagnificationController.java89 private final AccessibilityManagerService mAms; field in MagnificationController
150 mAms = ams; in MagnificationController()
162 mBackgroundExecutor, mAms::updateAlwaysOnMagnification); in MagnificationController()
353 ? success -> mAms.changeMagnificationMode(displayId, targetMode) in transitionMagnificationConfigMode()
383 mAms.changeMagnificationMode(displayId, targetMode); in transitionMagnificationConfigMode()
508 mAms.changeMagnificationMode(displayId, magnificationMode); in onChangeMagnificationMode()
525 mAms.notifyMagnificationChanged(displayId, new Region(bounds), config); in onSourceBoundsChanged()
537 mAms.notifyMagnificationChanged(displayId, region, config); in onFullScreenMagnificationChanged()
797 mAms.getTraceManager(), in getFullScreenMagnificationController()
833 mLock, this, mAms.getTraceManager(), in getMagnificationConnectionManager()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DCoreSettingsObserverTest.java71 private ActivityManagerService mAms; field in CoreSettingsObserverTest
110 mAms = new ActivityManagerService(new TestInjector(mContext), in setUp()
112 mCoreSettingsObserver = new CoreSettingsObserver(mAms); in setUp()
/frameworks/base/services/core/java/com/android/server/firewall/
DIntentFirewall.java78 private final AMSInterface mAms; field in IntentFirewall
122 mAms = ams; in IntentFirewall()
306 synchronized (mAms.getAMSLock()) { in readRulesDir()
622 return mAms.checkComponentPermission(permission, pid, uid, owningUid, exported) == in checkComponentPermission()

12