Home
last modified time | relevance | path

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

1234

/packages/apps/TV/usbtuner/jni/
Dtunertvinput_jni.cpp43 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_usbtuner_TunerHal_nativeFinalize() local
44 if (it != sDvbManagers.end()) { in Java_com_android_usbtuner_TunerHal_nativeFinalize()
45 delete it->second; in Java_com_android_usbtuner_TunerHal_nativeFinalize()
46 sDvbManagers.erase(it); in Java_com_android_usbtuner_TunerHal_nativeFinalize()
58 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_usbtuner_TunerHal_nativeTune() local
60 if (it == sDvbManagers.end()) { in Java_com_android_usbtuner_TunerHal_nativeTune()
64 dvbManager = it->second; in Java_com_android_usbtuner_TunerHal_nativeTune()
78 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_usbtuner_TunerHal_nativeCloseAllPidFilters() local
79 if (it != sDvbManagers.end()) { in Java_com_android_usbtuner_TunerHal_nativeCloseAllPidFilters()
80 it->second->closeAllDvbPidFilter(); in Java_com_android_usbtuner_TunerHal_nativeCloseAllPidFilters()
[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/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/apps/Nfc/nci/jni/extns/pn54x/src/utils/
DphNxpConfig.cpp565 for (const_iterator it = begin (), itEnd = end (); it != itEnd; ++it) in find() local
567 if (**it < p_name) in find()
571 else if (**it == p_name) in find()
573 if ((*it)->str_len () > 0) in find()
575 NXPLOG_EXTNS_D ("%s found %s=%s\n", __func__, p_name, (*it)->str_value()); in find()
579 NXPLOG_EXTNS_D ("%s found %s=(0x%lx)\n", __func__, p_name, (*it)->numValue()); in find()
581 return *it; in find()
603 for (iterator it = begin (), itEnd = end (); it != itEnd; ++it) in clean() local
604 delete *it; in clean()
625 …for (list<const CNxpNfcParam*>::iterator it = m_list.begin (), itEnd = m_list.end (); it != itEnd;… in add() local
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/
DBuilder.java68 ChildNodeIterator it = new ChildNodeIterator(node); in buildAddress() local
69 Node n = it.nextNode(); in buildAddress()
78 Node n2 = it.nextNode(); in buildAddress()
99 ChildNodeIterator it = new ChildNodeIterator(node); in buildGroupBody() local
100 while (it.hasNext()) { in buildGroupBody()
101 Node n = it.nextNode(); in buildGroupBody()
111 ChildNodeIterator it = new ChildNodeIterator(node); in buildMailbox() local
112 Node n = it.nextNode(); in buildMailbox()
128 ChildNodeIterator it = new ChildNodeIterator(node); in buildNameAddr() local
129 Node n = it.nextNode(); in buildNameAddr()
[all …]
/packages/services/Telephony/src/org/apache/james/mime4j/field/address/
DBuilder.java68 ChildNodeIterator it = new ChildNodeIterator(node); in buildAddress() local
69 Node n = it.nextNode(); in buildAddress()
78 Node n2 = it.nextNode(); in buildAddress()
99 ChildNodeIterator it = new ChildNodeIterator(node); in buildGroupBody() local
100 while (it.hasNext()) { in buildGroupBody()
101 Node n = it.nextNode(); in buildGroupBody()
111 ChildNodeIterator it = new ChildNodeIterator(node); in buildMailbox() local
112 Node n = it.nextNode(); in buildMailbox()
128 ChildNodeIterator it = new ChildNodeIterator(node); in buildNameAddr() local
129 Node n = it.nextNode(); in buildNameAddr()
[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/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.cpp104 for (TerminalPositionLookupTable::TerminalIdMap::const_iterator it = terminalIdMap->begin(); in runGC() local
105 it != terminalIdMap->end(); ++it) { in runGC()
107 originalProbabilityDictContent->getProbabilityEntry(it->first); in runGC()
108 if (!setProbabilityEntry(it->second, &probabilityEntry)) { in runGC()
109 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/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 …]
Dencoding.md34 … memory, they are often stored in the computer's endianness. However, when it is stored in file or…
80 As shown in the declaration, each encoding has a `CharType` template parameter. Actually, it may be…
90 …ch encoding to be used according to the input or output stream. Currently, it should be used with …
108 ASCII can be used in input stream. If the input stream contains bytes with values above 127, it wil…
110 ASCII *cannot* be used in memory (encoding of `Document` or target encoding of `Reader`), as it can…
114 When RapidJSON parses a JSON, it can validate the input JSON, whether it is a valid sequence of a s…
116 …EncodingFlag` is not necessary, as it must decode the input sequence. And if the sequence was unab…
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 d…
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/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/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
DMultipart.java92 for (Iterator<BodyPart> it = bodyParts.iterator(); it.hasNext();) { in setParent()
93 it.next().setParent(parent); in setParent()
131 for (Iterator<BodyPart> it = bodyParts.iterator(); it.hasNext();) { in setBodyParts()
132 it.next().setParent(parent); in setBodyParts()
/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.cpp144 Database::iterator it; in deleteDatabase() local
146 for (it = mDefaultRouteDatabase.begin(); it != mDefaultRouteDatabase.end(); it++) in deleteDatabase()
147 delete (*it); in deleteDatabase()
150 for (it = mSecElemRouteDatabase.begin(); it != mSecElemRouteDatabase.end(); it++) in deleteDatabase()
151 delete (*it); in deleteDatabase()
/packages/services/Telephony/src/org/apache/commons/io/
DIOUtils.java830 for (Iterator<Object> it = lines.iterator(); it.hasNext(); ) { in writeLines()
831 Object line = it.next(); in writeLines()
866 for (Iterator<Object> it = lines.iterator(); it.hasNext(); ) { in writeLines()
867 Object line = it.next(); in writeLines()
895 for (Iterator<Object> it = lines.iterator(); it.hasNext(); ) { in writeLines()
896 Object line = it.next(); in writeLines()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_writing_helper.cpp171 TerminalPositionLookupTable::TerminalIdMap::const_iterator it = in onVisitingPtNode() local
173 if (it == mTerminalIdMap->end()) { in onVisitingPtNode()
178 if (!mPtNodeWriter->updateTerminalId(ptNodeParams, it->second)) { in onVisitingPtNode()
179 AKLOGE("Cannot update terminal id. %d -> %d", it->first, it->second); in onVisitingPtNode()
/packages/apps/Calendar/src/com/android/calendar/
DAsyncQueryServiceHelper.java182 Iterator<OperationInfo> it = sWorkQueue.iterator(); in getLastCancelableOperation() local
183 while (it.hasNext()) { in getLastCancelableOperation()
184 OperationInfo info = it.next(); in getLastCancelableOperation()
219 Iterator<OperationInfo> it = sWorkQueue.iterator(); in cancelOperation() local
220 while (it.hasNext()) { in cancelOperation()
221 if (it.next().token == token) { in cancelOperation()
222 it.remove(); in cancelOperation()
/packages/apps/Calendar/src/com/android/calendar/alerts/
DGlobalDismissManager.java292 Iterator<Map.Entry<LocalDismissId, Long>> it = in syncSenderDismissCache() local
294 while (it.hasNext()) { in syncSenderDismissCache()
295 Map.Entry<LocalDismissId, Long> entry = it.next(); in syncSenderDismissCache()
317 it.remove(); in syncSenderDismissCache()
330 it.remove(); in syncSenderDismissCache()
484 Iterator<Map.Entry<GlobalDismissId, Long>> it = in syncReceiverDismissCache() local
486 while (it.hasNext()) { in syncReceiverDismissCache()
487 Map.Entry<GlobalDismissId, Long> entry = it.next(); in syncReceiverDismissCache()
510 it.remove(); in syncReceiverDismissCache()
518 it.remove(); in syncReceiverDismissCache()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DIOUtils.java905 for (Iterator<Object> it = lines.iterator(); it.hasNext(); ) { in writeLines()
906 Object line = it.next(); in writeLines()
941 for (Iterator<Object> it = lines.iterator(); it.hasNext(); ) { in writeLines()
942 Object line = it.next(); in writeLines()
970 for (Iterator<Object> it = lines.iterator(); it.hasNext(); ) { in writeLines()
971 Object line = it.next(); in writeLines()

1234