/packages/modules/Bluetooth/system/gd/crypto_toolbox/ |
D | crypto_toolbox_test.cc | 59 std::reverse(std::begin(k), std::end(k)); in TEST() 60 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 81 std::reverse(std::begin(k), std::end(k)); in TEST() 82 std::reverse(std::begin(m), std::end(m)); in TEST() 83 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 107 std::reverse(std::begin(k), std::end(k)); in TEST() 108 std::reverse(std::begin(m), std::end(m)); in TEST() 109 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 127 std::reverse(std::begin(k), std::end(k)); in TEST() 128 std::reverse(std::begin(m), std::end(m)); in TEST() [all …]
|
/packages/modules/Bluetooth/system/stack/test/ |
D | crypto_toolbox_test.cc | 68 std::reverse(std::begin(k), std::end(k)); in TEST() 69 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 93 std::reverse(std::begin(k), std::end(k)); in TEST() 94 std::reverse(std::begin(m), std::end(m)); in TEST() 95 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 122 std::reverse(std::begin(k), std::end(k)); in TEST() 123 std::reverse(std::begin(m), std::end(m)); in TEST() 124 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST() 147 std::reverse(std::begin(k), std::end(k)); in TEST() 148 std::reverse(std::begin(m), std::end(m)); in TEST() [all …]
|
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/ |
D | CborUtilsTest.java | 109 .end() in testParseSignedCertificatesFakeData() 110 .end() in testParseSignedCertificatesFakeData() 124 .end() in testParseSignedCertificatesWrongSize() 137 .end() in testParseSignedCertificatesWrongTypeSharedCerts() 138 .end() in testParseSignedCertificatesWrongTypeSharedCerts() 152 .end() in testParseSignedCertificatesWrongTypeUniqueCerts() 153 .end() in testParseSignedCertificatesWrongTypeUniqueCerts() 167 .end() in testParseGeekResponseFakeData() 171 .end() in testParseGeekResponseFakeData() 172 .end() in testParseGeekResponseFakeData() [all …]
|
/packages/modules/StatsD/statsd/src/matchers/ |
D | matcher_util.cpp | 92 if (aidIt != UidMap::sAidToUidMapping.end()) { in tryMatchString() 96 return packageNames.find(str_match) != packageNames.end(); in tryMatchString() 111 aidIt != UidMap::sAidToUidMapping.end(); ++aidIt) { in tryMatchWildcardString() 131 const vector<FieldValue>& values, int start, int end, int depth) { in matchesSimple() argument 137 if (start >= end) { in matchesSimple() 143 int newEnd = end; in matchesSimple() 146 for (int i = start; i < end; i++) { in matchesSimple() 160 end = newEnd; in matchesSimple() 176 for (int i = start; i < end; i++) { in matchesSimple() 181 end = i; in matchesSimple() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | UtilsTests.java | 230 long end = createTimeInMillis(0, 0, 18, 12, 3, 2000); in testGetDisplayedDatetime_differentYear() local 231 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 237 end = createTimeInMillis(0, 0, 18, 1, 0, 2013); in testGetDisplayedDatetime_differentYear() 238 result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_differentYear() 247 long end = createTimeInMillis(0, 0, 18, 12, 3, 2012); in testGetDisplayedDatetime_sameYear() local 248 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_sameYear() 257 long end = createTimeInMillis(0, 0, 18, NOW_DAY, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_today() local 258 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_today() 267 long end = createTimeInMillis(0, 0, 0, NOW_DAY + 1, NOW_MONTH, NOW_YEAR); in testGetDisplayedDatetime_todayMidnight() local 268 String result = Utils.getDisplayedDatetime(start, end, NOW_TIME, DEFAULT_TIMEZONE, in testGetDisplayedDatetime_todayMidnight() [all …]
|
/packages/modules/Virtualization/vmbase/example/src/ |
D | layout.rs | 28 VirtualAddress(r.start)..VirtualAddress(r.end) in into_va_range() 77 info!("dtb: {}..{} ({} bytes)", dtb.start, dtb.end, dtb.end - dtb.start); in print_addresses() 79 info!("text: {}..{} ({} bytes)", text.start, text.end, text.end - text.start); in print_addresses() 81 info!("rodata: {}..{} ({} bytes)", rodata.start, rodata.end, rodata.end - rodata.start); in print_addresses() 87 data.end, in print_addresses() 88 data.end - data.start, in print_addresses() 92 info!("bss: {}..{} ({} bytes)", bss.start, bss.end, bss.end - bss.start); in print_addresses() 97 boot_stack.end, in print_addresses() 98 boot_stack.end - boot_stack.start in print_addresses()
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
D | CompositeListAdapter.java | 143 int end = start + mCounts[i]; in getItem() local 144 if (position >= start && position < end) { in getItem() 147 start = end; in getItem() 157 int end = start + mCounts[i]; in getItemId() local 158 if (position >= start && position < end) { in getItemId() 161 start = end; in getItemId() 179 int end = start + mCounts[i]; in getItemViewType() local 180 if (position >= start && position < end) { in getItemViewType() 184 start = end; in getItemViewType() 194 int end = start + mCounts[i]; in getView() local [all …]
|
/packages/modules/Bluetooth/system/gd/common/ |
D | list_map.h | 63 for (auto iter = node_list_.begin(); iter != node_list_.end(); iter++) { in ListMap() 76 for (auto iter = node_list_.begin(); iter != node_list_.end(); iter++) { 108 if (map_iterator == key_map_.end()) { in find() 109 return end(); in find() 116 return find(key) != end(); in contains() 125 if (map_iterator != key_map_.end()) { in try_emplace() 126 return std::make_pair(end(), false); in try_emplace() 138 return try_emplace(end(), key, std::forward<Args>(args)...); in try_emplace_back() 145 if (map_iterator != key_map_.end()) { in insert_or_assign() 155 insert_or_assign(end(), key, std::move(value)); in insert_or_assign() [all …]
|
D | lru_cache_test.cc | 31 EXPECT_EQ(cache.find(42), cache.end()); in TEST() 33 EXPECT_EQ(cache.find(42), cache.end()); in TEST() 157 for (auto iter = cache.begin(); iter != cache.end();) { in TEST() 170 EXPECT_EQ(cache.find(42), cache.end()); in TEST() 173 EXPECT_EQ(cache.find(42), cache.end()); in TEST() 175 EXPECT_NE(cache.find(56), cache.end()); in TEST() 178 EXPECT_NE(iter, cache.end()); in TEST() 199 EXPECT_EQ(cache.find(1), cache.end()); in TEST() 201 EXPECT_NE(iter = cache.find(4), cache.end()); in TEST() 203 EXPECT_NE(iter = cache.find(2), cache.end()); in TEST() [all …]
|
/packages/modules/Bluetooth/system/gd/storage/ |
D | config_cache.cc | 43 return kEncryptKeyNameList.find(key) != kEncryptKeyNameList.end(); in InEncryptKeyNameList() 136 if (section_iter != information_sections_.end()) { in HasProperty() 137 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty() 140 if (section_iter != persistent_devices_.end()) { in HasProperty() 141 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty() 144 if (section_iter != temporary_devices_.end()) { in HasProperty() 145 return section_iter->second.find(property) != section_iter->second.end(); in HasProperty() 153 if (section_iter != information_sections_.end()) { in GetProperty() 155 if (property_iter != section_iter->second.end()) { in GetProperty() 160 if (section_iter != persistent_devices_.end()) { in GetProperty() [all …]
|
/packages/modules/Bluetooth/system/bta/le_audio/ |
D | content_control_id_keeper_test.cc | 51 ASSERT_NE(media_ccids.end(), in TEST() 52 std::find(media_ccids.begin(), media_ccids.end(), ccid_one)); in TEST() 57 ASSERT_NE(allerts_ccids.end(), in TEST() 58 std::find(allerts_ccids.begin(), allerts_ccids.end(), ccid_one)); in TEST() 63 ASSERT_NE(all_ccids.end(), in TEST() 64 std::find(all_ccids.begin(), all_ccids.end(), ccid_one)); in TEST() 86 ASSERT_NE(media_ccids.end(), in TEST() 87 std::find(media_ccids.begin(), media_ccids.end(), ccid_two)); in TEST() 92 ASSERT_NE(allerts_ccids.end(), in TEST() 93 std::find(allerts_ccids.begin(), allerts_ccids.end(), ccid_three)); in TEST() [all …]
|
D | devices.cc | 123 leAudioDevices_.begin(), leAudioDevices_.end(), in RemoveNode() 125 leAudioDevices_.end()); in RemoveNode() 145 leAudioDevices_.begin(), leAudioDevices_.end(), in NumOfConnected() 208 stream_conf.source_streams.end(), in Cleanup() 210 stream_conf.source_streams.end()); in Cleanup() 271 auto iter = std::find_if(leAudioDevices_.begin(), leAudioDevices_.end(), in GetFirstDevice() 274 if (iter == leAudioDevices_.end()) return nullptr; in GetFirstDevice() 282 leAudioDevices_.begin(), leAudioDevices_.end(), in GetFirstDeviceWithActiveContext() 288 if ((iter == leAudioDevices_.end()) || (iter->expired())) return nullptr; in GetFirstDeviceWithActiveContext() 294 auto iter = std::find_if(leAudioDevices_.begin(), leAudioDevices_.end(), in GetNextDevice() [all …]
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
D | SearchUtil.java | 47 int end = index + 1; in findMatchingLine() local 48 while (end < contents.length()) { in findMatchingLine() 49 if (contents.charAt(end) == '\n') { in findMatchingLine() 52 end++; in findMatchingLine() 54 matched.line = contents.substring(start + 1, end); in findMatchingLine() 171 int end = query.length() - 1; in cleanStartAndEndOfSearchQuery() local 172 while (end > -1) { in cleanStartAndEndOfSearchQuery() 173 if (Character.isLowSurrogate(query.charAt(end))) { in cleanStartAndEndOfSearchQuery() 175 end--; in cleanStartAndEndOfSearchQuery() 177 int codePoint = query.codePointAt(end); in cleanStartAndEndOfSearchQuery() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/ |
D | SearchUtil.java | 64 int end = index + 1; in findMatchingLine() local 65 while (end < contents.length()) { in findMatchingLine() 66 if (contents.charAt(end) == '\n') { in findMatchingLine() 69 end++; in findMatchingLine() 71 matched.line = contents.substring(start + 1, end); in findMatchingLine() 188 int end = query.length() - 1; in cleanStartAndEndOfSearchQuery() local 189 while (end > -1) { in cleanStartAndEndOfSearchQuery() 190 if (Character.isLowSurrogate(query.charAt(end))) { in cleanStartAndEndOfSearchQuery() 192 end--; in cleanStartAndEndOfSearchQuery() 194 int codePoint = query.codePointAt(end); in cleanStartAndEndOfSearchQuery() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | CompositeAdapter.java | 147 final int end = start + mPartitions[i].getCount(); in getPartitionAtPosition() local 148 if (position >= start && position < end) { in getPartitionAtPosition() 159 start = end; in getPartitionAtPosition() 198 final int end = start + mPartitions[i].getCount(); in getItem() local 199 if (position >= start && position < end) { in getItem() 209 start = end; in getItem() 220 final int end = start + mPartitions[i].getCount(); in getItemId() local 221 if (position >= start && position < end) { in getItemId() 231 start = end; in getItemId() 242 final int end = start + mPartitions[i].getCount(); in isEnabled() local [all …]
|
/packages/modules/StatsD/statsd/src/config/ |
D | ConfigManager.cpp | 81 if (uidIt != mConfigs.end()) { in UpdateConfig() 83 if (it == uidIt->second.end() && in UpdateConfig() 91 if (uidIt != mConfigs.end() && uidIt->second.find(key) != uidIt->second.end() && in UpdateConfig() 132 if (it != mConfigReceivers.end() && it->second == pir) { in RemoveConfigReceiver() 152 if (it != mActiveConfigsChangedReceivers.end() && it->second == pir) { in RemoveActiveConfigsChangedReceiver() 172 if (it != mRestrictedMetricsChangedReceivers.end()) { in RemoveRestrictedMetricsChangedReceiver() 185 if (it != mRestrictedMetricsChangedReceivers.end()) { in RemoveRestrictedMetricsChangedReceiver() 187 if (pirIt != it->second.end() && pirIt->second == pir) { in RemoveRestrictedMetricsChangedReceiver() 208 if (it != mRestrictedMetricsChangedReceivers.end()) { in SendRestrictedMetricsBroadcast() 210 if (delegateUids.find(delegateUid) != delegateUids.end()) { in SendRestrictedMetricsBroadcast() [all …]
|
/packages/modules/Bluetooth/system/packet/tests/base/ |
D | iterator_test.cc | 92 ASSERT_EQ(static_cast<size_t>(packet->end() - packet->begin()), in TEST_P() 103 Iterator bounds_test = packet->end(); in TEST_P() 120 Iterator bounds_test = packet->end(); in TEST_P() 137 Iterator dereference_test = packet->end(); in TEST_P() 158 ASSERT_EQ(plus_eq, packet->end()); in TEST_P() 194 Iterator minus_eq = packet->end(); in TEST_P() 207 Iterator minus_minus = packet->end(); in TEST_P() 218 Iterator minus_minus = packet->end(); in TEST_P() 230 Iterator minus = packet->end(); in TEST_P() 242 Iterator plus_eq = packet->end(); in TEST_P() [all …]
|
/packages/modules/Bluetooth/system/gd/packet/ |
D | packet_view_unittest.cc | 161 auto bounds_test = this->packet->end(); in TYPED_TEST() 170 auto dereference_test = this->packet->end(); in TYPED_TEST() 211 auto minus_eq = this->packet->end(); in TYPED_TEST() 223 auto minus_minus = this->packet->end(); in TYPED_TEST() 232 auto minus_minus = this->packet->end(); in TYPED_TEST() 243 auto minus = this->packet->end(); in TYPED_TEST() 253 auto end = this->packet->end(); in TYPED_TEST() local 254 int difference = end - begin; in TYPED_TEST() 256 int neg_difference = begin - end; in TYPED_TEST() 262 auto end = this->packet->end(); in TYPED_TEST() local [all …]
|
D | packet_view.cc | 44 Iterator<little_endian> PacketView<little_endian>::end() const { in end() function in bluetooth::packet::PacketView 72 std::forward_list<View> PacketView<little_endian>::GetSubviewList(size_t begin, size_t end) const { in GetSubviewList() 73 ASSERT(begin <= end); in GetSubviewList() 74 ASSERT(end <= length_); in GetSubviewList() 78 size_t length = end - begin; in GetSubviewList() 93 PacketView<true> PacketView<little_endian>::GetLittleEndianSubview(size_t begin, size_t end) const { in GetLittleEndianSubview() 94 return PacketView<true>(GetSubviewList(begin, end)); in GetLittleEndianSubview() 98 PacketView<false> PacketView<little_endian>::GetBigEndianSubview(size_t begin, size_t end) const { in GetBigEndianSubview() 99 return PacketView<false>(GetSubviewList(begin, end)); in GetBigEndianSubview() 112 ASSERT(insertion_point != fragments_.end()); in Append()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SuggestionFormatter.kt | 34 protected fun applyQueryTextStyle(text: Spannable, start: Int, end: Int) { in formatSuggestion() 35 if (start == end) return in formatSuggestion() 36 setSpans(text, start, end, mSpanFactory.createSuggestionQueryTextAppearance()) in formatSuggestion() 39 protected fun applySuggestedTextStyle(text: Spannable, start: Int, end: Int) { in applySuggestedTextStyle() 40 if (start == end) return in applySuggestedTextStyle() 41 setSpans(text, start, end, mSpanFactory.createSuggestionSuggestedTextAppearance()) in applySuggestedTextStyle() 44 private fun setSpans(text: Spannable, start: Int, end: Int, spans: Array<Any>) { in setSpans() 46 text.setSpan(span, start, end, 0) in setSpans()
|
/packages/services/Car/tools/emulator/ |
D | user_action_generator.py | 124 def _adjustContinuousProperty(self, prop, begin, end, listener): argument 132 if begin < end: 134 end = areaConfig.max if end > areaConfig.max else end 137 end = areaConfig.min if end < areaConfig.min else end 139 for value in self._range(begin, end): 152 def _range(self, begin, end): argument 153 if begin < end: 155 while i < end: 160 while i > end:
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/ |
D | SleepSessionFormatterTest.kt | 92 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() constant 93 val record = getRecord(stages = listOf(Stage(start, end, STAGE_TYPE_AWAKE))) in <lambda>() 103 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() constant 104 val record = getRecord(stages = listOf(Stage(start, end, STAGE_TYPE_AWAKE_IN_BED))) in <lambda>() 114 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() constant 115 val record = getRecord(stages = listOf(Stage(start, end, STAGE_TYPE_SLEEPING_DEEP))) in <lambda>() 125 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() constant 126 val record = getRecord(stages = listOf(Stage(start, end, STAGE_TYPE_SLEEPING_LIGHT))) in <lambda>() 136 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>() constant 137 val record = getRecord(stages = listOf(Stage(start, end, STAGE_TYPE_SLEEPING_REM))) in <lambda>() [all …]
|
/packages/modules/Bluetooth/system/gd/packet/parser/ |
D | field_list.h | 40 FieldList(Iterator begin, Iterator end) { in FieldList() argument 41 while (begin != end) { in FieldList() 53 if (it == field_map_.end()) { in GetField() 72 for (auto it = begin(); it != end(); it++) { in GetFieldsBeforePayloadOrBody() 85 for (it = begin(); it != end(); it++) { in GetFieldsAfterPayloadOrBody() 94 return FieldList(it, end()); in GetFieldsAfterPayloadOrBody() 101 if (field_types.find(field->GetFieldType()) != field_types.end()) { in GetFieldsWithTypes() 113 if (field_types.find(field->GetFieldType()) == field_types.end()) { in GetFieldsWithoutTypes() 167 FieldListIterator end() const { in end() function 168 return field_list_.end(); in end() [all …]
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricsManager.cpp | 82 config.whitelisted_atom_ids().end()), in MetricsManager() 191 config.whitelisted_atom_ids().end()); in updateConfig() 223 if (it != UidMap::sAidToUidMapping.end()) { in createAllLogSourcesFromConfig() 242 if (it != UidMap::sAidToUidMapping.end()) { in createAllLogSourcesFromConfig() 257 if (it != UidMap::sAidToUidMapping.end()) { in createAllLogSourcesFromConfig() 312 mAllowedLogSources.insert(mAllowedUid.begin(), mAllowedUid.end()); in initAllowedLogSources() 316 mAllowedLogSources.insert(uids.begin(), uids.end()); in initAllowedLogSources() 329 mCombinedPullAtomUids[atomId].insert(uids.begin(), uids.end()); in initPullAtomSources() 334 mCombinedPullAtomUids[atomId].insert(uids.begin(), uids.end()); in initPullAtomSources() 350 if (std::find(mAllowedPkg.begin(), mAllowedPkg.end(), apk) != mAllowedPkg.end()) { in notifyAppUpgrade() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | IntHistogram.java | 54 public int end; field in IntHistogram.Bucket 57 public Bucket(int start, int end, int count) { in Bucket() argument 59 this.end = end; in Bucket() 123 int end = bucketKey == mBucketBoundaries.length in getBucketByIndex() local 126 return new Bucket(start, end, count); in getBucketByIndex() 178 double highValue = Math.min(hitBucket.end, maximum); in quantileFunction() 267 T convert(int start, int end, int count); in convert() argument 282 output[i] = converter.convert(bucket.start, bucket.end, bucket.count); in toProto() 292 return toProto(HistogramBucketInt32.class, (start, end, count) -> { in toProto() 295 hb.end = end; in toProto()
|