Home
last modified time | relevance | path

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

123

/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DGroupedAggregatedLogRecordsTest.java54 TestGroupedAggregatedLogRecords records = new TestGroupedAggregatedLogRecords( in record_noAggregation_keepsIndividualRecords() local
58 assertThat(records.add(createRecord(GROUP_1, KEY_1, createTime++))).isNull(); in record_noAggregation_keepsIndividualRecords()
61 dumpRecords(records); in record_noAggregation_keepsIndividualRecords()
62 assertGroupHeadersWrittenOnce(records, GROUP_1); in record_noAggregation_keepsIndividualRecords()
69 TestGroupedAggregatedLogRecords records = new TestGroupedAggregatedLogRecords( in record_sizeLimit_dropsOldestEntriesForNewOnes() local
73 assertThat(records.add(firstRecord)).isNull(); in record_sizeLimit_dropsOldestEntriesForNewOnes()
74 assertThat(records.add(createRecord(GROUP_1, KEY_1, createTime++))).isNull(); in record_sizeLimit_dropsOldestEntriesForNewOnes()
78 records.add(createRecord(GROUP_1, KEY_1, createTime++)); in record_sizeLimit_dropsOldestEntriesForNewOnes()
82 dumpRecords(records); in record_sizeLimit_dropsOldestEntriesForNewOnes()
83 assertGroupHeadersWrittenOnce(records, GROUP_1); in record_sizeLimit_dropsOldestEntriesForNewOnes()
[all …]
/frameworks/base/nfc/java/android/nfc/
DNdefMessage.java112 public NdefMessage(NdefRecord record, NdefRecord ... records) { in NdefMessage() argument
116 for (NdefRecord r : records) { in NdefMessage()
122 mRecords = new NdefRecord[1 + records.length]; in NdefMessage()
124 System.arraycopy(records, 0, mRecords, 1, records.length); in NdefMessage()
132 public NdefMessage(NdefRecord[] records) { in NdefMessage() argument
134 if (records.length < 1) { in NdefMessage()
137 for (NdefRecord r : records) { in NdefMessage()
143 mRecords = records; in NdefMessage()
222 NdefRecord[] records = new NdefRecord[recordsLength];
223 in.readTypedArray(records, NdefRecord.CREATOR);
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DGroupedAggregatedLogRecords.java64 ArrayDeque<AggregatedLogRecord<T>> records = mGroupedRecords.get(groupKey); in add() local
65 if (mAggregationTimeLimitMs > 0 && !records.isEmpty()) { in add()
66 AggregatedLogRecord<T> lastAggregatedRecord = records.getLast(); in add()
73 if (records.size() >= mSizeLimit) { in add()
74 removedRecord = records.removeFirst(); in add()
76 records.addLast(new AggregatedLogRecord<>(record)); in add()
84 for (AggregatedLogRecord<T> records : mGroupedRecords.valueAt(i)) { in dump()
85 records.dump(pw); in dump()
95 for (AggregatedLogRecord<T> records : mGroupedRecords.valueAt(i)) { in dump()
96 records.dump(proto, fieldId); in dump()
/frameworks/native/services/memtrackproxy/test/
DMemtrackProxyTest.cpp48 std::vector<MemtrackRecord> records; in TEST_F() local
50 auto status = memtrack_proxy_->getMemory(pid, type, &records); in TEST_F()
60 std::vector<MemtrackRecord> records; in TEST_F() local
62 auto status = memtrack_proxy_->getMemory(pid, type, &records); in TEST_F()
72 std::vector<MemtrackRecord> records; in TEST_F() local
74 auto status = memtrack_proxy_->getMemory(pid, type, &records); in TEST_F()
/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 = nullptr; 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 = nullptr; 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSimSmsTest.java43 List<SmsRawData> records = sms.getAllMessagesFromIccEfForSubscriber( in testBasic() local
45 assertNotNull(records); in testBasic()
50 for (int i = 0; i < records.size(); i++) { in testBasic()
51 SmsRawData data = records.get(i); in testBasic()
DRILTest.java1616 ArrayList<Object> records = new ArrayList<>(); in testConvertHalCellInfoList_1_4ForLte() local
1617 records.add(getCellInfo_1_4ForLte()); in testConvertHalCellInfoList_1_4ForLte()
1619 ArrayList<CellInfo> ret = RILUtils.convertHalCellInfoList(records); in testConvertHalCellInfoList_1_4ForLte()
1673 ArrayList<Object> records = new ArrayList<>(); in testConvertHalCellInfoList_1_5ForLte() local
1674 records.add(cellInfo); in testConvertHalCellInfoList_1_5ForLte()
1676 ArrayList<CellInfo> ret = RILUtils.convertHalCellInfoList(records); in testConvertHalCellInfoList_1_5ForLte()
1713 ArrayList<Object> records = new ArrayList<>(); in testConvertHalCellInfoList_1_6ForLte() local
1714 records.add(cellInfo); in testConvertHalCellInfoList_1_6ForLte()
1716 ArrayList<CellInfo> ret = RILUtils.convertHalCellInfoList(records); in testConvertHalCellInfoList_1_6ForLte()
1776 ArrayList<Object> records = new ArrayList<>(); in testConvertHalCellInfoList_1_4ForGsm() local
[all …]
/frameworks/base/tools/powermodel/test/com/android/powermodel/
DRawBatteryStatsTest.java51 final List<RawBatteryStats.Record> records = bs.getRecords(); in testVersion() local
52 final RawBatteryStats.Version line = (RawBatteryStats.Version)records.get(0); in testVersion()
72 final List<RawBatteryStats.Record> records = bs.getRecords(); in testUid() local
73 final RawBatteryStats.Uid line = (RawBatteryStats.Uid)records.get(1); in testUid()
83 final List<RawBatteryStats.Record> records = bs.getRecords(); in testVarargs() local
85 = (RawBatteryStats.GlobalModemController)records.get(1); in testVarargs()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionStack.java330 List<MediaSessionRecord> records = getPriorityList(true, UserHandle.USER_ALL); in getDefaultVolumeSession() local
331 int size = records.size(); in getDefaultVolumeSession()
333 MediaSessionRecord record = records.get(i); in getDefaultVolumeSession()
342 List<MediaSessionRecord> records = getPriorityList(true, userId); in getDefaultRemoteSession() local
344 int size = records.size(); in getDefaultRemoteSession()
346 MediaSessionRecord record = records.get(i); in getDefaultRemoteSession()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DSimPhonebookRecordCache.java482 private void handlePhonebookRecordReceived(ReceivedPhonebookRecords records) { in handlePhonebookRecordReceived() argument
483 if (records != null) { in handlePhonebookRecordReceived()
484 if (records.isOk()) { in handlePhonebookRecordReceived()
486 populateAdnRecords(records.getPhonebookRecords()); in handlePhonebookRecordReceived()
487 } else if (records.isCompleted()) { in handlePhonebookRecordReceived()
489 populateAdnRecords(records.getPhonebookRecords()); in handlePhonebookRecordReceived()
495 } else if (records.isRetryNeeded() && !mIsInRetry.get()) { in handlePhonebookRecordReceived()
562 private void populateAdnRecords(List<SimPhonebookRecord> records) { in populateAdnRecords() argument
563 if (records != null) { in populateAdnRecords()
564 Map<Integer, AdnRecord> newRecords = records.stream().map(record -> {return in populateAdnRecords()
DPlmnActRecord.java136 PlmnActRecord[] records = new PlmnActRecord[numRecords]; in getRecords() local
139 records[i] = new PlmnActRecord(recordBytes, i * ENCODED_LENGTH); in getRecords()
141 return records; in getRecords()
/frameworks/base/core/java/android/app/
DFragmentManager.java2084 private void executePostponedTransaction(ArrayList<BackStackRecord> records, in executePostponedTransaction() argument
2089 if (records != null && !listener.mIsBack) { in executePostponedTransaction()
2090 int index = records.indexOf(listener.mRecord); in executePostponedTransaction()
2096 if (listener.isReady() || (records != null && in executePostponedTransaction()
2097 listener.mRecord.interactsWith(records, 0, records.size()))) { in executePostponedTransaction()
2102 if (records != null && !listener.mIsBack && in executePostponedTransaction()
2103 (index = records.indexOf(listener.mRecord)) != -1 && in executePostponedTransaction()
2128 private void removeRedundantOperationsAndExecute(ArrayList<BackStackRecord> records, in removeRedundantOperationsAndExecute() argument
2130 if (records == null || records.isEmpty()) { in removeRedundantOperationsAndExecute()
2134 if (isRecordPop == null || records.size() != isRecordPop.size()) { in removeRedundantOperationsAndExecute()
[all …]
/frameworks/av/services/audioflinger/sounddose/
DSoundDoseManager.cpp351 float currentCsd, const std::vector<media::SoundDoseRecord>& records) { in resetCsd() argument
355 soundDoseManager->resetCsd(currentCsd, records); in resetCsd()
635 const std::vector<media::SoundDoseRecord>& records) { in resetCsd() argument
638 resetRecords.reserve(records.size()); in resetCsd()
639 for (const auto& record : records) { in resetCsd()
652 std::vector<audio_utils::CsdRecord> records; in onNewMelValues() local
667 records = mMelAggregator->aggregateAndAddNewMelRecord(audio_utils::MelRecord( in onNewMelValues()
691 std::copy(newRec.begin(), newRec.end(), std::back_inserter(records)); in onNewMelValues()
707 std::copy(newRec.begin(), newRec.end(), std::back_inserter(records)); in onNewMelValues()
716 if (records.size() > 0 && soundDoseCallback != nullptr) { in onNewMelValues()
[all …]
/frameworks/proto_logging/stats/atoms/healthfitness/api/
Dapi_extension_atoms.proto55 // Number of records being inserted/updated etc. (If any)
84 // Total number of instant records in the database.
87 // Total number of interval records in the database.
90 // Total number of series records in the database.
107 // Number of records under operation
/frameworks/native/services/memtrackproxy/
DMemtrackProxy.cpp138 hidl_vec<V1_0_hidl::MemtrackRecord> records) { in getMemory() argument
153 _aidl_return->resize(records.size()); in getMemory()
154 for (size_t i = 0; i < records.size(); i++) { in getMemory()
155 if (!translate(records[i], &(*_aidl_return)[i])) { in getMemory()
/frameworks/base/services/core/java/com/android/server/am/
DAppStartInfoTracker.java507 forEachPackageLocked((name, records) -> { in configureDetailedMonitoring() argument
508 for (int i = 0; i < records.size(); i++) { in configureDetailedMonitoring()
509 records.valueAt(i).disableAppMonitoringMode(); in configureDetailedMonitoring()
625 (name, records) -> { in getStartInfo() argument
626 AppStartInfoContainer container = records.get(filterUid); in getStartInfo()
788 (packageName, records) -> { in removeByUserIdLocked() argument
789 for (int i = records.size() - 1; i >= 0; i--) { in removeByUserIdLocked()
790 if (UserHandle.getUserId(records.keyAt(i)) == userId) { in removeByUserIdLocked()
791 records.removeAt(i); in removeByUserIdLocked()
795 return records.size() == 0 ? FOREACH_ACTION_REMOVE_ITEM : FOREACH_ACTION_NONE; in removeByUserIdLocked()
[all …]
DAppExitInfoTracker.java532 forEachPackageLocked((packageName, records) -> { in updateExitInfoIfNecessaryLocked() argument
533 AppExitInfoContainer container = records.get(targetUid); in updateExitInfoIfNecessaryLocked()
576 forEachPackageLocked((name, records) -> { in getExitInfo() argument
577 AppExitInfoContainer container = records.get(filterUid); in getExitInfo()
763 forEachPackageLocked((packageName, records) -> { in persistProcessExitInfo() argument
766 int uidArraySize = records.size(); in persistProcessExitInfo()
768 records.valueAt(j).writeToProto(proto, AppsExitInfoProto.Package.USERS); in persistProcessExitInfo()
855 forEachPackageLocked((name, records) -> { in dumpHistoryProcessExitInfo() argument
856 dumpHistoryProcessExitInfoLocked(pw, " ", name, records, sdf); in dumpHistoryProcessExitInfo()
946 final SparseArray<AppExitInfoContainer> records = map.valueAt(i); in forEachPackageLocked() local
[all …]
/frameworks/base/packages/SystemUI/scripts/token_alignment/helpers/
DFileIO.ts80 (err, records) => {
86 resolve(records);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DSimPhonebookRecordCacheTest.java99 List<SimPhonebookRecord> records = new ArrayList<SimPhonebookRecord>(); in testGetPhonebookRecords() local
100 records.add(new SimPhonebookRecord(1, "ABC", "12345", null, null)); in testGetPhonebookRecords()
101 AsyncResult ar = new AsyncResult(null, new ReceivedPhonebookRecords(4, records), null); in testGetPhonebookRecords()
/frameworks/base/services/core/java/com/android/server/wm/
DPackageConfigPersister.java380 HashMap<String, PackageConfigRecord> records = list.get(userId); in findRecordOrCreate() local
381 if (records == null) { in findRecordOrCreate()
382 records = new HashMap<>(); in findRecordOrCreate()
383 list.put(userId, records); in findRecordOrCreate()
385 PackageConfigRecord record = records.get(name); in findRecordOrCreate()
390 records.put(name, record); in findRecordOrCreate()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSimIndication.java106 android.hardware.radio.sim.PhonebookRecordInfo[] records) { in simPhonebookRecordsReceived() argument
111 for (android.hardware.radio.sim.PhonebookRecordInfo record : records) { in simPhonebookRecordsReceived()
118 "status = " + status + " received " + records.length + " records"); in simPhonebookRecordsReceived()
DRadioIndication.java611 android.hardware.radio.V1_0.CdmaInformationRecords records) { in cdmaInfoRec() argument
614 int numberOfInfoRecs = records.infoRec.size(); in cdmaInfoRec()
616 CdmaInformationRecord record = records.infoRec.get(i); in cdmaInfoRec()
786 ArrayList<android.hardware.radio.V1_0.CellInfo> records) { in cellInfoList() argument
792 ArrayList<android.hardware.radio.V1_2.CellInfo> records) { in cellInfoList_1_2() argument
798 ArrayList<android.hardware.radio.V1_4.CellInfo> records) { in cellInfoList_1_4() argument
800 responseCellInfoList(records); in cellInfoList_1_4()
805 ArrayList<android.hardware.radio.V1_5.CellInfo> records) { in cellInfoList_1_5() argument
807 responseCellInfoList(records); in cellInfoList_1_5()
812 ArrayList<android.hardware.radio.V1_6.CellInfo> records) { in cellInfoList_1_6() argument
[all …]
/frameworks/av/media/libaudioclient/aidl/android/media/
DISoundDoseCallback.aidl34 oneway void onNewCsdValue(float currentCsd, in SoundDoseRecord[] records); in onNewCsdValue() argument
/frameworks/base/services/core/java/com/android/server/audio/
DSoundDoseHelper.java272 public void onNewCsdValue(float currentCsd, SoundDoseRecord[] records) {
307 updateSoundDoseRecords_l(records, currentCsd);
873 SoundDoseRecord[] records = mDoseRecords.toArray( in reset() local
875 soundDose.resetCsd(mCurrentCsd, records); in reset()
965 final List<SoundDoseRecord> records = persistedStringToRecordList( in initCsd() local
969 if (records != null) { in initCsd()
970 mDoseRecords.addAll(records); in initCsd()
1258 private static List<SoundDoseRecord> persistedStringToRecordList(String records, in persistedStringToRecordList() argument
1260 if (records == null || records.isEmpty()) { in persistedStringToRecordList()
1263 return Arrays.stream(TextUtils.split(records, PERSIST_CSD_RECORD_SEPARATOR)).map( in persistedStringToRecordList()

123