/packages/modules/StatsD/statsd/tests/metrics/ |
D | OringDurationTracker_test.cpp | 65 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, false, in TEST() local 69 tracker.noteStart(kEventKey1, true, eventStartTimeNs, ConditionKey()); in TEST() 70 EXPECT_EQ((long long)eventStartTimeNs, tracker.mLastStartTime); in TEST() 71 tracker.noteStart(kEventKey1, true, eventStartTimeNs + 10, ConditionKey()); // overlapping wl in TEST() 72 EXPECT_EQ((long long)eventStartTimeNs, tracker.mLastStartTime); in TEST() 74 tracker.noteStop(kEventKey1, eventStartTimeNs + durationTimeNs, false); in TEST() 75 tracker.flushIfNeeded(eventStartTimeNs + bucketSizeNs + 1, emptyThreshold, &buckets); in TEST() 96 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, true, bucketStartTimeNs, in TEST() local 99 tracker.noteStart(kEventKey1, true, eventStartTimeNs, ConditionKey()); in TEST() 100 tracker.noteStart(kEventKey1, true, eventStartTimeNs + 10, ConditionKey()); // overlapping wl in TEST() [all …]
|
D | MaxDurationTracker_test.cpp | 67 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, -1, false, bucketStartTimeNs, in TEST() local 70 tracker.noteStart(key1, true, bucketStartTimeNs, ConditionKey()); in TEST() 72 tracker.noteStart(key1, true, bucketStartTimeNs + 3, ConditionKey()); in TEST() 74 tracker.noteStop(key1, bucketStartTimeNs + 10, false); in TEST() 77 tracker.noteStart(key2, true, bucketStartTimeNs + 20, ConditionKey()); in TEST() 78 tracker.noteStop(key2, bucketStartTimeNs + 40, false /*stop all*/); in TEST() 80 tracker.flushIfNeeded(bucketStartTimeNs + bucketSizeNs + 1, emptyThreshold, &buckets); in TEST() 101 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, -1, false, bucketStartTimeNs, in TEST() local 104 tracker.noteStart(key1, true, bucketStartTimeNs + 1, ConditionKey()); in TEST() 107 tracker.noteStart(key2, true, bucketStartTimeNs + 20, ConditionKey()); in TEST() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/ |
D | TransportSipMessageValidatorTest.java | 93 TransportSipMessageValidator tracker = getTestTracker(executor); in testTransportOpening() local 94 tracker.onTransportOpened(Collections.emptySet(), Collections.emptySet()); in testTransportOpening() 98 assertTrue(isIncomingTransportOpen(tracker)); in testTransportOpening() 100 assertFalse(isOutgoingTransportOpen(tracker)); in testTransportOpening() 101 tracker.onConfigurationChanged(getConfigBuilder(TEST_CONFIG_VERSION).build()); in testTransportOpening() 104 assertTrue(isIncomingTransportOpen(tracker)); in testTransportOpening() 105 assertTrue(isOutgoingTransportOpen(tracker)); in testTransportOpening() 111 TransportSipMessageValidator tracker = openTransport(executor); in testTransportOpenConfigChange() local 114 tracker.onConfigurationChanged(getConfigBuilder(TEST_CONFIG_VERSION + 1).build()); in testTransportOpenConfigChange() 116 verifyOutgoingTransportClosed(tracker)); in testTransportOpenConfigChange() [all …]
|
D | MessageTransportWrapperTest.java | 97 MessageTransportWrapper tracker = createTestMessageTransportWrapper(); in testImsConfigurationChanged() local 105 tracker.onConfigurationChanged(c); in testImsConfigurationChanged() 117 MessageTransportWrapper tracker = createTestMessageTransportWrapper(); in testOpenTransport() local 119 tracker.openTransport(mISipDelegate, allowedTags, deniedTags); in testOpenTransport() 131 MessageTransportWrapper tracker = createTestMessageTransportWrapper(); in testRegistrationStateChanged() local 132 tracker.openTransport(mISipDelegate, Collections.emptySet(), Collections.emptySet()); in testRegistrationStateChanged() 134 Consumer<Set<String>> callIdConsumer = trackerRegStateChanged(tracker, state); in testRegistrationStateChanged() 148 MessageTransportWrapper tracker = createTestMessageTransportWrapper(); in testCloseGracefully() local 151 Consumer<Set<String>> callIdConsumer = closeTrackerGracefully(tracker, closingReason, in testCloseGracefully() 169 MessageTransportWrapper tracker = createTestMessageTransportWrapper(); in testCloseGracefullyForceCloseCallIds() local [all …]
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/services/ |
D | AbstractCopyJobTest.java | 180 TestCopyJobProcessTracker<CopyJob.FileCountProgressTracker> tracker = in runCopyProgressForFileCountTest() local 188 tracker.getProcessTracker().start(); in runCopyProgressForFileCountTest() 189 tracker.assertProgressTrackStarted(); in runCopyProgressForFileCountTest() 190 tracker.assertStartedProgressEquals(0); in runCopyProgressForFileCountTest() 191 tracker.assertStartedRemainingTimeEquals(-1); in runCopyProgressForFileCountTest() 194 IntStream.range(0, 2).forEach(__ -> tracker.getProcessTracker().onDocumentCompleted()); in runCopyProgressForFileCountTest() 195 tracker.updateProgressAndRemainingTime(1000); in runCopyProgressForFileCountTest() 196 tracker.assertProgressEquals(0.2); in runCopyProgressForFileCountTest() 197 tracker.assertNoRemainingTime(); in runCopyProgressForFileCountTest() 200 IntStream.range(2, 4).forEach(__ -> tracker.getProcessTracker().onDocumentCompleted()); in runCopyProgressForFileCountTest() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | LegacyTypeTrackerTest.kt | 99 val tracker = makeTracker() in testSupportedTypes() constant 101 assertTrue(tracker.isTypeSupported(it)) in testSupportedTypes() 103 assertFalse(tracker.isTypeSupported(UNSUPPORTED_TYPE)) in testSupportedTypes() 115 val tracker = makeTracker() in testSupportedTypes_NoTelephony() constant 118 assertTrue(tracker.isTypeSupported(it)) in testSupportedTypes_NoTelephony() 121 assertFalse(tracker.isTypeSupported(it)) in testSupportedTypes_NoTelephony() 128 val tracker = makeTracker() in testSupportedTypes_NoWifiDirect() constant 129 assertFalse(tracker.isTypeSupported(TYPE_WIFI_P2P)) in testSupportedTypes_NoWifiDirect() 131 assertTrue(tracker.isTypeSupported(it)) in testSupportedTypes_NoWifiDirect() 137 val tracker = makeTracker() in testSupl() constant [all …]
|
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/action/ |
D | ActionServiceSystemTest.java | 57 final ResultTracker tracker = (ResultTracker) data; in onActionSucceeded() local 58 tracker.completionResult = result; in onActionSucceeded() 59 synchronized(tracker) { in onActionSucceeded() 60 tracker.notifyAll(); in onActionSucceeded() 69 final ResultTracker tracker = (ResultTracker) data; in onActionFailed() local 70 tracker.completionResult = result; in onActionFailed() 71 synchronized(tracker) { in onActionFailed() 72 tracker.notifyAll(); in onActionFailed() 81 final ResultTracker tracker = (ResultTracker) data; in onActionExecuted() local 82 tracker.executionResult = result; in onActionExecuted() [all …]
|
D | ActionServiceTest.java | 60 final ResultTracker tracker = (ResultTracker) data; in onActionSucceeded() local 61 tracker.completionResult = result; in onActionSucceeded() 62 synchronized(tracker) { in onActionSucceeded() 63 tracker.notifyAll(); in onActionSucceeded() 75 final ResultTracker tracker = (ResultTracker) data; in onActionFailed() local 76 tracker.completionResult = result; in onActionFailed() 77 synchronized(tracker) { in onActionFailed() 78 tracker.notifyAll(); in onActionFailed() 87 final ResultTracker tracker = new ResultTracker(); in testChatServiceCreatesIntentAndExecutesAction() local 89 final TestChatActionMonitor monitor = new TestChatActionMonitor(null, tracker, this, this); in testChatServiceCreatesIntentAndExecutesAction()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | TimerHandler.java | 86 public void startKeyRepeatTimerOf(@Nonnull final PointerTracker tracker, final int repeatCount, in startKeyRepeatTimerOf() argument 88 final Key key = tracker.getKey(); in startKeyRepeatTimerOf() 93 obtainMessage(MSG_REPEAT_KEY, key.getCode(), repeatCount, tracker), delay); in startKeyRepeatTimerOf() 96 private void cancelKeyRepeatTimerOf(final PointerTracker tracker) { in cancelKeyRepeatTimerOf() argument 97 removeMessages(MSG_REPEAT_KEY, tracker); in cancelKeyRepeatTimerOf() 110 public void startLongPressTimerOf(@Nonnull final PointerTracker tracker, final int delay) { in startLongPressTimerOf() argument 111 final Key key = tracker.getKey(); in startLongPressTimerOf() 119 sendMessageDelayed(obtainMessage(messageId, tracker), delay); in startLongPressTimerOf() 123 public void cancelLongPressTimersOf(@Nonnull final PointerTracker tracker) { in cancelLongPressTimersOf() argument 124 removeMessages(MSG_LONGPRESS_KEY, tracker); in cancelLongPressTimersOf() [all …]
|
D | TimerProxy.java | 43 public void startKeyRepeatTimerOf(@Nonnull PointerTracker tracker, int repeatCount, int delay); in startKeyRepeatTimerOf() argument 52 public void startLongPressTimerOf(@Nonnull PointerTracker tracker, int delay); in startLongPressTimerOf() argument 58 public void cancelLongPressTimersOf(@Nonnull PointerTracker tracker); in cancelLongPressTimersOf() argument 69 public void cancelKeyTimersOf(@Nonnull PointerTracker tracker); in cancelKeyTimersOf() argument 91 public void startUpdateBatchInputTimer(@Nonnull PointerTracker tracker); in startUpdateBatchInputTimer() argument 97 public void cancelUpdateBatchInputTimer(@Nonnull PointerTracker tracker); in cancelUpdateBatchInputTimer() argument 110 public void startKeyRepeatTimerOf(@Nonnull PointerTracker tracker, int repeatCount, in startKeyRepeatTimerOf() argument 113 public void startLongPressTimerOf(@Nonnull PointerTracker tracker, int delay) {} in startLongPressTimerOf() argument 115 public void cancelLongPressTimersOf(@Nonnull PointerTracker tracker) {} in cancelLongPressTimersOf() argument 119 public void cancelKeyTimersOf(@Nonnull PointerTracker tracker) {} in cancelKeyTimersOf() argument [all …]
|
D | GestureTrailsDrawingPreview.java | 157 public void setPreviewPosition(final PointerTracker tracker) { in setPreviewPosition() argument 163 trail = mGestureTrails.get(tracker.mPointerId); in setPreviewPosition() 166 mGestureTrails.put(tracker.mPointerId, trail); in setPreviewPosition() 169 trail.addStroke(tracker.getGestureStrokeDrawingPoints(), tracker.getDownTime()); in setPreviewPosition()
|
D | DrawingProxy.java | 49 public MoreKeysPanel showMoreKeysKeyboard(@Nonnull Key key, @Nonnull PointerTracker tracker); in showMoreKeysKeyboard() argument 65 public void showSlidingKeyInputPreview(@Nullable PointerTracker tracker); in showSlidingKeyInputPreview() argument 73 public void showGestureTrail(@Nonnull PointerTracker tracker, boolean showsFloatingPreviewText); in showGestureTrail() argument
|
/packages/modules/StatsD/statsd/tests/anomaly/ |
D | AlarmTracker_test.cpp | 47 AlarmTracker tracker(startMillis, startMillis, alarm, kConfigKey, subscriberAlarmMonitor); in TEST() local 49 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST() 55 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST() 56 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST() 57 EXPECT_EQ(tracker.getAlarmTimestampSec(), nextAlarmTime); in TEST() 63 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST() 65 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST() 66 EXPECT_EQ(tracker.getAlarmTimestampSec(), nextAlarmTime); in TEST() 73 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST() 75 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST() [all …]
|
D | AnomalyTracker_test.cpp | 71 bool detectAnomaliesPass(AnomalyTracker& tracker, in detectAnomaliesPass() argument 77 if (!tracker.detectAnomaly(bucketNum, key, getBucketValue(currentBucket, key))) { in detectAnomaliesPass() 82 if (tracker.detectAnomaly(bucketNum, key, getBucketValue(currentBucket, key))) { in detectAnomaliesPass() 90 void detectAndDeclareAnomalies(AnomalyTracker& tracker, in detectAndDeclareAnomalies() argument 95 tracker.detectAndDeclareAnomaly(eventTimestamp, bucketNum, 0 /*metric_id*/, kv.first, in detectAndDeclareAnomalies() 104 void checkRefractoryTimes(AnomalyTracker& tracker, in checkRefractoryTimes() argument 111 EXPECT_LT(tracker.getRefractoryPeriodEndsSec(kv.first) * NS_PER_SEC, in checkRefractoryTimes() 115 EXPECT_EQ(tracker.getRefractoryPeriodEndsSec(kv.first), in checkRefractoryTimes()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | ConnectedClientsTrackerTest.kt | 76 val tracker = ConnectedClientsTracker(clock) in testUpdateConnectedClients() constant 77 assertFalse(tracker.updateConnectedClients(servers, null)) in testUpdateConnectedClients() 81 assertSameClients(listOf(client1), assertNewClients(tracker, servers, listOf(wifiClient1))) in testUpdateConnectedClients() 86 assertNewClients(tracker, servers, listOf(wifiClient1, wifiClient2))) in testUpdateConnectedClients() 90 assertSameClients(listOf(client1, client2), assertNewClients(tracker, servers, null)) in testUpdateConnectedClients() 95 assertNewClients(tracker, servers, null)) in testUpdateConnectedClients() 99 assertNewClients(tracker, servers, listOf(wifiClient1))) in testUpdateConnectedClients() 102 assertSameClients(listOf(client3), assertNewClients(tracker, servers, emptyList())) in testUpdateConnectedClients() 106 assertNewClients(tracker, servers, listOf(wifiClient1))) in testUpdateConnectedClients() 112 assertNewClients(tracker, servers, null)) in testUpdateConnectedClients() [all …]
|
/packages/modules/adb/ |
D | transport.cpp | 611 static void device_tracker_remove(device_tracker* tracker) { in device_tracker_remove() argument 617 if (node == tracker) { in device_tracker_remove() 627 device_tracker* tracker = (device_tracker*)socket; in device_tracker_close() local 630 D("device tracker %p removed", tracker); in device_tracker_close() 635 device_tracker_remove(tracker); in device_tracker_close() 636 delete tracker; in device_tracker_close() 645 static int device_tracker_send(device_tracker* tracker, const std::string& string) { in device_tracker_send() argument 646 asocket* peer = tracker->socket.peer; in device_tracker_send() 658 device_tracker* tracker = reinterpret_cast<device_tracker*>(socket); in device_tracker_ready() local 662 if (tracker->update_needed) { in device_tracker_ready() [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/net/util/ |
D | MultinetworkPolicyTrackerTest.kt | 93 private val tracker = MultinetworkPolicyTracker(context, null /* handler */) constant 98 tracker.updateMeteredMultipathPreference() in assertMultipathPreference() 99 assertEquals(preference, tracker.meteredMultipathPreference) in assertMultipathPreference() 117 assertTrue(tracker.updateAvoidBadWifi()) in testUpdateAvoidBadWifi() 118 assertFalse(tracker.avoidBadWifi) in testUpdateAvoidBadWifi() 121 assertTrue(tracker.updateAvoidBadWifi()) in testUpdateAvoidBadWifi() 122 assertTrue(tracker.avoidBadWifi) in testUpdateAvoidBadWifi() 153 assertFalse(tracker.avoidBadWifi) in testOnActiveDataSubscriptionIdChanged() 154 assertEquals(MULTIPATH_PREFERENCE_PERFORMANCE, tracker.meteredMultipathPreference) in testOnActiveDataSubscriptionIdChanged()
|
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/ |
D | output.py | 40 for tracker in tracker_map.values(): 41 if not tracker.is_complete(): 125 tracker = tracker_map[pid] 126 tracker.print_stats() 128 tracker = tracker_map[pid] 129 tracker.print() 140 tracker = tracker_map[pid] 141 tracker.reset()
|
/packages/services/Telephony/testapps/EmbmsTestStreamingApp/src/com/android/phone/testapps/embmsfrontend/ |
D | EmbmsTestStreamingApp.java | 115 StreamingServiceTracker tracker = mStreamingServiceTrackerById.get(serviceId); in getView() local 117 result.setText(tracker == null ? "" : tracker.toString()); in getView() 124 StreamingServiceTracker tracker = mStreamingServiceTrackerById.get(serviceId); in getDropDownView() local 126 result.setText(tracker.toString()); in getDropDownView() 184 StreamingServiceTracker tracker = mStreamingServiceTrackerById.get(serviceId); in onCreate() 186 setStreamStateDisplay(String.valueOf(tracker.getState())); in onCreate() 187 setUriDisplay(tracker.getUri()); in onCreate() 211 StreamingServiceTracker tracker = new StreamingServiceTracker(this, serviceInfo); in onCreate() local 212 if (tracker.startStreaming(mStreamingManager)) { in onCreate() 213 mStreamingServiceTrackerById.put(serviceInfo.getServiceId(), tracker); in onCreate() local
|
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/ |
D | metrics_manager_util_test.cpp | 705 sp<AtomMatchingTracker> tracker = createAtomMatchingTracker(matcher, index, uidMap); in TEST() local 706 EXPECT_NE(tracker, nullptr); in TEST() 708 EXPECT_TRUE(tracker->mInitialized); in TEST() 709 EXPECT_EQ(tracker->getId(), id); in TEST() 710 EXPECT_EQ(tracker->mIndex, index); in TEST() 711 const set<int>& atomIds = tracker->getAtomIds(); in TEST() 727 sp<AtomMatchingTracker> tracker = createAtomMatchingTracker(matcher, index, uidMap); in TEST() local 728 EXPECT_NE(tracker, nullptr); in TEST() 731 EXPECT_FALSE(tracker->mInitialized); in TEST() 732 EXPECT_EQ(tracker->getId(), id); in TEST() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/pm/ |
D | InstallSessionHelper.java | 241 InstallSessionTracker tracker = new InstallSessionTracker(this, callback); in registerInstallTracker() local 244 mInstaller.registerSessionCallback(tracker, MODEL_EXECUTOR.getHandler()); in registerInstallTracker() 246 mLauncherApps.registerPackageInstallerSessionCallback(MODEL_EXECUTOR, tracker); in registerInstallTracker() 248 return tracker; in registerInstallTracker() 251 void unregister(InstallSessionTracker tracker) { in unregister() argument 253 mInstaller.unregisterSessionCallback(tracker); in unregister() 255 mLauncherApps.unregisterPackageInstallerSessionCallback(tracker); in unregister()
|
/packages/modules/DnsResolver/ |
D | PrivateDnsConfiguration.cpp | 92 auto& tracker = mPrivateDnsTransports[netId]; in set() local 96 if (tracker.find(identity) == tracker.end()) { in set() 97 tracker[identity] = std::move(server); in set() 101 for (auto& [identity, server] : tracker) { in set() 301 auto& tracker = netPair->second; in recordPrivateDnsValidation() local 302 auto serverPair = tracker.find(identity); in recordPrivateDnsValidation() 303 if (serverPair == tracker.end()) { in recordPrivateDnsValidation()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | MainKeyboardView.java | 524 public void showSlidingKeyInputPreview(@Nullable final PointerTracker tracker) { in showSlidingKeyInputPreview() argument 526 if (tracker != null) { in showSlidingKeyInputPreview() 527 mSlidingKeyInputDrawingPreview.setPreviewPosition(tracker); in showSlidingKeyInputPreview() 558 public void showGestureTrail(@Nonnull final PointerTracker tracker, in showGestureTrail() argument 562 mGestureFloatingTextDrawingPreview.setPreviewPosition(tracker); in showGestureTrail() 564 mGestureTrailsDrawingPreview.setPreviewPosition(tracker); in showGestureTrail() 597 @Nonnull final PointerTracker tracker) { in showMoreKeysKeyboard() argument 628 tracker.getLastCoordinates(lastCoords); in showMoreKeysKeyboard() 716 final PointerTracker tracker = PointerTracker.getPointerTracker(id); in processMotionEvent() local 719 if (isShowingMoreKeysPanel() && !tracker.isShowingMoreKeysPanel() in processMotionEvent() [all …]
|
/packages/providers/MediaProvider/jni/ |
D | node-inl.h | 132 NodeTracker* tracker) { in Create() argument 138 transforms_reason, lock, ino, tracker); in Create() 144 NodeTracker* tracker) { in CreateRoot() argument 148 0 /* transforms_reason */, lock, ino, tracker); in CreateRoot() 157 static inline node* FromInode(__u64 ino, const NodeTracker* tracker) { in FromInode() argument 158 tracker->CheckTracked(ino); in FromInode() 370 const int transforms_reason, std::recursive_mutex* lock, ino_t ino, NodeTracker* tracker) in node() argument 383 tracker_(tracker) { in node()
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | CountMetricProducer.cpp | 349 for (auto& tracker : mAnomalyTrackers) { in onMatchedLogEventInternalLocked() local 355 tracker->detectAndDeclareAnomaly(eventTimeNs, mCurrentBucketNum, mMetricId, eventKey, in onMatchedLogEventInternalLocked() 428 for (auto& tracker : mAnomalyTrackers) { in flushCurrentBucketLocked() local 429 tracker->addPastBucket(mCurrentFullCounters, mCurrentBucketNum); in flushCurrentBucketLocked() 434 for (auto& tracker : mAnomalyTrackers) { in flushCurrentBucketLocked() local 435 tracker->addPastBucket(mCurrentSlicedCounter, mCurrentBucketNum); in flushCurrentBucketLocked()
|