/packages/modules/NetworkStack/tests/unit/src/com/android/net/module/util/ |
D | TrackRecordTest.kt | 55 val record = ArrayTrackRecord<Int>() in <lambda>() constant 56 assertEquals(0, record.size) in <lambda>() 57 repeat(repeats) { i -> record.add(i + 2) } in <lambda>() 58 assertEquals(repeats, record.size) in <lambda>() 59 record.add(2) in <lambda>() 60 assertEquals(repeats + 1, record.size) in <lambda>() 62 assertEquals(11, record[9]) in <lambda>() 63 assertEquals(11, record.getOrNull(9)) in <lambda>() 64 assertEquals(2, record[record.size - 1]) in <lambda>() 65 assertEquals(2, record.getOrNull(record.size - 1)) in <lambda>() [all …]
|
/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_sdp.cpp | 47 bluetooth_sdp_record* record); 156 bluetooth_sdp_record* record = &records[i]; in sdp_search_callback() local 158 if (record->hdr.service_name_length > 0) { in sdp_search_callback() 159 ALOGD("%s, ServiceName: %s", __func__, record->mas.hdr.service_name); in sdp_search_callback() 161 (jstring)sCallbackEnv->NewStringUTF(record->mas.hdr.service_name)); in sdp_search_callback() 168 addr.get(), uuid.get(), (jint)record->mas.mas_instance_id, in sdp_search_callback() 169 (jint)record->mas.hdr.l2cap_psm, in sdp_search_callback() 170 (jint)record->mas.hdr.rfcomm_channel_number, in sdp_search_callback() 171 (jint)record->mas.hdr.profile_version, in sdp_search_callback() 172 (jint)record->mas.supported_features, in sdp_search_callback() [all …]
|
/packages/apps/Tag/src/com/android/apps/tag/message/ |
D | NdefMessageParser.java | 19 import com.android.apps.tag.record.ImageRecord; 20 import com.android.apps.tag.record.MimeRecord; 21 import com.android.apps.tag.record.ParsedNdefRecord; 22 import com.android.apps.tag.record.SmartPoster; 23 import com.android.apps.tag.record.TextRecord; 24 import com.android.apps.tag.record.UnknownRecord; 25 import com.android.apps.tag.record.UriRecord; 26 import com.android.apps.tag.record.VCardRecord; 53 for (NdefRecord record : records) { in getRecords() 54 if (SmartPoster.isPoster(record)) { in getRecords() [all …]
|
D | ParsedNdefMessage.java | 20 import com.android.apps.tag.record.ParsedNdefRecord; 21 import com.android.apps.tag.record.SmartPoster; 22 import com.android.apps.tag.record.UriRecord; 57 ParsedNdefRecord record = mRecords.get(0); in getSnippet() local 59 if (record instanceof UriRecord) { in getSnippet() 76 record = mRecords.get(smartPosterRecord); in getSnippet() 80 return record.getSnippet(context, locale); in getSnippet()
|
/packages/services/Car/service/src/com/android/car/ |
D | BluetoothProfileInhibitManager.java | 251 InhibitRecord record = new InhibitRecord(params, RESTORED_PROFILE_INHIBIT_TOKEN); in load() local 252 mProfileInhibits.put(params, record); in load() 253 mRestoredInhibits.add(record); in load() 313 InhibitRecord record = new InhibitRecord(params, token); in requestProfileInhibit() local 314 return addInhibitRecord(record); in requestProfileInhibit() 332 InhibitRecord record; in releaseProfileInhibit() local 333 record = findInhibitRecord(params, token); in releaseProfileInhibit() 335 if (record == null) { in releaseProfileInhibit() 340 return record.removeSelf(); in releaseProfileInhibit() 346 private boolean addInhibitRecord(InhibitRecord record) { in addInhibitRecord() argument [all …]
|
/packages/services/Car/car-lib/src/android/car/storagemonitoring/ |
D | IoStatsEntry.java | 93 public IoStatsEntry(UidIoRecord record, long runtimeMillis) { in IoStatsEntry() argument 94 uid = record.uid; in IoStatsEntry() 96 foreground = new IoStatsEntry.Metrics(record.foreground_rchar, in IoStatsEntry() 97 record.foreground_wchar, in IoStatsEntry() 98 record.foreground_read_bytes, in IoStatsEntry() 99 record.foreground_write_bytes, in IoStatsEntry() 100 record.foreground_fsync); in IoStatsEntry() 101 background = new IoStatsEntry.Metrics(record.background_rchar, in IoStatsEntry() 102 record.background_wchar, in IoStatsEntry() 103 record.background_read_bytes, in IoStatsEntry() [all …]
|
/packages/apps/TV/src/com/android/tv/data/ |
D | WatchedHistoryManager.java | 79 WatchedRecord record = 83 if (record != null) { 84 mWatchedHistory.add(record); 86 mListener.onNewRecordAdded(record); 147 WatchedRecord record = in loadWatchedHistory() local 149 if (record != null) { in loadWatchedHistory() 150 mWatchedHistory.add(record); in loadWatchedHistory() 155 WatchedRecord record = in loadWatchedHistory() local 157 if (record != null) { in loadWatchedHistory() 158 mWatchedHistory.add(record); in loadWatchedHistory() [all …]
|
/packages/modules/DnsResolver/ |
D | DnsQueryLog.cpp | 61 void DnsQueryLog::push(Record&& record) { in push() argument 63 mQueue.push_back(std::move(record)); in push() 75 for (const auto& record : mQueue) { in dump() local 76 if (now - record.timestamp > mValidityTimeMs) continue; in dump() 78 const std::string maskedHostname = maskHostname(record.hostname); in dump() 79 const std::string maskedIpsStr = maskIps(record.addrs); in dump() 80 const std::string time = timestampToString(record.timestamp); in dump() 82 record.netId, record.uid, record.pid, maskedHostname.c_str(), in dump() 83 maskedIpsStr.c_str(), record.timeTaken); in dump()
|
D | DnsStats.cpp | 102 void StatsRecords::push(const Record& record) { in push() argument 103 updateStatsData(record, true); in push() 104 mRecords.push_back(record); in push() 113 updatePenalty(record); in push() 116 void StatsRecords::updateStatsData(const Record& record, const bool add) { in updateStatsData() argument 117 const int rcode = record.rcode; in updateStatsData() 121 mStatsData.latencyUs += record.latencyUs; in updateStatsData() 125 mStatsData.latencyUs -= record.latencyUs; in updateStatsData() 130 void StatsRecords::updatePenalty(const Record& record) { in updatePenalty() argument 131 switch (record.rcode) { in updatePenalty() [all …]
|
/packages/apps/Tag/src/com/android/apps/tag/record/ |
D | SmartPoster.java | 17 package com.android.apps.tag.record; 124 public static SmartPoster parse(NdefRecord record) { in parse() argument 125 Preconditions.checkArgument(record.getTnf() == NdefRecord.TNF_WELL_KNOWN); in parse() 126 Preconditions.checkArgument(Arrays.equals(record.getType(), NdefRecord.RTD_SMART_POSTER)); in parse() 128 NdefMessage subRecords = new NdefMessage(record.getPayload()); in parse() 150 public static boolean isPoster(NdefRecord record) { in isPoster() argument 152 parse(record); in isPoster() 225 for (NdefRecord record : records) { in getByType() 226 if (Arrays.equals(type, record.getType())) { in getByType() 227 return record; in getByType() [all …]
|
D | MimeRecord.java | 17 package com.android.apps.tag.record; 70 public static MimeRecord parse(NdefRecord record) { in parse() argument 71 Preconditions.checkArgument(record.toMimeType() != null); in parse() 72 return new MimeRecord(record.toMimeType(), record.getPayload()); in parse() 75 public static boolean isMime(NdefRecord record) { in isMime() argument 76 return record.toMimeType() != null; in isMime()
|
D | TextRecord.java | 17 package com.android.apps.tag.record; 80 public static TextRecord parse(NdefRecord record) { in parse() argument 81 Preconditions.checkArgument(record.getTnf() == NdefRecord.TNF_WELL_KNOWN); in parse() 82 Preconditions.checkArgument(Arrays.equals(record.getType(), NdefRecord.RTD_TEXT)); in parse() 85 byte[] payload = record.getPayload(); in parse() 119 public static boolean isText(NdefRecord record) { in isText() argument 121 parse(record); in isText()
|
D | ImageRecord.java | 17 package com.android.apps.tag.record; 53 public static ImageRecord parse(NdefRecord record) { in parse() argument 54 String mimeType = record.toMimeType(); in parse() 61 byte[] content = record.getPayload(); in parse() 69 public static boolean isImage(NdefRecord record) { in isImage() argument 71 parse(record); in isImage()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/data/ |
D | WatchedHistoryManagerTest.java | 79 WatchedRecord record = mWatchedHistoryManager.getRecord(0); in testLogChannelViewStop() local 82 assertThat(fakeId).isEqualTo(record.channelId); in testLogChannelViewStop() 83 assertThat(time - duration).isEqualTo(record.watchedStartTime); in testLogChannelViewStop() 84 assertThat(duration).isEqualTo(record.duration); in testLogChannelViewStop() 85 assertThat(recordFromSharedPreferences).isEqualTo(record); in testLogChannelViewStop() 101 WatchedRecord record = mWatchedHistoryManager.getRecord(i); in testCircularHistoryQueue() local 104 assertThat(recordFromSharedPreferences).isEqualTo(record); in testCircularHistoryQueue() 105 assertThat(startChannelId + size - 1 - i).isEqualTo(record.channelId); in testCircularHistoryQueue() 126 WatchedRecord record = new WatchedRecord(fakeId, time, duration); in testEncodeDecodeWatchedRecord() local 128 mWatchedHistoryManager.decode(mWatchedHistoryManager.encode(record)); in testEncodeDecodeWatchedRecord() [all …]
|
/packages/modules/NetworkStack/common/moduleutils/src/android/net/util/ |
D | SharedLog.java | 106 Log.e(mTag, record(Category.ERROR, e.toString())); in e() 115 Log.e(mTag, record(Category.ERROR, msg)); in e() 129 Log.e(mTag, record(Category.ERROR, msg + ": " + exception.getMessage()), exception); in e() 138 Log.i(mTag, record(Category.NONE, msg)); in i() 147 Log.w(mTag, record(Category.WARN, msg)); in w() 160 record(Category.NONE, msg); in log() 179 record(Category.MARK, msg); in mark() 182 private String record(Category category, String msg) { in record() method in SharedLog
|
/packages/apps/Settings/src/com/android/settings/ |
D | ResetNetwork.java | 185 for (SubscriptionInfo record : mSubscriptions) { in establishInitialState() 186 if (record.getSubscriptionId() == defaultSubscription) { in establishInitialState() 190 String name = record.getDisplayName().toString(); in establishInitialState() 192 name = record.getNumber(); in establishInitialState() 195 name = record.getCarrierName().toString(); in establishInitialState() 198 name = String.format("MCC:%s MNC:%s Slot:%s Id:%s", record.getMcc(), in establishInitialState() 199 record.getMnc(), record.getSimSlotIndex(), record.getSubscriptionId()); in establishInitialState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | ResetNetwork.java | 185 for (SubscriptionInfo record : mSubscriptions) { in establishInitialState() 186 if (record.getSubscriptionId() == defaultSubscription) { in establishInitialState() 190 String name = record.getDisplayName().toString(); in establishInitialState() 192 name = record.getNumber(); in establishInitialState() 195 name = record.getCarrierName().toString(); in establishInitialState() 198 name = String.format("MCC:%s MNC:%s Slot:%s Id:%s", record.getMcc(), in establishInitialState() 199 record.getMnc(), record.getSimSlotIndex(), record.getSubscriptionId()); in establishInitialState()
|
/packages/apps/Nfc/tests/src/com/android/nfc/snep/ |
D | SnepValidationServerTests.java | 112 NdefRecord record = msg.getRecords()[0]; in doPut() local 113 ByteArrayWrapper id = (record.getId().length > 0) ? in doPut() 114 new ByteArrayWrapper(record.getId()) : DEFAULT_NDEF; in doPut() 122 NdefRecord record = msg.getRecords()[0]; in doGet() local 123 ByteArrayWrapper id = (record.getId().length > 0) ? in doGet() 124 new ByteArrayWrapper(record.getId()) : DEFAULT_NDEF; in doGet()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryFlagParser.java | 40 protected boolean isSet(HistoryItem record) { in isSet() argument 41 return ((mState2 ? record.states2 : record.states) & mFlag) != 0; in isSet() 50 public void onDataPoint(long time, HistoryItem record) { in onDataPoint() argument 51 boolean isSet = isSet(record); in onDataPoint()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatteryFlagParser.java | 40 protected boolean isSet(HistoryItem record) { in isSet() argument 41 return ((mState2 ? record.states2 : record.states) & mFlag) != 0; in isSet() 50 public void onDataPoint(long time, HistoryItem record) { in onDataPoint() argument 51 boolean isSet = isSet(record); in onDataPoint()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsGridAdapter.java | 103 final AccessibilityRecordCompat record = AccessibilityEventCompat in onInitializeAccessibilityEvent() local 105 record.setItemCount(mApps.getNumFilteredApps()); in onInitializeAccessibilityEvent() 106 record.setFromIndex(Math.max(0, in onInitializeAccessibilityEvent() 107 record.getFromIndex() - getRowsNotForAccessibility(record.getFromIndex()))); in onInitializeAccessibilityEvent() 108 record.setToIndex(Math.max(0, in onInitializeAccessibilityEvent() 109 record.getToIndex() - getRowsNotForAccessibility(record.getToIndex()))); in onInitializeAccessibilityEvent()
|
/packages/services/Car/car-lib/src/android/car/ |
D | CarProjectionManager.java | 400 KeyEventHandlerRecord record = mKeyEventHandlers.get(eventHandler); in addKeyEventHandler() local 401 if (record == null) { in addKeyEventHandler() 402 record = new KeyEventHandlerRecord(executor, eventMask); in addKeyEventHandler() 403 mKeyEventHandlers.put(eventHandler, record); in addKeyEventHandler() 405 record.mExecutor = executor; in addKeyEventHandler() 406 record.mSubscribedEvents = eventMask; in addKeyEventHandler() 421 KeyEventHandlerRecord record = mKeyEventHandlers.remove(eventHandler); in removeKeyEventHandler() local 422 if (record != null) { in removeKeyEventHandler() 432 for (KeyEventHandlerRecord record : mKeyEventHandlers.values()) { in updateHandledEventsLocked() 433 events.or(record.mSubscribedEvents); in updateHandledEventsLocked()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | CarStorageMonitoringTest.java | 601 UidIoRecord record = new UidIoRecord(0, in testEventDelivery() local 619 mMockStorageMonitoringInterface.addIoStatsRecord(record); in testEventDelivery() 629 event1.getStats().forEach(stats -> assertTrue(stats.representsSameMetrics(record))); in testEventDelivery() 642 UidIoRecord record = new UidIoRecord(0, in testIntentOnExcessiveWrite() local 654 mMockStorageMonitoringInterface.addIoStatsRecord(record); in testIntentOnExcessiveWrite() 664 UidIoRecord record = new UidIoRecord(0, in testIntentOnExcessiveFsync() local 676 mMockStorageMonitoringInterface.addIoStatsRecord(record); in testIntentOnExcessiveFsync() 686 UidIoRecord record = new UidIoRecord(0, in testZeroWindowDisablesCollection() local 700 mMockStorageMonitoringInterface.addIoStatsRecord(record); in testZeroWindowDisablesCollection() 789 void addIoStatsRecord(UidIoRecord record) { in addIoStatsRecord() argument [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Ringer.java | 535 timer.record("isVolumeOverZero"); in getRingerAttributes() 537 timer.record("shouldRingForContact"); in getRingerAttributes() 539 timer.record("getRingtone"); in getRingerAttributes() 541 timer.record("isSelfManaged"); in getRingerAttributes() 543 timer.record("isSilentRingRequested"); in getRingerAttributes() 546 timer.record("isRingerAudible"); in getRingerAttributes() 555 timer.record("hasExternalRinger"); in getRingerAttributes() 558 timer.record("isTheaterModeOn"); in getRingerAttributes() 560 timer.record("letDialerHandleRinging"); in getRingerAttributes()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | HighUsageDataParser.java | 53 public void onDataPoint(long time, BatteryStats.HistoryItem record) { in onDataPoint() argument 54 if (time == 0 || record.currentTime <= mEndTimeMs - mTimePeriodMs) { in onDataPoint() 57 mLastPeriodBatteryLevel = record.batteryLevel; in onDataPoint() 59 mEndBatteryLevel = record.batteryLevel; in onDataPoint()
|