/frameworks/native/services/inputflinger/tests/ |
D | AnrTracker_test.cpp | 32 AnrTracker tracker; in TEST() local 34 tracker.insert(1, nullptr); in TEST() 36 ASSERT_EQ(1, tracker.firstTimeout()); in TEST() 37 ASSERT_EQ(tracker.firstToken(), nullptr); in TEST() 41 AnrTracker tracker; in TEST() local 46 tracker.insert(1, token1); in TEST() 47 tracker.insert(2, token2); in TEST() 48 tracker.insert(3, token1); in TEST() 49 tracker.insert(4, token2); in TEST() 50 tracker.insert(5, token1); in TEST() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/jank/ |
D | FrameTrackerTest.java | 144 FrameTracker tracker = spyFrameTracker( in testOnlyFirstWindowFrameOverThreshold() local 152 tracker.begin(); in testOnlyFirstWindowFrameOverThreshold() 157 sendFirstWindowFrame(tracker, 100, JANK_APP_DEADLINE_MISSED, 100L); in testOnlyFirstWindowFrameOverThreshold() 160 sendFrame(tracker, 5, JANK_NONE, 101L); in testOnlyFirstWindowFrameOverThreshold() 164 tracker.end(FrameTracker.REASON_END_NORMAL); in testOnlyFirstWindowFrameOverThreshold() 165 sendFrame(tracker, 5, JANK_NONE, 102L); in testOnlyFirstWindowFrameOverThreshold() 166 sendFrame(tracker, 500, JANK_APP_DEADLINE_MISSED, 103L); in testOnlyFirstWindowFrameOverThreshold() 168 verify(tracker).removeObservers(); in testOnlyFirstWindowFrameOverThreshold() 169 verify(tracker, never()).triggerPerfetto(); in testOnlyFirstWindowFrameOverThreshold() 182 FrameTracker tracker = spyFrameTracker( in testSfJank() local [all …]
|
D | InteractionJankMonitorTest.java | 170 FrameTracker tracker = createMockedFrameTracker(monitor, null); in testBeginEnd() local 171 doReturn(tracker).when(monitor).createFrameTracker(any(), any()); in testBeginEnd() 172 doNothing().when(tracker).begin(); in testBeginEnd() 173 doReturn(true).when(tracker).end(anyInt()); in testBeginEnd() 177 verify(tracker).begin(); in testBeginEnd() 179 verify(tracker).end(REASON_END_NORMAL); in testBeginEnd() 211 FrameTracker tracker = createMockedFrameTracker(monitor, null); in testBeginTimeout() local 212 doReturn(tracker).when(monitor).createFrameTracker(any(), any()); in testBeginTimeout() 213 doNothing().when(tracker).begin(); in testBeginTimeout() 214 doReturn(true).when(tracker).cancel(anyInt()); in testBeginTimeout() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VSyncPredictorTest.cpp | 58 VSyncPredictor tracker{mPeriod, kHistorySize, kMinimumSamplesForPrediction, member 63 auto model = tracker.getVSyncPredictionModel(); in TEST_F() 69 tracker.setPeriod(changedPeriod); in TEST_F() 70 model = tracker.getVSyncPredictionModel(); in TEST_F() 77 EXPECT_TRUE(tracker.needsMoreSamples()); in TEST_F() 78 tracker.addVsyncTimestamp(mNow += mPeriod); in TEST_F() 80 EXPECT_FALSE(tracker.needsMoreSamples()); in TEST_F() 85 tracker.addVsyncTimestamp(mNow += mPeriod); in TEST_F() 87 EXPECT_FALSE(tracker.needsMoreSamples()); in TEST_F() 90 tracker.setPeriod(changedPeriod); in TEST_F() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/ |
D | UserTrackerImplTest.kt | 68 private lateinit var tracker: UserTrackerImpl in <lambda>() variable in com.android.systemui.settings.UserTrackerImplTest 87 tracker = UserTrackerImpl(context, userManager, iActivityManager, dumpManager, handler) in <lambda>() 92 assertThat(tracker.initialized).isFalse() in <lambda>() 97 tracker.userId in <lambda>() 102 tracker.userHandle in <lambda>() 107 tracker.userContext in <lambda>() 112 tracker.userContentResolver in <lambda>() 117 tracker.userProfiles in <lambda>() 122 tracker.initialize(0) in <lambda>() 124 assertThat(tracker.initialized).isTrue() in <lambda>() [all …]
|
D | DisplayTrackerImplTest.kt | 51 private lateinit var tracker: DisplayTrackerImpl variable in com.android.systemui.settings.DisplayTrackerImplTest 74 tracker = DisplayTrackerImpl(displayManager, handler) in setUp() 79 assertThat(tracker.defaultDisplayId).isEqualTo(Display.DEFAULT_DISPLAY) in testGetDefaultDisplay() 84 assertThat(tracker.allDisplays).isEqualTo(arrayOf(mDefaultDisplay, mSecondaryDisplay)) in testGetAllDisplays() 89 tracker.addDisplayChangeCallback(TestCallback(), executor) in registerCallback_registersDisplayListener() 95 tracker.addBrightnessChangeCallback(TestCallback(), executor) in registerBrightnessCallback_registersDisplayListener() 103 tracker.addDisplayChangeCallback(callback1, executor) in unregisterCallback_displayListenerStillRegistered() 104 tracker.addDisplayChangeCallback(TestCallback(), executor) in unregisterCallback_displayListenerStillRegistered() 105 tracker.removeCallback(callback1) in unregisterCallback_displayListenerStillRegistered() 113 tracker.addDisplayChangeCallback(callback, executor) in unregisterLastCallback_unregistersDisplayListener() [all …]
|
D | UserTrackerImplReceiveTest.kt | 63 private lateinit var tracker: UserTrackerImpl in <lambda>() variable in com.android.systemui.settings.UserTrackerImplReceiveTest 72 tracker = UserTrackerImpl(context, userManager, iActivityManager, dumpManager, handler) in <lambda>() 77 tracker.initialize(0) in <lambda>() 78 tracker.addCallback(callback, executor) in <lambda>() 79 val profileID = tracker.userId + 10 in <lambda>() 96 tracker.onReceive(context, Intent(intentAction)) in <lambda>()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/ |
D | WifiTrackerTest.java | 345 WifiTracker tracker = createMockedWifiTracker(); in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults() local 347 startTracking(tracker); in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults() 349 tracker.mReceiver.onReceive(mContext, intent); in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults() 352 sendScanResults(tracker); in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults() 354 return tracker; in createTrackerWithImmediateBroadcastsAndInjectInitialScanResults() 369 private void startTracking(WifiTracker tracker) throws InterruptedException { in startTracking() argument 372 tracker.onStart(); in startTracking() 378 private void sendScanResults(WifiTracker tracker) throws InterruptedException { in sendScanResults() argument 380 tracker.mReceiver.onReceive(mContext, i); in sendScanResults() 383 private void sendFailedScanResults(WifiTracker tracker) throws InterruptedException { in sendFailedScanResults() argument [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | OpBufferTests.cpp | 56 MockOp(LifecycleTracker* tracker) : tracker(tracker) { in MockOp() 57 tracker->ctor_count += 1; in MockOp() 61 tracker = other.tracker; in MockOp() 62 tracker->ctor_count += 1; in MockOp() 66 tracker->dtor_count += 1; in ~MockOp() 69 LifecycleTracker* tracker = nullptr; member 97 LifecycleTracker tracker; in TEST() local 101 MockOp<MockTypes::Lifecycle>{&tracker} in TEST() 103 EXPECT_EQ(tracker.alive(), 1); in TEST() 105 EXPECT_EQ(tracker.alive(), 0); in TEST() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | BinderCacheManager.java | 148 BinderDeathTracker tracker = getTracker(); in listenOnBinder() 149 if (tracker == null) return null; in listenOnBinder() 151 boolean addSucceeded = tracker.addListener(runnableKey, deadRunnable); in listenOnBinder() 152 return addSucceeded ? tracker.getConnection() : null; in listenOnBinder() 160 BinderDeathTracker tracker = getTracker(); in getBinder() local 161 return (tracker != null) ? tracker.getConnection() : null; in getBinder() 173 BinderDeathTracker tracker = getTracker(); in removeRunnable() 174 if (tracker == null) return null; in removeRunnable() 175 tracker.removeListener(runnableKey); in removeRunnable() 176 return tracker.getConnection(); in removeRunnable() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | InboundSmsHandler.java | 833 InboundSmsTracker tracker; in dispatchNormalMessage() local 843 tracker = TelephonyComponentFactory.getInstance() in dispatchNormalMessage() 855 tracker = TelephonyComponentFactory.getInstance() in dispatchNormalMessage() 865 if (VDBG) log("created tracker: " + tracker); in dispatchNormalMessage() 869 return addTrackerToRawTableAndSendMessage(tracker, in dispatchNormalMessage() 870 tracker.getDestPort() == -1 /* de-dup if text message */); in dispatchNormalMessage() 887 protected int addTrackerToRawTableAndSendMessage(InboundSmsTracker tracker, boolean deDup) { in addTrackerToRawTableAndSendMessage() argument 888 int result = addTrackerToRawTable(tracker, deDup); in addTrackerToRawTableAndSendMessage() 891 sendMessage(EVENT_BROADCAST_SMS, tracker); in addTrackerToRawTableAndSendMessage() 910 private boolean processMessagePart(InboundSmsTracker tracker) { in processMessagePart() argument [all …]
|
D | ImsSmsDispatcher.java | 151 SmsTracker tracker = mTrackers.get(token); 153 (tracker != null ? tracker.mMessageId : 0L)); 154 if (tracker == null) { 157 tracker.mMessageRef = messageRef; 160 if (tracker.mDeliveryIntent != null) { 162 mSmsDispatchersController.putDeliveryPendingTracker(tracker); 164 tracker.onSent(mContext); 166 mPhone.notifySmsSent(tracker.mDestAddress); 169 tracker.onFailed(mContext, reason, networkReasonCode); 173 if (tracker.mRetryCount < MAX_SEND_RETRIES) { [all …]
|
D | SmsBroadcastUndelivered.java | 177 InboundSmsTracker tracker; in scanRawTable() local 179 tracker = TelephonyComponentFactory.getInstance() in scanRawTable() 189 if (tracker.getMessageCount() == 1) { in scanRawTable() 191 broadcastSms(tracker); in scanRawTable() 193 SmsReferenceKey reference = new SmsReferenceKey(tracker); in scanRawTable() 197 if (tracker.getTimestamp() < oldMessageTimestamp) { in scanRawTable() 204 if (newCount == tracker.getMessageCount()) { in scanRawTable() 208 broadcastSms(tracker); in scanRawTable() 260 private static void broadcastSms(InboundSmsTracker tracker) { in broadcastSms() argument 262 int subId = tracker.getSubId(); in broadcastSms() [all …]
|
D | SmsDispatchersController.java | 122 public void putDeliveryPendingTracker(SMSDispatcher.SmsTracker tracker) { in putDeliveryPendingTracker() argument 123 if (isCdmaFormat(tracker.mFormat)) { in putDeliveryPendingTracker() 124 mDeliveryPendingMapFor3GPP2.put(tracker.mMessageRef, tracker); in putDeliveryPendingTracker() 126 mDeliveryPendingMapFor3GPP.put(tracker.mMessageRef, tracker); in putDeliveryPendingTracker() 452 public void sendRetrySms(SMSDispatcher.SmsTracker tracker) { in sendRetrySms() argument 453 String oldFormat = tracker.mFormat; in sendRetrySms() 456 if (!tracker.mUsesImsServiceForIms && mImsSmsDispatcher.isAvailable()) { in sendRetrySms() 474 HashMap map = tracker.getData(); in sendRetrySms() 483 tracker.onFailed(mContext, SmsManager.RESULT_SMS_SEND_RETRY_FAILED, NO_ERROR_CODE); in sendRetrySms() 490 tracker.onFailed(mContext, SmsManager.RESULT_SMS_SEND_RETRY_FAILED, NO_ERROR_CODE); in sendRetrySms() [all …]
|
D | SMSDispatcher.java | 308 for (SmsTracker tracker : trackers) { in handleMessage() 309 sendSms(tracker); in handleMessage() 446 public TextSmsSender(SmsTracker tracker) { in TextSmsSender() argument 448 mTracker = tracker; in TextSmsSender() 501 public DataSmsSender(SmsTracker tracker) { in DataSmsSender() argument 503 mTracker = tracker; in DataSmsSender() 611 private void processSendSmsResponse(SmsTracker tracker, int result, int messageRef) { in processSendSmsResponse() argument 612 if (tracker == null) { in processSendSmsResponse() 618 tracker.mMessageId); in processSendSmsResponse() 624 + SmsController.formatCrossStackMessageId(tracker.mMessageId)); in processSendSmsResponse() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaSMSDispatcher.java | 102 public void sendSms(SmsTracker tracker) { in sendSms() argument 107 + " mRetryCount=" + tracker.mRetryCount in sendSms() 108 + " mImsRetry=" + tracker.mImsRetry in sendSms() 109 + " mMessageRef=" + tracker.mMessageRef in sendSms() 110 + " mUsesImsServiceForIms=" + tracker.mUsesImsServiceForIms in sendSms() 112 + " " + SmsController.formatCrossStackMessageId(tracker.mMessageId)); in sendSms() 116 tracker.onFailed(mContext, getNotInServiceError(ss), NO_ERROR_CODE); in sendSms() 120 Message reply = obtainMessage(EVENT_SEND_SMS_COMPLETE, tracker); in sendSms() 121 byte[] pdu = (byte[]) tracker.getData().get("pdu"); in sendSms() 140 if (0 == tracker.mImsRetry && !isIms() || imsSmsDisabled || tracker.mUsesImsServiceForIms) { in sendSms() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessProfileRecord.java | 310 void onProcessActive(IApplicationThread thread, ProcessStatsService tracker) { in onProcessActive() argument 313 synchronized (tracker.mLock) { in onProcessActive() 319 tracker.getMemFactorLocked(), SystemClock.uptimeMillis(), in onProcessActive() 331 final ProcessState baseProcessTracker = tracker.getProcessStateLocked( in onProcessActive() 339 tracker.updateProcessStateHolderLocked(holder, pkgName, mApp.info.uid, in onProcessActive() 355 void onProcessInactive(ProcessStatsService tracker) { in onProcessInactive() argument 357 synchronized (tracker.mLock) { in onProcessInactive() 363 tracker.getMemFactorLocked(), SystemClock.uptimeMillis(), in onProcessInactive() 570 final ProcessState tracker = mBaseProcessTracker; in addPss() local 571 if (tracker != null) { in addPss() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmSMSDispatcher.java | 141 protected void sendSms(SmsTracker tracker) { in sendSms() argument 146 + " mRetryCount=" + tracker.mRetryCount in sendSms() 147 + " mImsRetry=" + tracker.mImsRetry in sendSms() 148 + " mMessageRef=" + tracker.mMessageRef in sendSms() 149 + " mUsesImsServiceForIms=" + tracker.mUsesImsServiceForIms in sendSms() 151 + " " + SmsController.formatCrossStackMessageId(tracker.mMessageId)); in sendSms() 158 tracker.onFailed(mContext, getNotInServiceError(ss), NO_ERROR_CODE); in sendSms() 163 Message reply = obtainMessage(EVENT_SEND_SMS_COMPLETE, tracker); in sendSms() 164 HashMap<String, Object> map = tracker.getData(); in sendSms() 167 if (tracker.mRetryCount > 0) { in sendSms() [all …]
|
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/ |
D | StandardNetworkDetailsTrackerTest.java | 120 final StandardNetworkDetailsTracker tracker = in testGetWifiEntry_HasCorrectKey() local 123 assertThat(tracker.getWifiEntry().getKey()).isEqualTo(key.toString()); in testGetWifiEntry_HasCorrectKey() 133 final StandardNetworkDetailsTracker tracker = in testHandleOnStart_scanResultUpdaterUpdateCorrectly() local 139 tracker.handleOnStart(); in testHandleOnStart_scanResultUpdaterUpdateCorrectly() 141 final long invalidCount = tracker.mScanResultUpdater.getScanResults().stream().filter( in testHandleOnStart_scanResultUpdaterUpdateCorrectly() 155 final StandardNetworkDetailsTracker tracker = in testScanResultsAvailableAction_updates_getLevel() local 158 tracker.onStart(); in testScanResultsAvailableAction_updates_getLevel() 162 final WifiEntry wifiEntry = tracker.getWifiEntry(); in testScanResultsAvailableAction_updates_getLevel() 194 final StandardNetworkDetailsTracker tracker = in testConfiguredNetworksChangedAction_updates_isSaved() local 197 tracker.onStart(); in testConfiguredNetworksChangedAction_updates_isSaved() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
D | SliceClientPermissionsTest.java | 59 DirtyTracker tracker = mock(DirtyTracker.class); in testRemoveBasic() local 60 SliceClientPermissions client = new SliceClientPermissions(pkg, tracker); in testRemoveBasic() 85 DirtyTracker tracker = mock(DirtyTracker.class); in testRemoveSubtrees() local 86 SliceClientPermissions client = new SliceClientPermissions(pkg, tracker); in testRemoveSubtrees() 116 DirtyTracker tracker = mock(DirtyTracker.class); in testAddConsolidate_addFirst() local 117 SliceClientPermissions client = new SliceClientPermissions(pkg, tracker); in testAddConsolidate_addFirst() 143 DirtyTracker tracker = mock(DirtyTracker.class); in testAddConsolidate_addSecond() local 144 SliceClientPermissions client = new SliceClientPermissions(pkg, tracker); in testAddConsolidate_addSecond() 170 DirtyTracker tracker = mock(DirtyTracker.class); in testDirty_addAuthority() local 171 SliceClientPermissions client = new SliceClientPermissions(pkg, tracker); in testDirty_addAuthority() [all …]
|
D | SliceProviderPermissionsTest.java | 54 DirtyTracker tracker = mock(DirtyTracker.class); in testDirty_addAuthority() local 55 SliceProviderPermissions provider = new SliceProviderPermissions(pkg, tracker); in testDirty_addAuthority() 59 verify(tracker).onPersistableDirty(eq(provider)); in testDirty_addAuthority() 65 DirtyTracker tracker = mock(DirtyTracker.class); in testDirty_addPkg() local 66 SliceProviderPermissions provider = new SliceProviderPermissions(pkg, tracker); in testDirty_addPkg() 69 clearInvocations(tracker); in testDirty_addPkg() 73 verify(tracker).onPersistableDirty(eq(provider)); in testDirty_addPkg() 118 DirtyTracker tracker = mock(DirtyTracker.class); in createProvider() local 119 SliceProviderPermissions provider = new SliceProviderPermissions(pkg, tracker); in createProvider()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VsyncSchedule.cpp | 63 VsyncSchedule::VsyncSchedule(TrackerPtr tracker, DispatchPtr dispatch, ControllerPtr controller) in VsyncSchedule() argument 64 : mTracker(std::move(tracker)), in VsyncSchedule() 90 VsyncSchedule::DispatchPtr VsyncSchedule::createDispatch(VsyncTracker& tracker) { in createDispatch() argument 97 return std::make_unique<VSyncDispatchTimerQueue>(std::make_unique<Timer>(), tracker, in createDispatch() 102 VsyncSchedule::ControllerPtr VsyncSchedule::createController(VsyncTracker& tracker, in createController() argument 108 auto reactor = std::make_unique<VSyncReactor>(std::make_unique<SystemClock>(), tracker, in createController()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyRotationScheduler.java | 48 TertiaryKeyRotationTracker tracker = TertiaryKeyRotationTracker.getInstance(context); in getInstance() local 49 return new TertiaryKeyRotationScheduler(tracker, windowedCount, KEY_ROTATION_LIMIT); in getInstance() 65 TertiaryKeyRotationTracker tracker, in TertiaryKeyRotationScheduler() argument 68 mTracker = tracker; in TertiaryKeyRotationScheduler()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/data/repository/ |
D | UserRepositoryImplTest.kt | 58 private lateinit var tracker: FakeUserTracker in <lambda>() variable in com.android.systemui.user.data.repository.UserRepositoryImplTest 65 tracker = FakeUserTracker() in <lambda>() 198 tracker.set(userInfos, selectedIndex) in <lambda>() 210 tracker.onProfileChanged() in <lambda>() 216 tracker.onProfileChanged() in <lambda>() 230 assertThat(tracker.callbacks.size).isEqualTo(2) in <lambda>() 236 assertThat(tracker.callbacks.size).isEqualTo(2) in <lambda>() 238 tracker.onUserChanging(0) in <lambda>() 245 tracker.onUserChanged(0) in <lambda>() 324 tracker = tracker, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/dagger/ |
D | MultiUserUtilsModule.java | 52 abstract UserContextProvider bindUserContextProvider(UserTracker tracker); in bindUserContextProvider() argument 57 UserTracker tracker); in bindUserContentResolverProvider() argument 69 UserTrackerImpl tracker = new UserTrackerImpl(context, userManager, iActivityManager, in provideUserTracker() local 71 tracker.initialize(startingUser); in provideUserTracker() 72 return tracker; in provideUserTracker()
|