Home
last modified time | relevance | path

Searched refs:record (Results 1 – 25 of 136) sorted by relevance

123456

/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_sdp.cpp47 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/modules/NetworkStack/tests/unit/src/android/net/testutils/
DTrackRecordTest.kt57 val record = ArrayTrackRecord<Int>() in <lambda>() constant
58 assertEquals(0, record.size) in <lambda>()
59 repeat(repeats) { i -> record.add(i + 2) } in <lambda>()
60 assertEquals(repeats, record.size) in <lambda>()
61 record.add(2) in <lambda>()
62 assertEquals(repeats + 1, record.size) in <lambda>()
64 assertEquals(11, record[9]) in <lambda>()
65 assertEquals(11, record.getOrNull(9)) in <lambda>()
66 assertEquals(2, record[record.size - 1]) in <lambda>()
67 assertEquals(2, record.getOrNull(record.size - 1)) in <lambda>()
[all …]
/packages/apps/Tag/src/com/android/apps/tag/message/
DNdefMessageParser.java19 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 …]
DParsedNdefMessage.java20 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/
DBluetoothProfileInhibitManager.java251 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/
DIoStatsEntry.java94 public IoStatsEntry(UidIoRecord record, long runtimeMillis) { in IoStatsEntry() argument
95 uid = record.uid; in IoStatsEntry()
97 foreground = new IoStatsEntry.Metrics(record.foreground_rchar, in IoStatsEntry()
98 record.foreground_wchar, in IoStatsEntry()
99 record.foreground_read_bytes, in IoStatsEntry()
100 record.foreground_write_bytes, in IoStatsEntry()
101 record.foreground_fsync); in IoStatsEntry()
102 background = new IoStatsEntry.Metrics(record.background_rchar, in IoStatsEntry()
103 record.background_wchar, in IoStatsEntry()
104 record.background_read_bytes, in IoStatsEntry()
[all …]
/packages/apps/TV/src/com/android/tv/data/
DWatchedHistoryManager.java79 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/
DDnsQueryLog.cpp61 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()
DDnsStats.cpp99 void StatsRecords::push(const Record& record) { in push() argument
100 updateStatsData(record, true); in push()
101 mRecords.push_back(record); in push()
109 void StatsRecords::updateStatsData(const Record& record, const bool add) { in updateStatsData() argument
110 const int rcode = record.rcode; in updateStatsData()
114 mStatsData.latencyUs += record.latencyUs; in updateStatsData()
118 mStatsData.latencyUs -= record.latencyUs; in updateStatsData()
147 bool DnsStats::addStats(const IPSockAddr& ipSockAddr, const DnsQueryEvent& record) { in addStats() argument
150 for (auto& [serverSockAddr, statsRecords] : mStats[record.protocol()]) { in addStats()
153 .rcode = record.rcode(), in addStats()
[all …]
/packages/apps/Tag/src/com/android/apps/tag/record/
DSmartPoster.java17 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 …]
DMimeRecord.java17 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()
DTextRecord.java17 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()
DImageRecord.java17 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/
DWatchedHistoryManagerTest.java79 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/
DSharedLog.java106 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DResetNetwork.java185 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/Settings/src/com/android/settings/
DResetNetwork.java185 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/
DSnepValidationServerTests.java112 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/Launcher3/src/com/android/launcher3/allapps/
DAllAppsGridAdapter.java99 final AccessibilityRecordCompat record = AccessibilityEventCompat in onInitializeAccessibilityEvent() local
101 record.setItemCount(mApps.getNumFilteredApps()); in onInitializeAccessibilityEvent()
102 record.setFromIndex(Math.max(0, in onInitializeAccessibilityEvent()
103 record.getFromIndex() - getRowsNotForAccessibility(record.getFromIndex()))); in onInitializeAccessibilityEvent()
104 record.setToIndex(Math.max(0, in onInitializeAccessibilityEvent()
105 record.getToIndex() - getRowsNotForAccessibility(record.getToIndex()))); in onInitializeAccessibilityEvent()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryFlagParser.java40 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/Settings/src/com/android/settings/fuelgauge/
DBatteryFlagParser.java40 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/Telecomm/src/com/android/server/telecom/
DRinger.java223 timer.record("isVolumeOverZero"); in startRinging()
225 timer.record("shouldRingForContact"); in startRinging()
227 timer.record("getRingtone"); in startRinging()
229 timer.record("isSelfManaged"); in startRinging()
231 timer.record("isSilentRingRequested"); in startRinging()
234 timer.record("isRingerAudible"); in startRinging()
236 timer.record("hasExternalRinger"); in startRinging()
239 timer.record("isTheaterModeOn"); in startRinging()
241 timer.record("letDialerHandleRinging"); in startRinging()
/packages/services/Car/car-lib/src/android/car/
DCarProjectionManager.java402 KeyEventHandlerRecord record = mKeyEventHandlers.get(eventHandler); in addKeyEventHandler() local
403 if (record == null) { in addKeyEventHandler()
404 record = new KeyEventHandlerRecord(executor, eventMask); in addKeyEventHandler()
405 mKeyEventHandlers.put(eventHandler, record); in addKeyEventHandler()
407 record.mExecutor = executor; in addKeyEventHandler()
408 record.mSubscribedEvents = eventMask; in addKeyEventHandler()
423 KeyEventHandlerRecord record = mKeyEventHandlers.remove(eventHandler); in removeKeyEventHandler() local
424 if (record != null) { in removeKeyEventHandler()
434 for (KeyEventHandlerRecord record : mKeyEventHandlers.values()) { in updateHandledEventsLocked()
435 events.or(record.mSubscribedEvents); in updateHandledEventsLocked()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DHighUsageDataParser.java53 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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/
DHighUsageDataParser.java53 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()

123456