/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
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 | 256 final WatchableTester watcher = new WatchableTester(appsFilter, "onChange"); in testSystemReadyPropogates() local 257 watcher.register(); in testSystemReadyPropogates() 259 watcher.verifyChangeReported("systemReady"); in testSystemReadyPropogates() 268 final WatchableTester watcher = new WatchableTester(appsFilter, "onChange"); in testQueriesAction_FilterMatches() local 269 watcher.register(); in testQueriesAction_FilterMatches() 271 watcher.verifyChangeReported("addBasicAndroid"); in testQueriesAction_FilterMatches() 273 watcher.verifyChangeReported("systemReady"); in testQueriesAction_FilterMatches() 277 watcher.verifyChangeReported("add package"); in testQueriesAction_FilterMatches() 280 watcher.verifyChangeReported("add package"); in testQueriesAction_FilterMatches() 285 watcher.verifyNoChangeReported("shouldFilterApplication"); in testQueriesAction_FilterMatches() [all …]
|
D | PackageManagerSettingsTests.java | 418 final WatchableTester watcher = in testReadPackageRestrictions_noSuspendingPackage() local 420 watcher.register(); in testReadPackageRestrictions_noSuspendingPackage() 423 watcher.verifyChangeReported("put package 1"); in testReadPackageRestrictions_noSuspendingPackage() 426 watcher.verifyNoChangeReported("snapshot"); in testReadPackageRestrictions_noSuspendingPackage() 428 watcher.verifyChangeReported("put package 2"); in testReadPackageRestrictions_noSuspendingPackage() 468 final WatchableTester watcher = in testReadPackageRestrictions_noSuspendParamsMap() local 470 watcher.register(); in testReadPackageRestrictions_noSuspendParamsMap() 472 watcher.verifyChangeReported("put package 1"); in testReadPackageRestrictions_noSuspendParamsMap() 474 watcher.verifyChangeReported("readPackageRestrictions"); in testReadPackageRestrictions_noSuspendParamsMap() 477 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/core/java/com/android/server/wm/ |
D | RotationWatcherController.java | 49 void registerDisplayRotationWatcher(IRotationWatcher watcher, int displayId) { in registerDisplayRotationWatcher() argument 50 final IBinder watcherBinder = watcher.asBinder(); in registerDisplayRotationWatcher() 56 register(watcherBinder, new DisplayRotationWatcher(mService, watcher, displayId), in registerDisplayRotationWatcher() 63 final ProposedRotationListener watcher = mProposedRotationListeners.get(i); in registerProposedRotationListener() local 64 if (contextToken == watcher.mToken || listenerBinder == watcher.mWatcher.asBinder()) { in registerProposedRotationListener() 75 private static <T extends RotationWatcher> void register(IBinder watcherBinder, T watcher, in register() argument 78 watcherBinder.linkToDeath(watcher, 0); in register() 79 watcherList.add(watcher); in register() 85 private static <T extends RotationWatcher> boolean unregister(IRotationWatcher watcher, in unregister() argument 87 final IBinder watcherBinder = watcher.asBinder(); in unregister() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | ThermalManagerServiceTest.java | 423 TemperatureWatcher watcher = mService.mTemperatureWatcher; in testTemperatureWatcherUpdateSevereThresholds() local 424 watcher.mSevereThresholds.erase(); in testTemperatureWatcherUpdateSevereThresholds() 425 watcher.updateThresholds(); in testTemperatureWatcherUpdateSevereThresholds() 426 assertEquals(1, watcher.mSevereThresholds.size()); in testTemperatureWatcherUpdateSevereThresholds() 427 assertEquals("skin1", watcher.mSevereThresholds.keyAt(0)); in testTemperatureWatcherUpdateSevereThresholds() 428 Float threshold = watcher.mSevereThresholds.get("skin1"); in testTemperatureWatcherUpdateSevereThresholds() 435 TemperatureWatcher watcher = mService.mTemperatureWatcher; in testTemperatureWatcherUpdateHeadroomThreshold() local 436 synchronized (watcher.mSamples) { in testTemperatureWatcherUpdateHeadroomThreshold() 437 Arrays.fill(watcher.mHeadroomThresholds, Float.NaN); in testTemperatureWatcherUpdateHeadroomThreshold() 439 watcher.updateHeadroomThreshold(ThrottlingSeverity.LIGHT, 40, 49); in testTemperatureWatcherUpdateHeadroomThreshold() [all …]
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/ |
D | AnnouncementAggregator.java | 93 for (ModuleWatcher watcher : mModuleWatchers) { in onListUpdated() 94 combined.addAll(watcher.currentList); in onListUpdated() 111 ModuleWatcher watcher = new ModuleWatcher(); in watchModule() local 114 closeHandle = module.addAnnouncementListener(enabledTypes, watcher); in watchModule() 119 watcher.setCloseHandle(closeHandle); in watchModule() 120 mModuleWatchers.add(watcher); in watchModule() 132 for (ModuleWatcher watcher : mModuleWatchers) { in close() 133 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 | 128 BinderCallHeavyHitterWatcher watcher = BinderCallHeavyHitterWatcher.getInstance(); in testPositive() local 139 watcher.setConfig(true, inputs.size(), 0.333f, this::onResult); in testPositive() 145 watcher.onTransaction(container.mUid, container.mClass, container.mCode); in testPositive() 149 watcher.setConfig(false, 0, 0.0f, null); in testPositive() 157 BinderCallHeavyHitterWatcher watcher = BinderCallHeavyHitterWatcher.getInstance(); in testNegative() local 168 watcher.setConfig(true, inputs.size(), 0.333f, this::onResult); in testNegative() 174 watcher.onTransaction(container.mUid, container.mClass, container.mCode); in testNegative() 178 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/services/core/java/com/android/server/broadcastradio/aidl/ |
D | AnnouncementAggregator.java | 152 ModuleWatcher watcher = new ModuleWatcher(); in watchModule() local 155 closeHandle = radioModule.addAnnouncementListener(watcher, enabledTypes); in watchModule() 160 watcher.setCloseHandle(closeHandle); in watchModule() 161 mModuleWatchers.add(watcher); in watchModule()
|
/frameworks/base/apct-tests/perftests/contentcapture/src/android/view/contentcapture/ |
D | LoginTest.java | 121 final ActivityWatcher watcher = startWatcher(); in testActivityLaunchTime() local 136 watcher.waitFor(DESTROYED); in testActivityLaunchTime() 152 final ActivityWatcher watcher = startWatcher(); in testSendEventLatency() local 168 watcher.waitFor(DESTROYED); in testSendEventLatency()
|
/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/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/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/cmds/am/src/com/android/commands/am/ |
D | Instrument.java | 484 InstrumentationWatcher watcher = null; in run() local 487 watcher = new InstrumentationWatcher(reporter); in run() 541 if (!mAm.startInstrumentation(cn, profileFile, flags, args, watcher, connection, userId, in run() 547 if (watcher != null) { in run() 548 if (!watcher.waitForFinish()) { in run()
|
/frameworks/base/core/java/android/text/ |
D | Selection.java | 114 final TextWatcher watcher = new MemoryTextWatcher(); in updateMemory() local 115 text.setSpan(watcher, 0, text.length(), Spanned.SPAN_INCLUSIVE_INCLUSIVE); in updateMemory() 126 for (MemoryTextWatcher watcher : watchers) { in removeMemory() 127 text.removeSpan(watcher); in removeMemory()
|
/frameworks/base/core/java/android/os/ |
D | Binder.java | 1561 BinderCallHeavyHitterWatcher watcher = sHeavyHitterWatcher; in setHeavyHitterWatcherConfig() local 1567 if (watcher == null) { in setHeavyHitterWatcherConfig() 1568 watcher = BinderCallHeavyHitterWatcher.getInstance(); in setHeavyHitterWatcherConfig() 1571 watcher.setConfig(true, batchSize, threshold, listener); in setHeavyHitterWatcherConfig() 1573 sHeavyHitterWatcher = watcher; in setHeavyHitterWatcherConfig() 1575 } else if (watcher != null) { in setHeavyHitterWatcherConfig() 1576 watcher.setConfig(false, 0, 0.0f, null); in setHeavyHitterWatcherConfig()
|
/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 | 418 Mutexed<PipelineWatcher>::Locked watcher(mPipelineWatcher); in queueInputBufferInternal() local 421 watcher->onWorkQueued( in queueInputBufferInternal() 430 Mutexed<PipelineWatcher>::Locked watcher(mPipelineWatcher); in queueInputBufferInternal() local 432 watcher->onWorkDone(work->input.ordinal.frameIndex.peeku()); in queueInputBufferInternal() 1959 Mutexed<PipelineWatcher>::Locked watcher(mPipelineWatcher); in start() local 1960 watcher->inputDelay(inputDelayValue) in start() 1965 watcher->flush(); in start() 2028 Mutexed<PipelineWatcher>::Locked watcher(mPipelineWatcher); in requestInitialInputBuffers() local 2031 watcher->onWorkQueued( in requestInitialInputBuffers() 2137 Mutexed<PipelineWatcher>::Locked watcher(mPipelineWatcher); in flush() local [all …]
|
/frameworks/base/core/java/android/view/ |
D | IWindowManager.aidl | 305 int watchRotation(IRotationWatcher watcher, int displayId); in watchRotation() argument 312 void removeRotationWatcher(IRotationWatcher watcher); in removeRotationWatcher() argument
|
/frameworks/base/core/java/android/app/ |
D | IActivityTaskManager.aidl | 313 void setActivityController(in IActivityController watcher, boolean imAMonkey); in setActivityController() argument
|
D | IActivityManager.aidl | 238 int flags, in Bundle arguments, in IInstrumentationWatcher watcher, in startInstrumentation() argument 285 void setActivityController(in IActivityController watcher, boolean imAMonkey); in setActivityController() argument
|