Home
last modified time | relevance | path

Searched refs:found (Results 1 – 25 of 275) sorted by relevance

1234567891011

/frameworks/av/services/mediaresourcemanager/
DResourceManagerMetrics.cpp148 std::map<std::string, int>::iterator found = mConcurrentResourceCountMap.find(clientInfo.name); in notifyClientCreated() local
149 if (found == mConcurrentResourceCountMap.end()) { in notifyClientCreated()
152 found->second++; in notifyClientCreated()
161 ClientConfigMap::iterator found = mClientConfigMap.find(clientInfo.id); in notifyClientReleased() local
162 if (found != mClientConfigMap.end()) { in notifyClientReleased()
165 clientConfig = found->second; in notifyClientReleased()
177 std::map<std::string, int>::iterator found = in notifyClientReleased() local
179 if (found != mConcurrentResourceCountMap.end()) { in notifyClientReleased()
180 if (found->second > 0) { in notifyClientReleased()
181 found->second--; in notifyClientReleased()
[all …]
DUidObserver.cpp70 std::map<uid_t, std::set<int32_t>>::iterator found = mUids.find(uid); in add() local
71 if (found != mUids.end()) { in add()
72 found->second.insert(pid); in add()
132 std::map<uid_t, std::set<int32_t>>::iterator found = mUids.find(uid); in onUidGone() local
133 if (found != mUids.end()) { in onUidGone()
134 if (found->second.size() == 1) { in onUidGone()
135 terminatedPids.push_back(*(found->second.begin())); in onUidGone()
137 mUids.erase(found); in onUidGone()
142 std::copy(found->second.begin(), found->second.end(), std::back_inserter(pids)); in onUidGone()
146 found->second.erase(pid); in onUidGone()
[all …]
DClientImportanceReclaimPolicy.cpp50 bool found = false; in getClients() local
52 for (size_t index = 1; !found && (index < reclaimRequestInfo.mResources.size()); index++) { in getClients()
55 found = mResourceTracker->getLeastImportantBiggestClient( in getClients()
62 if (!found) { in getClients()
63 found = mResourceTracker->getLeastImportantBiggestClient( in getClients()
71 if (!found) { in getClients()
DResourceTracker.cpp59 std::vector<ClientInfo>::const_iterator found = in contains() local
65 return found != clients.end(); in contains()
84 std::map<int, ResourceInfos>::iterator found = mMap.find(pid); in getResourceInfosForEdit() local
85 if (found == mMap.end()) { in getResourceInfosForEdit()
89 found = it; in getResourceInfosForEdit()
92 return found->second; in getResourceInfosForEdit()
142 ResourceInfos::iterator found = infos.find(clientInfo.id); in updateResource() local
143 if (found == infos.end()) { in updateResource()
147 found->second.importance = std::max(0, clientInfo.importance); in updateResource()
162 std::map<int, ResourceInfos>::iterator found = mMap.find(pid); in removeResource() local
[all …]
DProcessPriorityReclaimPolicy.cpp62 bool found = false; in getClients() local
65 for (size_t index = 1; !found && (index < reclaimRequestInfo.mResources.size()); index++) { in getClients()
68 found = getBiggestClientFromLowestPriority(callingPid, callingPriority, in getClients()
73 if (!found) { in getClients()
74 found = getBiggestClientFromLowestPriority(callingPid, callingPriority, in getClients()
81 if (!found) { in getClients()
/frameworks/base/tools/bit/
Dadb.cpp358 bool found = false; in find_penultimate_entry() local
366 found = true; in find_penultimate_entry()
370 if (!found) { in find_penultimate_entry()
381 get_bundle_string(const ResultsBundle& bundle, bool* found, ...) in get_bundle_string() argument
384 va_start(args, found); in get_bundle_string()
388 *found = false; in get_bundle_string()
392 *found = true; in get_bundle_string()
395 *found = false; in get_bundle_string()
400 get_bundle_int(const ResultsBundle& bundle, bool* found, ...) in get_bundle_int() argument
403 va_start(args, found); in get_bundle_int()
[all …]
Dadb.h41 string get_bundle_string(const ResultsBundle& bundle, bool* found, ...);
42 int32_t get_bundle_int(const ResultsBundle& bundle, bool* found, ...);
43 float get_bundle_float(const ResultsBundle& bundle, bool* found, ...);
44 double get_bundle_double(const ResultsBundle& bundle, bool* found, ...);
45 int64_t get_bundle_long(const ResultsBundle& bundle, bool* found, ...);
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListSetSelectionTest.java73 boolean found = false; in testSetSelection()
78 found = true; in testSetSelection()
82 assertTrue("Selected item not visible in list", found); in testSetSelection()
104 boolean found = false; in testSetSelectionFromTop()
110 found = true; in testSetSelectionFromTop()
114 assertTrue("Selected item not visible in list", found); in testSetSelectionFromTop()
139 boolean found = false; in testSetSelection0()
144 found = true; in testSetSelection0()
148 assertTrue("Selected item not visible in list", found); in testSetSelection0()
/frameworks/base/cmds/incident_helper/src/
Dih_util.cpp67 size_t found; in split() local
69 found = line.find_first_of(delimiters, base); in split()
70 if (found != base) { in split()
71 std::string word = (*func) (line.substr(base, found - base)); in split()
76 if (found == line.npos) break; in split()
77 base = found + 1; in split()
212 auto found = line->find_first_of(cut); in behead() local
213 if (found == std::string::npos) { in behead()
218 std::string head = line->substr(0, found); in behead()
219 while(line->at(found) == cut) found++; // trim more cut of the rest in behead()
[all …]
/frameworks/compile/libbcc/bcinfo/Wrap/
Din_memory_wrapper_input.cpp30 size_t found = 0; in Read() local
36 while (found < wanted) { in Read()
38 return found; in Read()
40 buffer[found++] = _buffer[_pos++]; in Read()
42 return found; in Read()
/frameworks/base/services/tests/servicestests/src/com/android/server/flags/
DFeatureFlagsServiceTest.java133 boolean found = false; in testSyncFlags_noOverrides()
136 found = true; in testSyncFlags_noOverrides()
141 .that(found).isTrue(); in testSyncFlags_noOverrides()
160 boolean found = false; in testSyncFlags_withSomeOverrides()
163 found = true; in testSyncFlags_withSomeOverrides()
174 .that(found).isTrue(); in testSyncFlags_withSomeOverrides()
197 boolean found = false; in testSyncFlags_twoCallsWithDifferentDefaults()
200 found = true; in testSyncFlags_twoCallsWithDifferentDefaults()
208 .that(found).isTrue(); in testSyncFlags_twoCallsWithDifferentDefaults()
224 boolean found = false; in testQueryFlags_onlyOnce()
[all …]
/frameworks/av/camera/ndk/impl/
DACameraDevice.cpp421 bool found = false; in allocateCaptureRequest() local
429 found = true; in allocateCaptureRequest()
435 if (found) { in allocateCaptureRequest()
439 if (!found) { in allocateCaptureRequest()
984 bool found = msg->findPointer(kContextKey, &context); in onMessageReceived() local
985 if (!found) { in onMessageReceived()
993 found = msg->findPointer(kDeviceKey, (void**) &dev); in onMessageReceived()
994 if (!found || dev == nullptr) { in onMessageReceived()
999 found = msg->findPointer(kCallbackFpKey, (void**) &onDisconnected); in onMessageReceived()
1000 if (!found) { in onMessageReceived()
[all …]
/frameworks/av/camera/ndk/ndk_vendor/impl/
DACameraDevice.cpp393 bool found = false; in allocateCaptureRequestLocked() local
405 found = true; in allocateCaptureRequestLocked()
411 if (found) { in allocateCaptureRequestLocked()
415 if (!found) { in allocateCaptureRequestLocked()
974 bool found = msg->findPointer(kContextKey, &context); in onMessageReceived() local
975 if (!found) { in onMessageReceived()
983 found = msg->findPointer(kDeviceKey, (void**) &dev); in onMessageReceived()
984 if (!found || dev == nullptr) { in onMessageReceived()
989 found = msg->findPointer(kCallbackFpKey, (void**) &onDisconnected); in onMessageReceived()
990 if (!found) { in onMessageReceived()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DForegroundServicesUserState.java56 final boolean found; in removeOp()
59 found = false; in removeOp()
61 found = keys.remove(op); in removeOp()
66 return found; in removeOp()
102 final boolean found; in removeNotification()
105 found = false; in removeNotification()
107 found = keys.remove(key); in removeNotification()
112 return found; in removeNotification()
/frameworks/base/cmds/incidentd/tests/
DReporter_test.cpp88 map<int, int>::const_iterator found = startSections.find(sectionId); in sectionStarted() local
89 if (found != startSections.end()) { in sectionStarted()
90 return found->second; in sectionStarted()
97 map<int, int>::const_iterator found = finishSections.find(sectionId); in sectionFinished() local
98 if (found != finishSections.end()) { in sectionFinished()
99 return found->second; in sectionFinished()
/frameworks/av/media/module/libmediaformatshaper/
DCodecSeeding.cpp111 bool found = false; in addMediaDefaults() local
113 found = true; in addMediaDefaults()
116 if (!found && (r = strchr(p->mediaType, '*')) != NULL) { in addMediaDefaults()
120 found = true; in addMediaDefaults()
124 if (!found) { in addMediaDefaults()
/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/
DAsmAnalyzerTest.java111 TreeMap<String, ClassReader> found = new TreeMap<>(); in testFindClass() local
114 zipClasses, found); in testFindClass()
119 found.keySet().toArray()); in testFindClass()
120 assertArrayEquals(new ClassReader[] { cr }, found.values().toArray()); in testFindClass()
162 TreeMap<String, ClassReader> found = new TreeMap<>(); in testFindClassesDerivingFrom() local
164 AsmAnalyzer.findClassesDerivingFrom("mock_android.view.View", zipClasses, found); in testFindClassesDerivingFrom()
172 found.keySet().toArray()); in testFindClassesDerivingFrom()
174 for (String key : found.keySet()) { in testFindClassesDerivingFrom()
175 ClassReader value = found.get(key); in testFindClassesDerivingFrom()
/frameworks/native/libs/gui/
DBufferQueueProducer.cpp286 std::unique_lock<std::mutex>& lock, int* found) const { in waitForFreeSlotThenRelock()
321 *found = BufferQueueCore::INVALID_BUFFER_SLOT; in waitForFreeSlotThenRelock()
338 *found = mCore->mSharedBufferSlot; in waitForFreeSlotThenRelock()
344 *found = slot; in waitForFreeSlotThenRelock()
346 *found = getFreeSlotLocked(); in waitForFreeSlotThenRelock()
352 *found = slot; in waitForFreeSlotThenRelock()
354 *found = getFreeBufferLocked(); in waitForFreeSlotThenRelock()
363 tryAgain = (*found == BufferQueueCore::INVALID_BUFFER_SLOT) || in waitForFreeSlotThenRelock()
460 int found = BufferItem::INVALID_BUFFER_SLOT; in dequeueBuffer() local
461 while (found == BufferItem::INVALID_BUFFER_SLOT) { in dequeueBuffer()
[all …]
/frameworks/base/tools/streaming_proto/
Dstring_utils.cpp96 size_t base = 0, found = 0; in split() local
98 found = str.find_first_of(delimiter, base); in split()
99 if (found != base) { in split()
100 string part = str.substr(base, found - base); in split()
105 if (found == str.npos) break; in split()
106 base = found + 1; in split()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSimulatedGsmCallState.java282 boolean found; in triggerHangupForeground()
284 found = false; in triggerHangupForeground()
294 found = true; in triggerHangupForeground()
307 found = true; in triggerHangupForeground()
310 return found; in triggerHangupForeground()
321 boolean found = false; in triggerHangupBackground()
328 found = true; in triggerHangupBackground()
332 return found; in triggerHangupBackground()
343 boolean found = false; in triggerHangupAll()
349 found = true; in triggerHangupAll()
[all …]
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
DWifiClientTest.java126 boolean found = false; in testAddRemoveNetwork()
129 found = true; in testAddRemoveNetwork()
132 assertTrue(found); in testAddRemoveNetwork()
140 found = false; in testAddRemoveNetwork()
143 found = true; in testAddRemoveNetwork()
147 assertFalse(found); in testAddRemoveNetwork()
221 boolean found = false; in testSaveConfig()
224 found = true; in testSaveConfig()
227 assertTrue(found); in testSaveConfig()
/frameworks/av/media/module/bufferpool/1.0/
DAccessorImpl.cpp211 auto found = mBufferPool.mTransactions.find(transactionId); in fetch() local
212 if (found != mBufferPool.mTransactions.end() && in fetch()
215 if (found->second->mSenderValidated && in fetch()
216 found->second->mStatus == BufferStatus::TRANSFER_FROM && in fetch()
217 found->second->mBufferId == bufferId) { in fetch()
218 found->second->mStatus = BufferStatus::TRANSFER_FETCH; in fetch()
307 auto found = mTransactions.find(message.transactionId); in handleTransferTo() local
308 if (found != mTransactions.end()) { in handleTransferTo()
310 found->second->mSender = message.connectionId; in handleTransferTo()
311 found->second->mSenderValidated = true; in handleTransferTo()
[all …]
/frameworks/native/services/surfaceflinger/FrontEnd/
DSwapErase.h27 bool found = false; in swapErase() local
32 found = true; in swapErase()
34 return found; in swapErase()
/frameworks/av/media/libeffects/factory/
DEffectsFactoryState.c39 int found = 0; in findEffect() local
42 while (e && !found) { in findEffect()
48 found = 1; in findEffect()
52 found = 1; in findEffect()
59 if (!found) { in findEffect()
/frameworks/libs/modules-utils/build/include/android-modules-utils/
Dunbounded_sdk_level.h95 bool found = false; in isKnownCodename() local
97 while (!found && (p = strtok_r(saveptr, ",", &saveptr))) { in isKnownCodename()
99 found = true; in isKnownCodename()
103 return found; in isKnownCodename()

1234567891011