Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 179) sorted by relevance

12345678

/packages/apps/TV/jni/
Dtunertvinput_jni.cpp42 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeFinalize() local
43 if (it != sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeFinalize()
44 delete it->second; in Java_com_android_tv_tuner_TunerHal_nativeFinalize()
45 sDvbManagers.erase(it); in Java_com_android_tv_tuner_TunerHal_nativeFinalize()
58 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I() local
60 if (it == sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I()
64 dvbManager = it->second; in Java_com_android_tv_tuner_TunerHal_nativeTune__JILjava_lang_String_2I()
80 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I() local
82 if (it == sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I()
87 dvbManager = it->second; in Java_com_android_tv_tuner_TunerHal_nativeTune__JIILjava_lang_String_2I()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
Dheader_read_write_utils.cpp97 AttributeMap::const_iterator it = headerAttributes->find(keyVector); in readCodePointTable() local
98 if (it == headerAttributes->end()) { in readCodePointTable()
101 return it->second.data(); in readCodePointTable()
141 for (AttributeMap::const_iterator it = headerAttributes->begin(); in writeHeaderAttributes() local
142 it != headerAttributes->end(); ++it) { in writeHeaderAttributes()
143 if (it->first.empty() || it->second.empty()) { in writeHeaderAttributes()
147 if (!buffer->writeCodePointsAndAdvancePosition(&(it->first.at(0)), it->first.size(), in writeHeaderAttributes()
152 if (!buffer->writeCodePointsAndAdvancePosition(&(it->second.at(0)), it->second.size(), in writeHeaderAttributes()
193 AttributeMap::const_iterator it = headerAttributes->find(keyVector); in readCodePointVectorAttributeValue() local
194 if (it == headerAttributes->end()) { in readCodePointVectorAttributeValue()
[all …]
/packages/modules/DnsResolver/
DDnsTlsQueryMap.cpp45 const auto [it, inserted] = mQueries.try_emplace(newId, q); in recordQuery()
50 return std::make_unique<QueryFuture>(q, it->second.result.get_future()); in recordQuery()
60 auto it = mQueries.find(newId); in markTried() local
61 if (it != mQueries.end()) { in markTried()
62 it->second.tries++; in markTried()
68 for (auto it = mQueries.begin(); it != mQueries.end();) { in cleanup() local
69 auto& p = it->second; in cleanup()
72 it = mQueries.erase(it); in cleanup()
74 ++it; in cleanup()
135 auto it = mQueries.find(id); in onResponse() local
[all …]
DDnsTlsDispatcher.cpp156 auto it = mStore.find(key); in query() local
157 if (it == mStore.end()) { in query()
161 xport = it->second.get(); in query()
209 for (auto it = mStore.begin(); it != mStore.end();) { in cleanup() local
210 auto& s = it->second; in cleanup()
212 it = mStore.erase(it); in cleanup()
214 ++it; in cleanup()
DPrivateDnsConfiguration.cpp128 for (auto it = tracker.begin(); it != tracker.end();) { in set() local
129 if (tlsServers.count(it->first) == 0) { in set()
130 it = tracker.erase(it); in set()
132 ++it; in set()
274 for (const auto& it : listeners) { in recordPrivateDnsValidation() local
275 it->onPrivateDnsValidationEvent(netId, addrToString(&server.ss), server.name, success); in recordPrivateDnsValidation()
/packages/apps/DeskClock/src/com/android/deskclock/settings/
DSettingsActivity.kt110 val hasVibrator: Boolean = (it.getContext() in onCreatePreferences()
112 it.setVisible(hasVibrator) in onCreatePreferences()
215 it.setEntryValues(timezones.timeZoneIds) in loadTimeZoneList()
216 it.setEntries(timezones.timeZoneNames) in loadTimeZoneList()
217 it.setSummary(homeTimezonePref.getEntry()) in loadTimeZoneList()
218 it.setOnPreferenceChangeListener(this) in loadTimeZoneList()
225 val delay: String = it.getValue() in refresh()
226 updateAutoSnoozeSummary(it, delay) in refresh()
227 it.setOnPreferenceChangeListener(this) in refresh()
232 it.setSummary(it.getEntry()) in refresh()
[all …]
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Darguments_and_options.h46 const auto &it = mOptions.find(optionName); in getOptionValue() local
47 ASSERT(it != mOptions.end()); in getOptionValue()
48 return it->second; in getOptionValue()
52 const auto &it = mArguments.find(name); in hasArgument() local
53 return it != mArguments.end() && !it->second.empty(); in hasArgument()
57 const auto &it = mArguments.find(name); in getSingleArgument() local
58 ASSERT(it != mArguments.end() && !it->second.empty()); in getSingleArgument()
59 return it->second.front(); in getSingleArgument()
63 const auto &it = mArguments.find(name); in getVariableLengthArguments() local
64 ASSERT(it != mArguments.end()); in getVariableLengthArguments()
[all …]
Darguments_parser.cpp115 const auto it = mOptionSpecs.find(optionName); in parseArguments() local
116 if (it == mOptionSpecs.end()) { in parseArguments()
123 if (it->second.needsValue()) { in parseArguments()
150 const auto &it = arguments.find(argumentSpecIt->getName()); in parseArguments() local
152 const size_t actualcount = it == arguments.end() ? 0 : it->second.size(); in parseArguments()
/packages/modules/NetworkStack/tests/unit/src/com/android/net/module/util/
DTrackRecordTest.kt81 TEST_VALUES.forEach { record.add(it) } in <lambda>()
97 TEST_VALUES.forEach { record.add(it) } in <lambda>()
98 TEST_VALUES.forEach { assertTrue(record.contains(it)) } in <lambda>()
123 TEST_VALUES.forEach { record.add(it) } in <lambda>()
125 record.zip(TEST_VALUES).forEach { assertEquals(it.first, it.second) } in <lambda>()
127 record.reversed().zip(TEST_VALUES.reversed()).forEach { assertEquals(it.first, it.second) } in <lambda>()
133 TEST_VALUES.forEach { record.add(it) } in <lambda>()
141 assertNotEquals(ABSENT_VALUE, it) in <lambda>()
149 TEST_VALUES.forEach { record.add(it) } in <lambda>()
166 assertEquals(9, record.poll(0, 2) { it > 5 }) in <lambda>()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/
Dproximity_info_state_utils.cpp338 for (NearKeysDistanceMap::const_iterator it = prevNearKeysDistances->begin(); in isPrevLocalMin() local
339 it != prevNearKeysDistances->end(); ++it) { in isPrevLocalMin()
340 NearKeysDistanceMap::const_iterator itPP = prevPrevNearKeysDistances->find(it->first); in isPrevLocalMin()
341 NearKeysDistanceMap::const_iterator itC = currentNearKeysDistances->find(it->first); in isPrevLocalMin()
343 || itPP->second > it->second + ProximityInfoParams::MARGIN_FOR_PREV_LOCAL_MIN); in isPrevLocalMin()
345 || itC->second > it->second + ProximityInfoParams::MARGIN_FOR_PREV_LOCAL_MIN); in isPrevLocalMin()
766 for (std::unordered_map<int, float>::iterator it = (*charProbabilities)[i].begin(); in updateAlignPointProbabilities() local
767 it != (*charProbabilities)[i].end(); ++it) { in updateAlignPointProbabilities()
768 if (it->first == NOT_AN_INDEX) { in updateAlignPointProbabilities()
769 sstream << it->first in updateAlignPointProbabilities()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dfaq.md9 …a C++ library for parsing and generating JSON. You may check all [features](doc/features.md) of it.
21 …Yes, it is free under MIT license. It can be used in commercial applications. Please check the det…
35 …compilers and CPU architecture by the community. But we cannot ensure that it can be run on your p…
39 …RapidJSON was firstly implemented for C++03. Later it added optional support of some C++11 feature…
145 … to achieve that is to modify the `address` definition above to initialize it with allocator of th…
151 …t want to explicitly refer to the root value of `address` by name, we can refer to it via iterator:
179 …ring contains null characters, `strlen()` cannot return the true length of it. In such case user m…
185 5. Does it convert between numerical types?
187it only convert when it is safe (otherwise it will assert). However, when converting a 64-bit sign…
195 2. Can I pause the parsing process and resume it later?
[all …]
Dinternals.md17 … well. So, in addition to stringify a DOM to JSON, user may also stringify it to a XML writer, or …
27 …typedef of `GenericValue<UTF8<>>`) is the core of DOM API. This section describes the design of it.
113 Number is a bit more complicated. For normal integer values, it can contains `kIntFlag`, `kUintFlag…
117 …r to a string, it is possible to store short strings in these space internally. For encoding with …
125 …ied. Instead of storing the length of string directly, it stores (MaxChars - length). This make it
143 …(Design issue: since some allocator may not book-keep this, explicitly pass to it can save memory.)
159it allocates chunks of memory from the base allocator (by default `CrtAllocator`) and stores the c…
161 1. User supplied buffer if it is available. (See [User Buffer section in DOM](dom.md))
186 …rrently RapidJSON only supports SSE2 and SSE4.2 instructions for this. And it is only activated fo…
200 …tings. Running the executable on a machine without such instruction set support will make it crash.
[all …]
Dsax.md11 `Reader` parses a JSON from a stream. While it reads characters from the stream, it analyze the cha…
27 While a `Reader` parses this JSON, it publishes the following events to the handler sequentially:
122 When the `Reader` encounters a JSON number, it chooses a suitable C++ type mapping. And then it cal…
126 …eginning of an object, it calls `StartObject()`. An object in JSON is a set of name-value pairs. I…
128 …ning of an array, the `Reader` calls `BeginArary()`. If there is elements, it calls functions acco…
130 …andler functions returns a `bool`. Normally it should returns `true`. If the handler encounters an…
174 If an error occurs during parsing, it will return `false`. User can also calls `bool HasParseEror()…
180 …s some data into JSON, it may be a good choice to use `Writer` directly, instead of building a `Do…
226 …ameters in `EndArray()` and `EndObject()`. An `SizeType` can be passed but it will be simply ignor…
231 …ere is incorrect event sequence (e.g. `Int()` just after `StartObject()`), it generates assertion …
[all …]
Dstream.md53 When the buffer is full, it will increases the capacity automatically. The default capacity is 256 …
68 … file into buffer, and then let the part be parsed. If it runs out of characters in the buffer, it
126 … However, UTF-16 and UTF-32 have endian issue. To handle endian correctly, it needs to convert byt…
128it also need to handle [byte order mark (BOM)](http://en.wikipedia.org/wiki/Byte_order_mark). When…
130 … the stream can be UTF-8, UTF-16LE, UTF-16BE, UTF-32LE, UTF-32BE JSON, and it is only known in run…
161 `EncodedOutputStream` is similar but it has a `bool putBOM` parameter in the constructor, controlli…
187 … first. If BOM is unavailable, it will use characteristics of valid JSON to make detection. If ne…
276 …ent them. However, if the interface is not needed for a particular stream, it is still need to a p…
315 User can use it to wrap instances of `std::stringstream`, `std::ifstream`.
357 User can use it to wrap instances of `std::stringstream`, `std::ofstream`.
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dbigram_dict_content.cpp149 for (TerminalPositionLookupTable::TerminalIdMap::const_iterator it = terminalIdMap->begin(); in runGC() local
150 it != terminalIdMap->end(); ++it) { in runGC()
152 originalBigramDictContent->getBigramListHeadPos(it->first); in runGC()
172 if (!getUpdatableAddressLookupTable()->set(it->second, bigramListPos)) { in runGC()
174 it->second, bigramListPos); in runGC()
197 TerminalPositionLookupTable::TerminalIdMap::const_iterator it = in runGCBigramList() local
199 if (it == terminalIdMap->end()) { in runGCBigramList()
205 originalBigramEntry.updateTargetTerminalIdAndGetEntry(it->second); in runGCBigramList()
Dprobability_dict_content.cpp106 for (TerminalPositionLookupTable::TerminalIdMap::const_iterator it = terminalIdMap->begin(); in runGC() local
107 it != terminalIdMap->end(); ++it) { in runGC()
109 originalProbabilityDictContent->getProbabilityEntry(it->first); in runGC()
110 if (!setProbabilityEntry(it->second, &probabilityEntry)) { in runGC()
111 AKLOGE("Cannot set probability entry in runGC. terminalId: %d", it->second); in runGC()
Dshortcut_dict_content.cpp80 for (TerminalPositionLookupTable::TerminalIdMap::const_iterator it = terminalIdMap->begin(); in runGC() local
81 it != terminalIdMap->end(); ++it) { in runGC()
83 originalShortcutDictContent->getShortcutListHeadPos(it->first); in runGC()
96 if (!getUpdatableAddressLookupTable()->set(it->second, shortcutListPos)) { in runGC()
98 it->second, shortcutListPos); in runGC()
/packages/services/Car/tests/BugReportApp/
DREADME.md11 4. If bugreporting is already running it shows in progress dialog
12 5. Otherwise it creates MetaBugReport record in a local db and starts recording audio message.
13 6. When the submit button is clicked, it saves the audio message in temp directory and starts
18 and when finished it updates MetaBugReport using BugStorageProvider.
19 9. BugStorageProvider is running under u0, it schedules UploadJob.
29 use it's APIs, by default it's none.
47 - `android.car.bugreport.force_enable` - set it `true` to enable bugreport app on **all builds**.
81 * In rare cases it might not upload the bugreport, depending Android's
89 * Dumpstate (bugreport) - it should contain logs and other information.
/packages/modules/DnsResolver/tests/dns_responder/
Ddns_responder.cpp128 auto it = kTypeStrs.find(dnstype); in dnstype2str() local
130 if (it == kTypeStrs.end()) return kUnknownStr; in dnstype2str()
131 return it->second; in dnstype2str()
139 auto it = kClassStrs.find(dnsclass); in dnsclass2str() local
141 if (it == kClassStrs.end()) return kUnknownStr; in dnsclass2str()
142 return it->second; in dnsclass2str()
779 std::unordered_map<QueryKey, std::string, QueryKeyHash>::const_iterator it; in addAnswerRecords() local
780 while ((it = mappings_.find(QueryKey(rname, rtype))) != mappings_.end()) { in addAnswerRecords()
788 if (cnames_Loop.find(it->first.name) != cnames_Loop.end()) break; in addAnswerRecords()
789 cnames_Loop.insert(it->first.name); in addAnswerRecords()
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLeaseRepository.java165 final Iterator<Entry<Inet4Address, T>> it = map.entrySet().iterator(); in cleanMap() local
167 while (it.hasNext()) { in cleanMap()
168 final Inet4Address addr = it.next().getKey(); in cleanMap()
170 it.remove(); in cleanMap()
477 final Iterator<Entry<Inet4Address, T>> it = map.entrySet().iterator(); in removeExpired() local
479 while (it.hasNext()) { in removeExpired()
480 final Entry<Inet4Address, T> lease = it.next(); in removeExpired()
485 it.remove(); in removeExpired()
624 final Iterator<Inet4Address> it = mDeclinedAddrs.keySet().iterator(); in makeNewOffer() local
625 while (it.hasNext()) { in makeNewOffer()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
Dsuggestion_results.cpp101 for (auto it = suggestedWords.rbegin(); it != suggestedWords.rend(); ++it) { in dumpSuggestions() local
102 DUMP_SUGGESTION(it->getCodePoint(), it->getCodePointCount(), index, it->getScore()); in dumpSuggestions()
/packages/services/Car/evs/manager/
DVirtualCamera.cpp164 auto it = mFramesHeld.begin(); in doneWithFrame() local
165 while (it != mFramesHeld.end()) { in doneWithFrame()
166 if (it->bufferId == buffer.bufferId) { in doneWithFrame()
170 ++it; in doneWithFrame()
172 if (it == mFramesHeld.end()) { in doneWithFrame()
177 mFramesHeld.erase(it); in doneWithFrame()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dshortcut_dict_content.cpp65 for (TerminalPositionLookupTable::TerminalIdMap::const_iterator it = terminalIdMap->begin(); in runGC() local
66 it != terminalIdMap->end(); ++it) { in runGC()
68 originalShortcutDictContent->getShortcutListHeadPos(it->first); in runGC()
81 if (!getUpdatableAddressLookupTable()->set(it->second, shortcutListPos)) { in runGC()
83 it->second, shortcutListPos); in runGC()
/packages/apps/Nfc/nci/jni/
DRouteDataSet.cpp137 Database::iterator it; in deleteDatabase() local
139 for (it = mDefaultRouteDatabase.begin(); it != mDefaultRouteDatabase.end(); in deleteDatabase()
140 it++) in deleteDatabase()
141 delete (*it); in deleteDatabase()
144 for (it = mSecElemRouteDatabase.begin(); it != mSecElemRouteDatabase.end(); in deleteDatabase()
145 it++) in deleteDatabase()
146 delete (*it); in deleteDatabase()
/packages/apps/Dialer/java/com/android/dialer/theme/
DREADME.md3 First thing to note, it's imperative that the application and all activities
5 a style for it's theme, it automatically inherits one from the Application. And
27 well if it exists.
32 provide an attribute to tint all of your ImageViews (why would it?), so we
61 it and store it in your own resource directory.

12345678