Home
last modified time | relevance | path

Searched refs:records (Results 1 – 25 of 43) sorted by relevance

12

/packages/services/Car/cpp/evs/manager/1.1/stats/
DStatsCollector.cpp163 if (info->records[id].history.size() > info->maxCacheSize) { in collectLocked()
164 info->records[id].history.pop_front(); in collectLocked()
168 auto delta = snapshot - info->records[id].latest; in collectLocked()
169 info->records[id].history.emplace_back(delta); in collectLocked()
170 info->records[id].latest = snapshot; in collectLocked()
293 if (mCustomCollectionInfo.records.size() > 0) { in startCustomCollection()
304 .records = {}, in startCustomCollection()
339 for (auto& [id, records] : mCustomCollectionInfo.records) { in stopCustomCollection()
345 kSingleIndent, records.history.size(), in stopCustomCollection()
347 auto it = records.history.rbegin(); in stopCustomCollection()
[all …]
DStatsCollector.h73 std::unordered_map<std::string, CollectionRecord> records; member
/packages/services/Mtp/tests/src/com/android/mtp/
DMtpManagerTest.java84 final MtpDeviceRecord[] records = mManager.getDevices(); in testOperationsSupported() local
85 assertEquals(1, records.length); in testOperationsSupported()
86 assertNotNull(records[0].operationsSupported); in testOperationsSupported()
87 getInstrumentation().show(Arrays.toString(records[0].operationsSupported)); in testOperationsSupported()
91 final MtpDeviceRecord[] records = mManager.getDevices(); in testEventsSupported() local
92 assertEquals(1, records.length); in testEventsSupported()
93 assertNotNull(records[0].eventsSupported); in testEventsSupported()
94 getInstrumentation().show(Arrays.toString(records[0].eventsSupported)); in testEventsSupported()
98 final MtpDeviceRecord[] records = mManager.getDevices(); in testDeviceKey() local
99 assertEquals(1, records.length); in testDeviceKey()
[all …]
/packages/services/Mtp/src/com/android/mtp/
DServiceIntentSender.java59 void sendUpdateNotificationIntent(@NonNull MtpDeviceRecord[] records) { in sendUpdateNotificationIntent() argument
60 Preconditions.checkNotNull(records); in sendUpdateNotificationIntent()
63 if (records.length != 0) { in sendUpdateNotificationIntent()
64 final int[] ids = new int[records.length]; in sendUpdateNotificationIntent()
65 final Notification[] notifications = new Notification[records.length]; in sendUpdateNotificationIntent()
66 for (int i = 0; i < records.length; i++) { in sendUpdateNotificationIntent()
67 ids[i] = records[i].deviceId; in sendUpdateNotificationIntent()
68 notifications[i] = createNotification(mContext, records[i]); in sendUpdateNotificationIntent()
DMtpDocumentsProvider.java616 final MtpDeviceRecord[] records = new MtpDeviceRecord[mDeviceToolkits.size()]; in getOpenedDeviceRecordsCache() local
619 records[i] = toolkit.mDeviceRecord; in getOpenedDeviceRecordsCache()
622 return records; in getOpenedDeviceRecordsCache()
/packages/apps/Tag/src/com/android/apps/tag/record/
DSmartPoster.java137 Iterable<ParsedNdefRecord> records = NdefMessageParser.getRecords(recordsRaw); in parse() local
138 UriRecord uri = Iterables.getOnlyElement(Iterables.filter(records, UriRecord.class)); in parse()
139 TextRecord title = getFirstIfExists(records, TextRecord.class); in parse()
140 ImageRecord image = getFirstIfExists(records, ImageRecord.class); in parse()
224 private static NdefRecord getByType(byte[] type, NdefRecord[] records) { in getByType() argument
225 for (NdefRecord record : records) { in getByType()
235 private static RecommendedAction parseRecommendedAction(NdefRecord[] records) { in parseRecommendedAction() argument
236 NdefRecord record = getByType(ACTION_RECORD_TYPE, records); in parseRecommendedAction()
249 private static String parseType(NdefRecord[] records) { in parseType() argument
250 NdefRecord type = getByType(TYPE_TYPE, records); in parseType()
/packages/services/Car/cpp/watchdog/server/src/
DIoPerfCollection.cpp256 if (collectionInfo.records.empty()) { in toString()
261 difftime(collectionInfo.records.back().time, collectionInfo.records.front().time); in toString()
263 duration, collectionInfo.records.size()); in toString()
265 for (size_t i = 0; i < collectionInfo.records.size(); ++i) { in toString()
266 const auto& record = collectionInfo.records[i]; in toString()
288 .records = {}, in init()
292 .records = {}, in init()
296 .records = {}, in init()
306 mBoottimeCollection.records.clear(); in terminate()
309 mPeriodicCollection.records.clear(); in terminate()
[all …]
DIoPerfCollection.h106 std::vector<IoPerfRecord> records; // Cache of collected performance records. member
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp257 void StartDns(test::DNSResponder& dns, const std::vector<DnsRecord>& records) { in StartDns() argument
258 for (const auto& r : records) { in StartDns()
480 const std::vector<DnsRecord> records = { in TEST_F() local
490 StartDns(dns, records); in TEST_F()
500 std::string domain_name = records[i].host_name.substr(0, records[i].host_name.size() - 1); in TEST_F()
505 ASSERT_EQ(cnamecount, records.size() - 2); in TEST_F()
518 std::string domain_name = records[i].host_name.substr(0, records[i].host_name.size() - 1); in TEST_F()
523 ASSERT_EQ(cnamecount, records.size() - 2); in TEST_F()
533 const std::vector<DnsRecord> records = { in TEST_F() local
537 StartDns(dns, records); in TEST_F()
[all …]
/packages/apps/TV/src/com/android/tv/recommendation/
DRecommender.java121 List<Pair<Channel, Double>> records = new ArrayList<>(); in recommendChannels() local
132 records.add(Pair.create(cr.getChannel(), maxScore)); in recommendChannels()
135 if (size > records.size()) { in recommendChannels()
136 size = records.size(); in recommendChannels()
138 Collections.sort(records, mChannelScoreComparator); in recommendChannels()
146 mChannelSortKey.put(records.get(i).first.getId(), String.format(sortKeyFormat, i)); in recommendChannels()
147 results.add(records.get(i).first); in recommendChannels()
/packages/services/Telephony/src/com/android/phone/
DSimPhonebookProvider.java361 List<AdnRecord> records = loadRecordsForEf(args); in querySimRecords() local
362 if (records == null) { in querySimRecords()
365 MatrixCursor result = new MatrixCursor(projection, records.size()); in querySimRecords()
367 records.size()); in querySimRecords()
368 for (AdnRecord record : records) { in querySimRecords()
480 List<AdnRecord> records = loadRecordsForEf(args); in insertSimRecord() local
481 if (records == null) { in insertSimRecord()
486 for (AdnRecord record : records) { in insertSimRecord()
757 List<AdnRecord> records = loadRecordsForEf(args); in loadRecord() local
758 if (records == null || args.recordNumber > records.size()) { in loadRecord()
[all …]
/packages/services/Car/cpp/watchdog/server/tests/
DIoPerfCollectionTest.cpp227 ASSERT_EQ(collectionInfo.records.size(), 1); in TEST()
228 ASSERT_TRUE(isEqual(collectionInfo.records[0], expected)) in TEST()
231 << toString(collectionInfo.records[0]); in TEST()
298 ASSERT_EQ(collectionInfo.records.size(), 1); in TEST()
299 ASSERT_TRUE(isEqual(collectionInfo.records[0], expected)) in TEST()
302 << toString(collectionInfo.records[0]); in TEST()
403 ASSERT_EQ(collectionInfo.records.size(), 1); in TEST()
404 ASSERT_TRUE(isEqual(collectionInfo.records[0], expected)) in TEST()
407 << toString(collectionInfo.records[0]); in TEST()
423 EXPECT_TRUE(emptyCollectionInfo.records.empty()); in TEST()
/packages/services/Telephony/tests/src/com/android/phone/
DSimPhonebookProviderTest.java652 List<AdnRecord> records = mIccPhoneBook.getAdnRecordsInEfForSubscriber( in insert_adnRecord_addsAdnRecordAndReturnsUriForNewRecord() local
657 assertThat(records) in insert_adnRecord_addsAdnRecordAndReturnsUriForNewRecord()
728 List<AdnRecord> records = mIccPhoneBook.getAdnRecordsInEfForSubscriber( in insert_nameWithNonGsmCharacters_addsAdnRecord() local
733 assertThat(records) in insert_nameWithNonGsmCharacters_addsAdnRecord()
1294 AdnRecord[] records = mRecords.computeIfAbsent(key, unused -> in addRecord() local
1297 for (int i = 0; i < records.length; i++) { in addRecord()
1298 if (records[i].isEmpty()) { in addRecord()
1319 for (AdnRecord[] records : mRecords.values()) { in getAllValidRecords()
1320 for (AdnRecord record : records) { in getAllValidRecords()
1360 AdnRecord[] records = mRecords.computeIfAbsent(key, unused -> in setRecordsSize() local
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DTestActivity.java260 Integer records = null;
262 records = Integer.parseInt(mInsertView.getText().toString().trim());
263 Log.v(Constants.TAG, "parseInt " + records);
265 if (records == null) {
266 records = 1;
268 for (int i = 0; i < records; i++) {
/packages/apps/Tag/src/com/android/apps/tag/
DTagViewer.java100 List<ParsedNdefRecord> records = parsedMsg.getRecords(); in buildTagViews() local
101 final int size = records.size(); in buildTagViews()
106 ParsedNdefRecord record = records.get(i); in buildTagViews()
/packages/apps/Tag/src/com/android/apps/tag/message/
DParsedNdefMessage.java37 public ParsedNdefMessage(List<ParsedNdefRecord> records) { in ParsedNdefMessage() argument
38 mRecords = ImmutableList.copyOf(records); in ParsedNdefMessage()
DNdefMessageParser.java51 public static List<ParsedNdefRecord> getRecords(NdefRecord[] records) { in getRecords() argument
53 for (NdefRecord record : records) { in getRecords()
/packages/services/Car/cpp/watchdog/server/
Dcarwatchdogd.rc46 # Cache size for the periodically collected records
49 # Cache size for the periodically monitored records
/packages/services/Car/service/src/com/android/car/storagemonitoring/
DWearHistory.java58 public static WearHistory fromRecords(@NonNull WearEstimateRecord... records) { in fromRecords() argument
60 Arrays.stream(records).forEach(wearHistory::add); in fromRecords()
/packages/modules/DnsResolver/
DDnsQueryLogTest.cpp69 std::vector<DnsQueryLog::Record> records = { in TEST_F() local
76 for (auto& r : records) { in TEST_F()
/packages/services/Car/cpp/watchdog/server/sysprop/
DWatchdogProperties.sysprop27 # Maximum number of periodically collected records to be cached in memory.
45 # Maximum number of periodically monitored records to be cached in memory.
/packages/apps/Nfc/src/com/android/nfc/
DNfcWifiProtectedSetup.java99 NdefRecord[] records = message.getRecords(); in parse() local
101 for (NdefRecord record : records) { in parse()
/packages/modules/GeoTZ/s2storage/
DREADME.md33 Packed tables may contain some (optional) shared information that applies to all records in the
34 table. Then they contain one or more fixed length `{key}`/`{value}` records of `{R}` bits sorted by
96 containing the s2 range holding that cell ID, if any. The `{suffix}` will match either no records or
/packages/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java463 List<CallAttemptRecord> records) { in getConnectionServices() argument
465 for (CallAttemptRecord record : records) { in getConnectionServices()
DAnalytics.java193 public void setCallEvents(EventManager.EventRecord records) { in setCallEvents() argument
358 public void setCallEvents(EventManager.EventRecord records) { in setCallEvents() argument
359 this.callEvents = records; in setCallEvents()

12