Home
last modified time | relevance | path

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

123456

/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()
57 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeTune() local
59 if (it == sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeTune()
63 dvbManager = it->second; in Java_com_android_tv_tuner_TunerHal_nativeTune()
78 std::map<jlong, DvbManager *>::iterator it = sDvbManagers.find(deviceId); in Java_com_android_tv_tuner_TunerHal_nativeCloseAllPidFilters() local
79 if (it != sDvbManagers.end()) { in Java_com_android_tv_tuner_TunerHal_nativeCloseAllPidFilters()
80 it->second->closeAllDvbPidFilter(); in Java_com_android_tv_tuner_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/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/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/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 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`.
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…
Dtutorial.md30 Parse it into a `Document`:
116 … between JSON types. If a value is a string, it is invalid to call `GetInt()`, for example. In deb…
162 Note that, when `operator[](const char*)` cannot find the member, it will fail an assertion.
178 When a Number is parsed, it is stored in the DOM as either one of the following type:
245 There are several ways to create values. After a DOM tree is created and/or modified, it can be sav…
290 …ecially when we need to create temporary object, copy it to another variable, and then destruct it.
308 The object `o` needs to allocate a buffer of same size as contacts, makes a deep clone of it, and t…
312 …ich transfer ownership during assignment. Move is much faster and simpler, it just destructs the o…
329 This is called move assignment operator in C++11. As RapidJSON supports C++03, it adopts move seman…
333 Sometimes, it is convenient to construct a Value in place, before passing it to one of the "moving"…
[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/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.
43 - `android.car.bugreport.disableautoupload` - set it to `true` to disable auto-upload to Google
68 * In rare cases it might not upload the bugreport, depending Android's
74 * Dumpstate (bugreport) - it should contain logs and other information.
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpLeaseRepository.java147 final Iterator<Entry<Inet4Address, T>> it = map.entrySet().iterator(); in cleanMap() local
148 while (it.hasNext()) { in cleanMap()
149 final Inet4Address addr = it.next().getKey(); in cleanMap()
151 it.remove(); in cleanMap()
386 final Iterator<Entry<Inet4Address, T>> it = map.entrySet().iterator(); in removeExpired() local
388 while (it.hasNext()) { in removeExpired()
389 final Entry<Inet4Address, T> lease = it.next(); in removeExpired()
394 it.remove(); in removeExpired()
530 final Iterator<Inet4Address> it = mDeclinedAddrs.keySet().iterator(); in makeNewOffer() local
531 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/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/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/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()
/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.
/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()

123456