Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/nfc/
DNdefMessage.java111 public NdefMessage(NdefRecord record, NdefRecord ... records) { in NdefMessage() argument
115 for (NdefRecord r : records) { in NdefMessage()
121 mRecords = new NdefRecord[1 + records.length]; in NdefMessage()
123 System.arraycopy(records, 0, mRecords, 1, records.length); in NdefMessage()
131 public NdefMessage(NdefRecord[] records) { in NdefMessage() argument
133 if (records.length < 1) { in NdefMessage()
136 for (NdefRecord r : records) { in NdefMessage()
142 mRecords = records; in NdefMessage()
221 NdefRecord[] records = new NdefRecord[recordsLength];
222 in.readTypedArray(records, NdefRecord.CREATOR);
[all …]
DNdefRecord.java785 List<NdefRecord> records = new ArrayList<NdefRecord>(); in parse() local
806 if (!mb && records.size() == 0 && !inChunk && !ignoreMbMe) { in parse()
808 } else if (mb && (records.size() != 0 || inChunk) && !ignoreMbMe) { in parse()
879 records.add(new NdefRecord(tnf, type, id, payload)); in parse()
887 return records.toArray(new NdefRecord[records.size()]); in parse()
/frameworks/base/packages/MtpDocumentsProvider/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 …]
/frameworks/base/services/core/java/com/android/server/notification/
DSnoozeHelper.java117 final ArrayMap<String, NotificationRecord> records = snoozedPkgs.valueAt(j); in getSnoozed() local
118 if (records != null) { in getSnoozed()
119 snoozedForUser.addAll(records.values()); in getSnoozed()
144 ArrayMap<String, ArrayMap<String, NotificationRecord>> records = in snooze() local
146 if (records == null) { in snooze()
147 records = new ArrayMap<>(); in snooze()
149 ArrayMap<String, NotificationRecord> pkgRecords = records.get(record.sbn.getPackageName()); in snooze()
154 records.put(record.sbn.getPackageName(), pkgRecords); in snooze()
155 mSnoozedNotifications.put(userId, records); in snooze()
165 final Set<Map.Entry<String, NotificationRecord>> records = recordsForPkg.entrySet(); in cancel() local
[all …]
/frameworks/base/packages/MtpDocumentsProvider/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()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSimSmsTest.java38 List<SmsRawData> records = sms.getAllMessagesFromIccEfForSubscriber( in testBasic() local
40 assertNotNull(records); in testBasic()
41 assertTrue(records.size() >= 0); in testBasic()
46 for (int i = 0; i < records.size(); i++) { in testBasic()
47 SmsRawData data = records.get(i); in testBasic()
/frameworks/native/services/surfaceflinger/
DFrameTracker.cpp148 FrameRecord* records = const_cast<FrameRecord*>(mFrameRecords); in processFencesLocked() local
155 const std::shared_ptr<FenceTime>& rfence = records[idx].frameReadyFence; in processFencesLocked()
157 records[idx].frameReadyTime = rfence->getSignalTime(); in processFencesLocked()
158 if (records[idx].frameReadyTime < INT64_MAX) { in processFencesLocked()
159 records[idx].frameReadyFence = NULL; in processFencesLocked()
166 records[idx].actualPresentFence; in processFencesLocked()
168 records[idx].actualPresentTime = pfence->getSignalTime(); in processFencesLocked()
169 if (records[idx].actualPresentTime < INT64_MAX) { in processFencesLocked()
170 records[idx].actualPresentFence = NULL; in processFencesLocked()
/frameworks/base/tools/preload/
DCompile.java41 List<Record> records = new ArrayList<Record>(); in main() local
53 records.add(new Record(clipped, lineNumber)); in main()
61 for (Record record : records) { in main()
65 for (Record record : records) { in main()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java271 ArrayList<MediaSessionRecord> records = getPriorityList(true, UserHandle.USER_ALL); in getDefaultVolumeSession() local
272 int size = records.size(); in getDefaultVolumeSession()
274 MediaSessionRecord record = records.get(i); in getDefaultVolumeSession()
284 ArrayList<MediaSessionRecord> records = getPriorityList(true, userId); in getDefaultRemoteSession() local
286 int size = records.size(); in getDefaultRemoteSession()
288 MediaSessionRecord record = records.get(i); in getDefaultRemoteSession()
DMediaSessionService.java206 List<MediaSessionRecord> records; in getActiveSessionsLocked() local
208 records = new ArrayList<>(); in getActiveSessionsLocked()
211 records.addAll(mUserRecords.valueAt(i).mPriorityStack.getActiveSessions(userId)); in getActiveSessionsLocked()
219 records = user.mPriorityStack.getActiveSessions(userId); in getActiveSessionsLocked()
226 records.add(0, mGlobalPrioritySession); in getActiveSessionsLocked()
228 return records; in getActiveSessionsLocked()
556 List<MediaSessionRecord> records = getActiveSessionsLocked(userId); in pushSessionsChanged() local
557 int size = records.size(); in pushSessionsChanged()
560 tokens.add(new MediaSession.Token(records.get(i).getControllerBinder())); in pushSessionsChanged()
855 List<MediaSessionRecord> records = getActiveSessionsLocked(resolvedUserId); in getSessions() local
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DPlmnActRecord.java124 PlmnActRecord[] records = new PlmnActRecord[numRecords]; in getRecords() local
127 records[i] = new PlmnActRecord(recordBytes, i * ENCODED_LENGTH); in getRecords()
129 return records; in getRecords()
/frameworks/base/core/java/android/app/
DFragmentManager.java2066 private void executePostponedTransaction(ArrayList<BackStackRecord> records, in executePostponedTransaction() argument
2071 if (records != null && !listener.mIsBack) { in executePostponedTransaction()
2072 int index = records.indexOf(listener.mRecord); in executePostponedTransaction()
2078 if (listener.isReady() || (records != null && in executePostponedTransaction()
2079 listener.mRecord.interactsWith(records, 0, records.size()))) { in executePostponedTransaction()
2084 if (records != null && !listener.mIsBack && in executePostponedTransaction()
2085 (index = records.indexOf(listener.mRecord)) != -1 && in executePostponedTransaction()
2110 private void removeRedundantOperationsAndExecute(ArrayList<BackStackRecord> records, in removeRedundantOperationsAndExecute() argument
2112 if (records == null || records.isEmpty()) { in removeRedundantOperationsAndExecute()
2116 if (isRecordPop == null || records.size() != isRecordPop.size()) { in removeRedundantOperationsAndExecute()
[all …]
/frameworks/support/fragment/java/android/support/v4/app/
DFragmentManager.java2245 private void executePostponedTransaction(ArrayList<BackStackRecord> records, in executePostponedTransaction() argument
2250 if (records != null && !listener.mIsBack) { in executePostponedTransaction()
2251 int index = records.indexOf(listener.mRecord); in executePostponedTransaction()
2257 if (listener.isReady() || (records != null in executePostponedTransaction()
2258 && listener.mRecord.interactsWith(records, 0, records.size()))) { in executePostponedTransaction()
2263 if (records != null && !listener.mIsBack in executePostponedTransaction()
2264 && (index = records.indexOf(listener.mRecord)) != -1 in executePostponedTransaction()
2289 private void removeRedundantOperationsAndExecute(ArrayList<BackStackRecord> records, in removeRedundantOperationsAndExecute() argument
2291 if (records == null || records.isEmpty()) { in removeRedundantOperationsAndExecute()
2295 if (isRecordPop == null || records.size() != isRecordPop.size()) { in removeRedundantOperationsAndExecute()
[all …]
/frameworks/av/media/common_time/
Dlocal_clock.cpp82 int32_t LocalClock::getDebugLog(struct local_time_debug_event* records, in getDebugLog() argument
89 return dev_->get_debug_log(dev_, records, max_records); in getDebugLog()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmInboundSmsHandler.java158 IccRecords records = UiccController.getInstance().getIccRecords( in updateMessageWaitingIndicator() local
160 if (records != null) { in updateMessageWaitingIndicator()
162 records.setVoiceMessageWaiting(1, voicemailCount); in updateMessageWaitingIndicator()
DUsimPhoneBookManager.java492 private void createPbrFile(ArrayList<byte[]> records) { in createPbrFile() argument
493 if (records == null) { in createPbrFile()
500 for (int i = 0; i < records.size(); i++) { in createPbrFile()
503 if (records.get(i)[0] != INVALID_BYTE) { in createPbrFile()
504 mPbrRecords.add(new PbrRecord(records.get(i))); in createPbrFile()
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java204 ArrayList<DisplayModeRecord> records = new ArrayList<DisplayModeRecord>(); in updatePhysicalDisplayInfoLocked() local
212 for (int j = 0; j < records.size(); j++) { in updatePhysicalDisplayInfoLocked()
213 if (records.get(j).hasMatchingMode(info)) { in updatePhysicalDisplayInfoLocked()
229 records.add(record); in updatePhysicalDisplayInfoLocked()
234 for (int i = 0; i < records.size(); i++) { in updatePhysicalDisplayInfoLocked()
235 DisplayModeRecord record = records.get(i); in updatePhysicalDisplayInfoLocked()
249 boolean recordsChanged = records.size() != mSupportedModes.size() || modesAdded; in updatePhysicalDisplayInfoLocked()
258 for (DisplayModeRecord record : records) { in updatePhysicalDisplayInfoLocked()
/frameworks/av/include/common_time/
Dlocal_clock.h38 int32_t getDebugLog(struct local_time_debug_event* records,
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionController.java608 List<SubscriptionInfo> records = getActiveSubscriptionInfoList( in getActiveSubInfoCount() local
610 if (records == null) { in getActiveSubInfoCount()
614 if (DBG) logd("[getActiveSubInfoCount]- count: " + records.size()); in getActiveSubInfoCount()
615 return records.size(); in getActiveSubInfoCount()
1516 final List<SubscriptionInfo> records = getActiveSubscriptionInfoList( in clearDefaultsForInactiveSubIds() local
1518 if (DBG) logdl("[clearDefaultsForInactiveSubIds] records: " + records); in clearDefaultsForInactiveSubIds()
1519 if (shouldDefaultBeCleared(records, getDefaultDataSubId())) { in clearDefaultsForInactiveSubIds()
1523 if (shouldDefaultBeCleared(records, getDefaultSmsSubId())) { in clearDefaultsForInactiveSubIds()
1527 if (shouldDefaultBeCleared(records, getDefaultVoiceSubId())) { in clearDefaultsForInactiveSubIds()
1536 private boolean shouldDefaultBeCleared(List<SubscriptionInfo> records, int subId) { in shouldDefaultBeCleared() argument
[all …]
/frameworks/native/libs/vr/libbroadcastring/include/libbroadcastring/
Dbroadcast_ring.h430 RecordStorage records[]; member
580 return &data_.mmap->records[index]; in record_mmap_writer()
584 return &data_.mmap->records[index]; in record_mmap_reader()
589 reinterpret_cast<char*>(data_.mmap->records) + index * record_size()); in record_mmap_reader()
/frameworks/base/telephony/java/android/telephony/
DSmsManager.java826 List<SmsRawData> records = null; in getAllMessagesFromIcc() local
831 records = iccISms.getAllMessagesFromIccEfForSubscriber( in getAllMessagesFromIcc()
839 return createMessageListFromRawRecords(records); in getAllMessagesFromIcc()
1006 private static ArrayList<SmsMessage> createMessageListFromRawRecords(List<SmsRawData> records) { in createMessageListFromRawRecords() argument
1008 if (records != null) { in createMessageListFromRawRecords()
1009 int count = records.size(); in createMessageListFromRawRecords()
1011 SmsRawData data = records.get(i); in createMessageListFromRawRecords()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DUserSwitcherController.java200 ArrayList<UserRecord> records = new ArrayList<>(infos.size()); in refreshUsers() local
231 int index = isCurrent ? 0 : records.size(); in refreshUsers()
232 records.add(index, new UserRecord(info, picture, false /* isGuest */, in refreshUsers()
259 records.add(guestRecord); in refreshUsers()
262 int index = guestRecord.isCurrent ? 0 : records.size(); in refreshUsers()
263 records.add(index, guestRecord); in refreshUsers()
272 records.add(addUserRecord); in refreshUsers()
275 return records; in refreshUsers()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityEvent.java781 final List<AccessibilityRecord> records = mRecords; in setSealed() local
782 if (records != null) { in setSealed()
783 final int recordCount = records.size(); in setSealed()
785 AccessibilityRecord record = records.get(i); in setSealed()
/frameworks/base/services/core/java/com/android/server/
DLocationManagerService.java1676 ArrayList<UpdateRecord> records = mRecordsByProvider.get(provider); in updateProviderListenersLocked() local
1677 if (records != null) { in updateProviderListenersLocked()
1678 for (UpdateRecord record : records) { in updateProviderListenersLocked()
1712 ArrayList<UpdateRecord> records = mRecordsByProvider.get(provider); in applyRequirementsLocked()
1722 if (records != null) { in applyRequirementsLocked()
1723 for (UpdateRecord record : records) { in applyRequirementsLocked()
1760 for (UpdateRecord record : records) { in applyRequirementsLocked()
1854 ArrayList<UpdateRecord> records = mRecordsByProvider.get(provider); in UpdateRecord() local
1855 if (records == null) { in UpdateRecord()
1856 records = new ArrayList<>(); in UpdateRecord()
[all …]
/frameworks/base/services/print/java/com/android/server/print/
DUserState.java1115 final List<PrintJobStateChangeListenerRecord> records; in handleDispatchPrintJobStateChanged() local
1120 records = new ArrayList<PrintJobStateChangeListenerRecord>( in handleDispatchPrintJobStateChanged()
1123 final int recordCount = records.size(); in handleDispatchPrintJobStateChanged()
1125 PrintJobStateChangeListenerRecord record = records.get(i); in handleDispatchPrintJobStateChanged()
1137 final List<ListenerRecord<IPrintServicesChangeListener>> records; in handleDispatchPrintServicesChanged() local
1142 records = new ArrayList<>(mPrintServicesChangeListenerRecords); in handleDispatchPrintServicesChanged()
1144 final int recordCount = records.size(); in handleDispatchPrintServicesChanged()
1146 ListenerRecord<IPrintServicesChangeListener> record = records.get(i); in handleDispatchPrintServicesChanged()
1158 final List<ListenerRecord<IRecommendationsChangeListener>> records; in handleDispatchPrintServiceRecommendationsUpdated() local
1163 records = new ArrayList<>(mPrintServiceRecommendationsChangeListenerRecords); in handleDispatchPrintServiceRecommendationsUpdated()
[all …]

12