/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/ |
D | WatchedIntentHandlingTest.java | 41 final WatchableTester watcher = in testWatchedIntentFilter() local 43 watcher.register(); in testWatchedIntentFilter() 46 watcher.verifyChangeReported("setPriority"); in testWatchedIntentFilter() 48 watcher.verifyNoChangeReported("getPriority"); in testWatchedIntentFilter() 51 watcher.verifyChangeReported("setPriority"); in testWatchedIntentFilter() 55 watcher.verifyNoChangeReported("indendent intent"); in testWatchedIntentFilter() 62 watcher.verifyChangeReported("addAction"); in testWatchedIntentFilter() 66 watcher.verifyNoChangeReported("actionsIterator 1"); in testWatchedIntentFilter() 72 watcher.verifyNoChangeReported("actionsIterator 2"); in testWatchedIntentFilter() 76 watcher.verifyNoChangeReported("actionsIterator 1"); in testWatchedIntentFilter() [all …]
|
D | AppsFilterImplTest.java | 233 final WatchableTester watcher = new WatchableTester(appsFilter, "onChange"); in testSystemReadyPropogates() local 234 watcher.register(); in testSystemReadyPropogates() 236 watcher.verifyChangeReported("systemReady"); in testSystemReadyPropogates() 245 final WatchableTester watcher = new WatchableTester(appsFilter, "onChange"); in testQueriesAction_FilterMatches() local 246 watcher.register(); in testQueriesAction_FilterMatches() 248 watcher.verifyChangeReported("addBasicAndroid"); in testQueriesAction_FilterMatches() 250 watcher.verifyChangeReported("systemReady"); in testQueriesAction_FilterMatches() 254 watcher.verifyChangeReported("add package"); in testQueriesAction_FilterMatches() 257 watcher.verifyChangeReported("add package"); in testQueriesAction_FilterMatches() 262 watcher.verifyNoChangeReported("shouldFilterAplication"); in testQueriesAction_FilterMatches() [all …]
|
D | PackageManagerSettingsTests.java | 213 final WatchableTester watcher = in testReadPackageRestrictions_noSuspendingPackage() local 215 watcher.register(); in testReadPackageRestrictions_noSuspendingPackage() 218 watcher.verifyChangeReported("put package 1"); in testReadPackageRestrictions_noSuspendingPackage() 221 watcher.verifyNoChangeReported("snapshot"); in testReadPackageRestrictions_noSuspendingPackage() 223 watcher.verifyChangeReported("put package 2"); in testReadPackageRestrictions_noSuspendingPackage() 263 final WatchableTester watcher = in testReadPackageRestrictions_noSuspendParamsMap() local 265 watcher.register(); in testReadPackageRestrictions_noSuspendParamsMap() 267 watcher.verifyChangeReported("put package 1"); in testReadPackageRestrictions_noSuspendParamsMap() 269 watcher.verifyChangeReported("readPackageRestrictions"); in testReadPackageRestrictions_noSuspendParamsMap() 272 watcher.verifyNoChangeReported("get package 1"); in testReadPackageRestrictions_noSuspendParamsMap() [all …]
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | UserTokenWatcher.java | 67 TokenWatcher watcher = mWatchers.get(userId); in acquire() local 68 if (watcher == null) { in acquire() 69 watcher = new InnerTokenWatcher(userId, mHandler, mTag); in acquire() 70 mWatchers.put(userId, watcher); in acquire() 72 watcher.acquire(token, tag); in acquire() 86 TokenWatcher watcher = mWatchers.get(userId); in release() local 87 if (watcher != null) { in release() 88 watcher.release(token); in release() 100 TokenWatcher watcher = mWatchers.get(userId); in isAcquired() local 101 return watcher != null && watcher.isAcquired(); in isAcquired() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | ThermalManagerServiceTest.java | 401 ThermalManagerService.TemperatureWatcher watcher = mService.mTemperatureWatcher; in testTemperatureWatcherUpdateSevereThresholds() local 402 watcher.mSevereThresholds.erase(); in testTemperatureWatcherUpdateSevereThresholds() 403 watcher.updateSevereThresholds(); in testTemperatureWatcherUpdateSevereThresholds() 404 assertEquals(1, watcher.mSevereThresholds.size()); in testTemperatureWatcherUpdateSevereThresholds() 405 assertEquals("skin1", watcher.mSevereThresholds.keyAt(0)); in testTemperatureWatcherUpdateSevereThresholds() 406 Float threshold = watcher.mSevereThresholds.get("skin1"); in testTemperatureWatcherUpdateSevereThresholds() 413 ThermalManagerService.TemperatureWatcher watcher = mService.mTemperatureWatcher; in testTemperatureWatcherGetSlopeOf() local 416 samples.add(watcher.createSampleForTesting(i, (float) (i / 2 * 2))); in testTemperatureWatcherGetSlopeOf() 418 assertEquals(1.0f, watcher.getSlopeOf(samples), 0.01f); in testTemperatureWatcherGetSlopeOf() 423 ThermalManagerService.TemperatureWatcher watcher = mService.mTemperatureWatcher; in testTemperatureWatcherNormalizeTemperature() local [all …]
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/ |
D | AnnouncementAggregator.java | 91 for (ModuleWatcher watcher : mModuleWatchers) { in onListUpdated() 92 combined.addAll(watcher.currentList); in onListUpdated() 106 ModuleWatcher watcher = new ModuleWatcher(); in watchModule() local 109 closeHandle = module.addAnnouncementListener(enabledTypes, watcher); in watchModule() 114 watcher.setCloseHandle(closeHandle); in watchModule() 115 mModuleWatchers.add(watcher); in watchModule() 127 for (ModuleWatcher watcher : mModuleWatchers) { in close() 128 watcher.close(); in close()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | InstrumentationReporter.java | 106 Report(int type, IInstrumentationWatcher watcher, ComponentName name, int resultCode, in Report() argument 109 mWatcher = watcher; in Report() 118 public void reportStatus(IInstrumentationWatcher watcher, ComponentName name, int resultCode, in reportStatus() argument 120 if (DEBUG) Slog.d(TAG, "Report status to " + watcher in reportStatus() 123 report(new Report(REPORT_TYPE_STATUS, watcher, name, resultCode, results)); in reportStatus() 126 public void reportFinished(IInstrumentationWatcher watcher, ComponentName name, int resultCode, in reportFinished() argument 128 if (DEBUG) Slog.d(TAG, "Report finished to " + watcher in reportFinished() 131 report(new Report(REPORT_TYPE_FINISHED, watcher, name, resultCode, results)); in reportFinished()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BinderHeavyHitterTest.java | 118 BinderCallHeavyHitterWatcher watcher = BinderCallHeavyHitterWatcher.getInstance(); in testPositive() local 129 watcher.setConfig(true, inputs.size(), 0.333f, this::onResult); in testPositive() 135 watcher.onTransaction(container.mUid, container.mClass, container.mCode); in testPositive() 139 watcher.setConfig(false, 0, 0.0f, null); in testPositive() 146 BinderCallHeavyHitterWatcher watcher = BinderCallHeavyHitterWatcher.getInstance(); in testNegative() local 157 watcher.setConfig(true, inputs.size(), 0.333f, this::onResult); in testNegative() 163 watcher.onTransaction(container.mUid, container.mClass, container.mCode); in testNegative() 167 watcher.setConfig(false, 0, 0.0f, null); in testNegative()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/tv/ |
D | TvRemoteProviderWatcherTest.java | 94 TvRemoteProviderWatcher watcher = in acceptsValidCsvPackageName() local 97 assertTrue(watcher.verifyServiceTrusted(createTvServiceInfo())); in acceptsValidCsvPackageName() 107 TvRemoteProviderWatcher watcher = in rejectsInvalidCsvPackageName() local 110 assertFalse(watcher.verifyServiceTrusted(createTvServiceInfo())); in rejectsInvalidCsvPackageName() 153 TvRemoteProviderWatcher watcher = in whitelistingPackageNameIsRequired() local 156 assertFalse(watcher.verifyServiceTrusted(createTvServiceInfo())); in whitelistingPackageNameIsRequired()
|
/frameworks/base/core/java/android/widget/ |
D | DialerFilter.java | 364 public void setLettersWatcher(TextWatcher watcher) { in setLettersWatcher() argument 367 span.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in setLettersWatcher() 370 public void setDigitsWatcher(TextWatcher watcher) { in setDigitsWatcher() argument 373 span.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in setDigitsWatcher() 376 public void setFilterWatcher(TextWatcher watcher) { in setFilterWatcher() argument 378 setLettersWatcher(watcher); in setFilterWatcher() 380 setDigitsWatcher(watcher); in setFilterWatcher() 384 public void removeFilterWatcher(TextWatcher watcher) { in removeFilterWatcher() argument 391 text.removeSpan(watcher); in removeFilterWatcher()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiDevice.java | 521 public void registerWatcher(String name, UiWatcher watcher) { in registerWatcher() argument 522 Tracer.trace(name, watcher); in registerWatcher() 526 mWatchers.put(name, watcher); in registerWatcher() 556 UiWatcher watcher = mWatchers.get(watcherName); in runWatchers() local 557 if (watcher != null) { in runWatchers() 560 if (watcher.checkForCondition()) { in runWatchers()
|
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/ |
D | LoginTest.java | 83 final ActivityWatcher watcher = startWatcher(); in testActivityLaunchTime() local 91 watcher.waitFor(CREATED); in testActivityLaunchTime() 93 watcher.waitFor(DESTROYED); in testActivityLaunchTime()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannableTest.java | 71 SpanWatcher watcher = new SpanWatcher() { in testRemoveSpanWithIntermediateFlag() local 84 spannable.setSpan(watcher, 0, 2, 0); in testRemoveSpanWithIntermediateFlag()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | HardwareActivityRecognitionProxy.java | 94 IActivityRecognitionHardwareWatcher watcher = in onBind() local 97 watcher.onInstanceChanged(mInstance); in onBind()
|
/frameworks/base/core/java/android/os/ |
D | Binder.java | 1343 BinderCallHeavyHitterWatcher watcher = sHeavyHitterWatcher; in setHeavyHitterWatcherConfig() local 1349 if (watcher == null) { in setHeavyHitterWatcherConfig() 1350 watcher = BinderCallHeavyHitterWatcher.getInstance(); in setHeavyHitterWatcherConfig() 1353 watcher.setConfig(true, batchSize, threshold, listener); in setHeavyHitterWatcherConfig() 1355 sHeavyHitterWatcher = watcher; in setHeavyHitterWatcherConfig() 1357 } else if (watcher != null) { in setHeavyHitterWatcherConfig() 1358 watcher.setConfig(false, 0, 0.0f, null); in setHeavyHitterWatcherConfig()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BinderInternal.java | 68 public static void addGcWatcher(Runnable watcher) { in addGcWatcher() argument 70 sGcWatchers.add(watcher); in addGcWatcher()
|
/frameworks/base/core/java/android/text/ |
D | Selection.java | 113 final TextWatcher watcher = new MemoryTextWatcher(); in updateMemory() local 114 text.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in updateMemory() 125 for (MemoryTextWatcher watcher : watchers) { in removeMemory() 126 text.removeSpan(watcher); in removeMemory()
|
/frameworks/base/cmds/am/src/com/android/commands/am/ |
D | Instrument.java | 478 InstrumentationWatcher watcher = null; in run() local 481 watcher = new InstrumentationWatcher(reporter); in run() 532 if (!mAm.startInstrumentation(cn, profileFile, flags, args, watcher, connection, userId, in run() 538 if (watcher != null) { in run() 539 if (!watcher.waitForFinish()) { in run()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | SuspendPackagesTest.java | 274 final IAppOpsCallback watcher = new IAppOpsCallback.Stub() { in assertOpBlockedOnSuspend() local 282 iAppOps.startWatchingMode(code, TEST_APP_PACKAGE_NAME, watcher); in assertOpBlockedOnSuspend() 292 iAppOps.stopWatchingMode(watcher); in assertOpBlockedOnSuspend()
|
/frameworks/av/media/codec2/sfplugin/ |
D | CCodecBufferChannel.cpp | 336 Mutexed<PipelineWatcher>::Locked watcher(mPipelineWatcher); in queueInputBufferInternal() local 339 watcher->onWorkQueued( in queueInputBufferInternal() 348 Mutexed<PipelineWatcher>::Locked watcher(mPipelineWatcher); in queueInputBufferInternal() local 350 watcher->onWorkDone(work->input.ordinal.frameIndex.peeku()); in queueInputBufferInternal() 1471 Mutexed<PipelineWatcher>::Locked watcher(mPipelineWatcher); in start() local 1472 watcher->inputDelay(inputDelayValue) in start() 1476 watcher->flush(); in start() 1530 Mutexed<PipelineWatcher>::Locked watcher(mPipelineWatcher); in requestInitialInputBuffers() local 1533 watcher->onWorkQueued( in requestInitialInputBuffers() 1635 Mutexed<PipelineWatcher>::Locked watcher(mPipelineWatcher); in flush() local [all …]
|
/frameworks/base/core/java/android/view/ |
D | IWindowManager.aidl | 265 int watchRotation(IRotationWatcher watcher, int displayId); in watchRotation() argument 272 void removeRotationWatcher(IRotationWatcher watcher); in removeRotationWatcher() argument
|
/frameworks/base/core/java/android/app/ |
D | IActivityManager.aidl | 188 int flags, in Bundle arguments, in IInstrumentationWatcher watcher, in startInstrumentation() argument 234 void setActivityController(in IActivityController watcher, boolean imAMonkey); in setActivityController() argument
|
D | IActivityTaskManager.aidl | 315 void setActivityController(in IActivityController watcher, boolean imAMonkey); in setActivityController() argument
|
D | Instrumentation.java | 2166 IInstrumentationWatcher watcher, IUiAutomationConnection uiAutomationConnection) { in init() argument 2172 mWatcher = watcher; in init()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowManagerService.java | 695 RotationWatcher(IRotationWatcher watcher, IBinder.DeathRecipient deathRecipient, in RotationWatcher() argument 697 mWatcher = watcher; in RotationWatcher() 4516 public int watchRotation(IRotationWatcher watcher, int displayId) { in watchRotation() argument 4526 final IBinder watcherBinder = watcher.asBinder(); in watchRotation() 4547 watcher.asBinder().linkToDeath(dr, 0); in watchRotation() 4548 mRotationWatchers.add(new RotationWatcher(watcher, dr, displayId)); in watchRotation() 4558 public void removeRotationWatcher(IRotationWatcher watcher) { in removeRotationWatcher() argument 4559 final IBinder watcherBinder = watcher.asBinder(); in removeRotationWatcher()
|