/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/cmds/statsd/tests/metrics/ |
D | OringDurationTracker_test.cpp | 65 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, dimensionInCondition, 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, &buckets); in TEST() 97 OringDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, 1, dimensionInCondition, in TEST() local 101 tracker.noteStart(kEventKey1, true, eventStartTimeNs, ConditionKey()); in TEST() 102 tracker.noteStart(kEventKey1, true, eventStartTimeNs + 10, ConditionKey()); // overlapping wl in TEST() [all …]
|
D | MaxDurationTracker_test.cpp | 66 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, -1, dimensionInCondition, 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, &buckets); in TEST() 102 MaxDurationTracker tracker(kConfigKey, metricId, eventKey, wizard, -1, dimensionInCondition, in TEST() local 106 tracker.noteStart(key1, true, bucketStartTimeNs + 1, ConditionKey()); in TEST() 109 tracker.noteStart(key2, true, bucketStartTimeNs + 20, ConditionKey()); in TEST() [all …]
|
/frameworks/base/cmds/statsd/tests/anomaly/ |
D | AlarmTracker_test.cpp | 44 AlarmTracker tracker(startMillis, startMillis, alarm, kConfigKey, subscriberAlarmMonitor); in TEST() local 46 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST() 52 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST() 53 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST() 54 EXPECT_EQ(tracker.getAlarmTimestampSec(), nextAlarmTime); in TEST() 60 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST() 62 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST() 63 EXPECT_EQ(tracker.getAlarmTimestampSec(), nextAlarmTime); in TEST() 70 tracker.informAlarmsFired(currentTimeSec * NS_PER_SEC, firedAlarmSet); in TEST() 72 EXPECT_EQ(tracker.mAlarmSec, nextAlarmTime); in TEST() [all …]
|
/frameworks/base/cmds/statsd/tests/condition/ |
D | StateTracker_test.cpp | 63 StateTracker tracker(ConfigKey(12, 123), 123, 0, getUidProcStatePredicate(), in TEST() local 75 tracker.evaluateCondition(event, matcherState, allPredicates, conditionCache, changedCache); in TEST() 76 EXPECT_EQ(1ULL, tracker.mLastChangedToTrueDimensions.size()); in TEST() 77 EXPECT_EQ(0ULL, tracker.mLastChangedToFalseDimensions.size()); in TEST() 82 tracker.evaluateCondition(event, matcherState, allPredicates, conditionCache, changedCache); in TEST() 83 EXPECT_EQ(0ULL, tracker.mLastChangedToTrueDimensions.size()); in TEST() 84 EXPECT_EQ(0ULL, tracker.mLastChangedToFalseDimensions.size()); in TEST() 92 tracker.evaluateCondition(event2, matcherState, allPredicates, conditionCache, changedCache); in TEST() 93 EXPECT_EQ(1ULL, tracker.mLastChangedToTrueDimensions.size()); in TEST() 94 EXPECT_EQ(1ULL, tracker.mLastChangedToFalseDimensions.size()); in TEST() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaSMSDispatcher.java | 101 public void sendSms(SmsTracker tracker) { in sendSms() argument 106 + " mRetryCount=" + tracker.mRetryCount in sendSms() 107 + " mImsRetry=" + tracker.mImsRetry in sendSms() 108 + " mMessageRef=" + tracker.mMessageRef in sendSms() 109 + " mUsesImsServiceForIms=" + tracker.mUsesImsServiceForIms in sendSms() 114 tracker.onFailed(mContext, getNotInServiceError(ss), NO_ERROR_CODE); in sendSms() 118 Message reply = obtainMessage(EVENT_SEND_SMS_COMPLETE, tracker); in sendSms() 119 byte[] pdu = (byte[]) tracker.getData().get("pdu"); in sendSms() 138 if (0 == tracker.mImsRetry && !isIms() || imsSmsDisabled || tracker.mUsesImsServiceForIms) { in sendSms() 139 if (tracker.mRetryCount == 0 && tracker.mExpectMore) { in sendSms() [all …]
|
/frameworks/base/packages/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 …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
D | GsmSMSDispatcher.java | 148 protected void sendSms(SmsTracker tracker) { in sendSms() argument 153 + " mRetryCount=" + tracker.mRetryCount in sendSms() 154 + " mImsRetry=" + tracker.mImsRetry in sendSms() 155 + " mMessageRef=" + tracker.mMessageRef in sendSms() 156 + " mUsesImsServiceForIms=" + tracker.mUsesImsServiceForIms in sendSms() 164 tracker.onFailed(mContext, getNotInServiceError(ss), NO_ERROR_CODE); in sendSms() 169 Message reply = obtainMessage(EVENT_SEND_SMS_COMPLETE, tracker); in sendSms() 170 HashMap<String, Object> map = tracker.getData(); in sendSms() 173 if (tracker.mRetryCount > 0) { in sendSms() 179 pdu[1] = (byte) tracker.mMessageRef; // TP-MR in sendSms() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ImsSmsDispatcher.java | 125 SmsTracker tracker = mTrackers.get(token); 126 if (tracker == null) { 129 tracker.mMessageRef = messageRef; 132 if (tracker.mDeliveryIntent != null) { 134 mSmsDispatchersController.putDeliveryPendingTracker(tracker); 136 tracker.onSent(mContext); 138 mPhone.notifySmsSent(tracker.mDestAddress); 141 tracker.onFailed(mContext, reason, networkReasonCode); 145 tracker.mRetryCount += 1; 146 sendSms(tracker); [all …]
|
D | InboundSmsHandler.java | 743 InboundSmsTracker tracker; in dispatchNormalMessage() local 753 tracker = TelephonyComponentFactory.getInstance() in dispatchNormalMessage() 765 tracker = TelephonyComponentFactory.getInstance() in dispatchNormalMessage() 774 if (VDBG) log("created tracker: " + tracker); in dispatchNormalMessage() 778 return addTrackerToRawTableAndSendMessage(tracker, in dispatchNormalMessage() 779 tracker.getDestPort() == -1 /* de-dup if text message */); in dispatchNormalMessage() 789 protected int addTrackerToRawTableAndSendMessage(InboundSmsTracker tracker, boolean deDup) { in addTrackerToRawTableAndSendMessage() argument 790 switch(addTrackerToRawTable(tracker, deDup)) { in addTrackerToRawTableAndSendMessage() 792 sendMessage(EVENT_BROADCAST_SMS, tracker); in addTrackerToRawTableAndSendMessage() 812 private boolean processMessagePart(InboundSmsTracker tracker) { in processMessagePart() argument [all …]
|
D | SmsBroadcastUndelivered.java | 188 InboundSmsTracker tracker; in scanRawTable() local 190 tracker = TelephonyComponentFactory.getInstance() in scanRawTable() 198 if (tracker.getMessageCount() == 1) { in scanRawTable() 200 broadcastSms(tracker, cdmaInboundSmsHandler, gsmInboundSmsHandler); in scanRawTable() 202 SmsReferenceKey reference = new SmsReferenceKey(tracker); in scanRawTable() 206 if (tracker.getTimestamp() < oldMessageTimestamp) { in scanRawTable() 213 if (newCount == tracker.getMessageCount()) { in scanRawTable() 217 broadcastSms(tracker, cdmaInboundSmsHandler, gsmInboundSmsHandler); in scanRawTable() 275 private static void broadcastSms(InboundSmsTracker tracker, in broadcastSms() argument 279 if (tracker.is3gpp2()) { in broadcastSms() [all …]
|
D | SmsDispatchersController.java | 123 public void putDeliveryPendingTracker(SMSDispatcher.SmsTracker tracker) { in putDeliveryPendingTracker() argument 124 if (isCdmaFormat(tracker.mFormat)) { in putDeliveryPendingTracker() 125 mDeliveryPendingMapFor3GPP2.put(tracker.mMessageRef, tracker); in putDeliveryPendingTracker() 127 mDeliveryPendingMapFor3GPP.put(tracker.mMessageRef, tracker); in putDeliveryPendingTracker() 451 public void sendRetrySms(SMSDispatcher.SmsTracker tracker) { in sendRetrySms() argument 452 String oldFormat = tracker.mFormat; in sendRetrySms() 455 if (!tracker.mUsesImsServiceForIms && mImsSmsDispatcher.isAvailable()) { in sendRetrySms() 473 HashMap map = tracker.getData(); in sendRetrySms() 482 tracker.onFailed(mContext, SmsManager.RESULT_SMS_SEND_RETRY_FAILED, NO_ERROR_CODE); in sendRetrySms() 496 scAddr, destAddr, text, (tracker.mDeliveryIntent != null), null); in sendRetrySms() [all …]
|
D | SMSDispatcher.java | 295 for (SmsTracker tracker : trackers) { in handleMessage() 296 sendSms(tracker); in handleMessage() 357 protected SmsSender(SmsTracker tracker) { in SmsSender() argument 358 mTracker = tracker; in SmsSender() 379 public TextSmsSender(SmsTracker tracker) { in TextSmsSender() argument 380 super(tracker); in TextSmsSender() 416 public DataSmsSender(SmsTracker tracker) { in DataSmsSender() argument 417 super(tracker); in DataSmsSender() 500 private void processSendSmsResponse(SmsTracker tracker, int result, int messageRef) { in processSendSmsResponse() argument 501 if (tracker == null) { in processSendSmsResponse() [all …]
|
/frameworks/base/media/apex/java/android/media/ |
D | CloseGuard.java | 195 public static void setTracker(Tracker tracker) { in setTracker() argument 196 currentTracker = tracker; in setTracker() 233 Tracker tracker = currentTracker; in open() local 234 if (tracker != null) { in open() 235 tracker.open(stack); in open() 249 Tracker tracker = currentTracker; in close() local 250 if (tracker != null && closerNameOrAllocationInfo instanceof Throwable) { in close() 252 tracker.close((Throwable) closerNameOrAllocationInfo); in close()
|
/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/ml/nn/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()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsStrongAuth.java | 72 private void handleAddStrongAuthTracker(IStrongAuthTracker tracker) { in handleAddStrongAuthTracker() argument 73 mTrackers.register(tracker); in handleAddStrongAuthTracker() 79 tracker.onStrongAuthRequiredChanged(value, key); in handleAddStrongAuthTracker() 86 private void handleRemoveStrongAuthTracker(IStrongAuthTracker tracker) { in handleRemoveStrongAuthTracker() argument 87 mTrackers.unregister(tracker); in handleRemoveStrongAuthTracker() 154 public void registerStrongAuthTracker(IStrongAuthTracker tracker) { in registerStrongAuthTracker() argument 155 mHandler.obtainMessage(MSG_REGISTER_TRACKER, tracker).sendToTarget(); in registerStrongAuthTracker() 158 public void unregisterStrongAuthTracker(IStrongAuthTracker tracker) { in unregisterStrongAuthTracker() argument 159 mHandler.obtainMessage(MSG_UNREGISTER_TRACKER, tracker).sendToTarget(); in unregisterStrongAuthTracker()
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | SliceProviderPermissions.java | 50 public SliceProviderPermissions(@NonNull PkgUser pkg, @NonNull DirtyTracker tracker) { in SliceProviderPermissions() argument 52 mTracker = tracker; in SliceProviderPermissions() 100 public static SliceProviderPermissions createFrom(XmlPullParser parser, DirtyTracker tracker) in createFrom() argument 109 SliceProviderPermissions provider = new SliceProviderPermissions(pkgUser, tracker); in createFrom() 139 public SliceAuthority(String authority, DirtyTracker tracker) { in SliceAuthority() argument 141 mTracker = tracker; in SliceAuthority()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | LeakDetectorTest.java | 53 private CollectionWaiter trackObjectWith(Consumer<Object> tracker) { in trackObjectWith() argument 56 tracker.accept(mObject); in trackObjectWith() 61 BiConsumer<? super Collection<?>, String> tracker) { in trackCollectionWith() argument 64 tracker.accept(mCollection, "tag"); in trackCollectionWith()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | BrightnessTrackerTest.java | 406 BrightnessTracker tracker = new BrightnessTracker(InstrumentationRegistry.getContext(), in testReadEvents() local 440 tracker.readEventsLocked(getInputStream(eventFile)); in testReadEvents() 441 List<BrightnessChangeEvent> events = tracker.getEvents(0, true).getList(); in testReadEvents() 458 events = tracker.getEvents(1, true).getList(); in testReadEvents() 480 events = tracker.getEvents(0, true).getList(); in testReadEvents() 505 BrightnessTracker tracker = new BrightnessTracker(InstrumentationRegistry.getContext(), in testFailedRead() local 509 tracker.readEventsLocked(getInputStream(eventFile)); in testFailedRead() 513 assertEquals(0, tracker.getEvents(0, true).getList().size()); in testFailedRead() 524 tracker.readEventsLocked(getInputStream(eventFile)); in testFailedRead() 528 assertEquals(0, tracker.getEvents(0, true).getList().size()); in testFailedRead() [all …]
|
/frameworks/base/tools/aapt2/tools/consumers/ |
D | duplicates.py | 17 tracker = ResourceDefinitionLocator(parser) 18 parser.StartElementHandler = tracker.start_element 19 parser.EndElementHandler = tracker.end_element 28 for res_name, entries in tracker.resource_definitions.iteritems():
|
/frameworks/native/libs/gui/ |
D | StreamSplitter.cpp | 210 const sp<BufferTracker>& tracker = mBuffers.editValueFor(buffer->getId()); in onBufferReleasedByOutput() local 214 tracker->mergeFence(fence); in onBufferReleasedByOutput() 217 size_t releaseCount = tracker->incrementReleaseCountLocked(); in onBufferReleasedByOutput() 233 status = mInput->attachBuffer(&consumerSlot, tracker->getBuffer()); in onBufferReleasedByOutput() 238 EGL_NO_DISPLAY, EGL_NO_SYNC_KHR, tracker->getMergedFence()); in onBufferReleasedByOutput()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | WifiTrackerFactory.java | 32 public static void setTestingWifiTracker(WifiTracker tracker) { in setTestingWifiTracker() argument 33 sTestingWifiTracker = tracker; in setTestingWifiTracker()
|
/frameworks/base/cmds/statsd/src/metrics/ |
D | CountMetricProducer.cpp | 300 for (auto& tracker : mAnomalyTrackers) { in onMatchedLogEventInternalLocked() local 306 tracker->detectAndDeclareAnomaly(eventTimeNs, mCurrentBucketNum, mMetricId, eventKey, in onMatchedLogEventInternalLocked() 358 for (auto& tracker : mAnomalyTrackers) { in flushCurrentBucketLocked() local 359 tracker->addPastBucket(mCurrentFullCounters, mCurrentBucketNum); in flushCurrentBucketLocked() 364 for (auto& tracker : mAnomalyTrackers) { in flushCurrentBucketLocked() local 365 tracker->addPastBucket(mCurrentSlicedCounter, mCurrentBucketNum); in flushCurrentBucketLocked()
|