Home
last modified time | relevance | path

Searched refs:second (Results 1 – 25 of 786) sorted by relevance

12345678910>>...32

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationUiAdjustment.java76 @NonNull List<Notification.Action> first, @NonNull List<Notification.Action> second) { in areDifferent() argument
77 if (first == second) { in areDifferent()
80 if (first == null || second == null) { in areDifferent()
83 if (first.size() != second.size()) { in areDifferent()
88 Notification.Action secondAction = second.get(i); in areDifferent()
109 private static boolean areDifferent(@Nullable Icon first, @Nullable Icon second) { in areDifferent() argument
110 if (first == second) { in areDifferent()
113 if (first == null || second == null) { in areDifferent()
116 return !first.sameAs(second); in areDifferent()
120 @Nullable RemoteInput[] first, @Nullable RemoteInput[] second) { in areDifferent() argument
[all …]
/frameworks/base/test-runner/src/android/test/
DViewAsserts.java124 static public void assertBaselineAligned(View first, View second) { in assertBaselineAligned() argument
129 second.getLocationOnScreen(xy); in assertBaselineAligned()
130 int secondTop = xy[1] + second.getBaseline(); in assertBaselineAligned()
142 static public void assertRightAligned(View first, View second) { in assertRightAligned() argument
147 second.getLocationOnScreen(xy); in assertRightAligned()
148 int secondRight = xy[0] + second.getMeasuredWidth(); in assertRightAligned()
161 static public void assertRightAligned(View first, View second, int margin) { in assertRightAligned() argument
166 second.getLocationOnScreen(xy); in assertRightAligned()
167 int secondRight = xy[0] + second.getMeasuredWidth(); in assertRightAligned()
179 static public void assertLeftAligned(View first, View second) { in assertLeftAligned() argument
[all …]
/frameworks/base/cmds/statsd/src/metrics/
DDurationMetricProducer.cpp221 for (auto& condIt : whatIt.second) { in onSlicedConditionMayChangeLocked_opt1()
222 condIt.second->onConditionChanged( in onSlicedConditionMayChangeLocked_opt1()
237 for (auto& condIt : whatIt.second) { in onSlicedConditionMayChangeLocked_opt1()
238 condIt.second->onConditionChanged(true, eventTime); in onSlicedConditionMayChangeLocked_opt1()
243 for (auto& condIt : whatIt.second) { in onSlicedConditionMayChangeLocked_opt1()
244 condIt.second->onConditionChanged(false, eventTime); in onSlicedConditionMayChangeLocked_opt1()
300 auto condIt = whatIt.second.find(changedDim); in onSlicedConditionMayChangeLocked_opt2()
301 if (condIt != whatIt.second.end()) { in onSlicedConditionMayChangeLocked_opt2()
302 condIt->second->onConditionChanged(false, eventTime); in onSlicedConditionMayChangeLocked_opt2()
314 auto condIt = whatIt.second.find(trueDim); in onSlicedConditionMayChangeLocked_opt2()
[all …]
/frameworks/base/cmds/statsd/src/guardrail/
DStatsdStats.cpp174 it->second->deletion_time_sec = nowTimeSec; in noteConfigRemovedInternalLocked()
175 addToIceBoxLocked(it->second); in noteConfigRemovedInternalLocked()
188 it->second->reset_time_sec = getWallClockSec(); in noteConfigResetInternalLocked()
217 if (it->second->broadcast_sent_time_sec.size() == kMaxTimestampCount) { in noteBroadcastSent()
218 it->second->broadcast_sent_time_sec.pop_front(); in noteBroadcastSent()
220 it->second->broadcast_sent_time_sec.push_back(timeSec); in noteBroadcastSent()
234 auto& vec = activated ? it->second->activation_time_sec in noteActiveStatusChanged()
235 : it->second->deactivation_time_sec; in noteActiveStatusChanged()
282 if (it->second->data_drop_time_sec.size() == kMaxTimestampCount) { in noteDataDropped()
283 it->second->data_drop_time_sec.pop_front(); in noteDataDropped()
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaMemoryTracer.cpp38 return resource.second; in mapName()
49 mTotalSize.value += sizeResult->second.value; in processElement()
60 mPurgeableSize.value += purgeableResult->second.value; in processElement()
68 type = typeResult->second.units; in processElement()
83 resourceName = categoryResult->second.units; in processElement()
99 auto& resourceValues = result->second; in processElement()
102 SkASSERT(sizeResult->second.units == typeResult->second.units); in processElement()
103 typeResult->second.value += sizeResult->second.value; in processElement()
104 typeResult->second.count++; in processElement()
106 resourceValues.insert({key, sizeResult->second}); in processElement()
[all …]
/frameworks/base/cmds/statsd/src/packages/
DUidMap.cpp81 return it != mMap.end() && !it->second.deleted; in hasApp()
98 if (kv.first.first == uid && !kv.second.deleted) { in getAppNamesFromUidLocked()
99 names.insert(returnNormalized ? normalizeAppName(kv.first.second) : kv.first.second); in getAppNamesFromUidLocked()
109 if (it == mMap.end() || it->second.deleted) { in getAppVersion()
112 return it->second.versionCode; in getAppVersion()
126 if (kv.second.deleted) { in updateMap()
127 deletedApps[kv.first] = kv.second; in updateMap()
143 mMap[kv.first] = kv.second; in updateMap()
175 prevVersion = it->second.versionCode; in updateApp()
176 prevVersionString = it->second.versionString; in updateApp()
[all …]
/frameworks/base/core/java/android/util/
DPair.java28 public final S second; field in Pair
36 public Pair(F first, S second) { in Pair() argument
38 this.second = second; in Pair()
55 return Objects.equals(p.first, first) && Objects.equals(p.second, second); in equals()
65 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode()); in hashCode()
70 return "Pair{" + String.valueOf(first) + " " + String.valueOf(second) + "}"; in toString()
/frameworks/av/media/bufferpool/2.0/
DAccessorImpl.cpp105 } else if (iter->second.find(value) == iter->second.end()) { in insert()
106 iter->second.insert(value); in insert()
117 if (iter->second.erase(value) > 0) { in erase()
120 if (iter->second.size() == 0) { in erase()
131 auto setIter = iter->second.find(value); in contains()
132 return setIter != iter->second.end(); in contains()
227 if (found->second->mSenderValidated && in fetch()
228 found->second->mStatus == BufferStatus::TRANSFER_FROM && in fetch()
229 found->second->mBufferId == bufferId) { in fetch()
230 found->second->mStatus = BufferStatus::TRANSFER_FETCH; in fetch()
[all …]
/frameworks/av/include/media/
DInterpolator.h73 return this->rbegin()->second; in findY()
77 return high->second; in findY()
86 return high->first == x ? high->second : low->second; in findY()
88 return ((high->first - x) * low->second + (x - low->first) * high->second) in findY()
102 return low->second + std::get<0>(memo) * t in findY()
133 sec = (high->second - low->second) / interval; in findY()
135 ? (low->second - low2->second) / (low->first - low2->first) in findY()
138 ? (high2->second - high->second) / (high2->first - high->first) in findY()
147 ? (high->second - low2->second) / (high->first - low2->first) in findY()
151 ? (high2->second - low->second) / (high2->first - low->first) in findY()
[all …]
/frameworks/av/media/bufferpool/1.0/
DAccessorImpl.cpp98 } else if (iter->second.find(value) == iter->second.end()) { in insert()
99 iter->second.insert(value); in insert()
110 if (iter->second.erase(value) > 0) { in erase()
113 if (iter->second.size() == 0) { in erase()
124 auto setIter = iter->second.find(value); in contains()
125 return setIter != iter->second.end(); in contains()
210 if (found->second->mSenderValidated && in fetch()
211 found->second->mStatus == BufferStatus::TRANSFER_FROM && in fetch()
212 found->second->mBufferId == bufferId) { in fetch()
213 found->second->mStatus = BufferStatus::TRANSFER_FETCH; in fetch()
[all …]
/frameworks/base/cmds/statsd/src/config/
DConfigManager.cpp55 UpdateConfig(pair.first, pair.second); in Startup()
80 auto it = uidIt->second.find(key); in UpdateConfig()
81 if (it == uidIt->second.end() && in UpdateConfig()
82 uidIt->second.size() >= StatsdStats::kMaxConfigCountPerUid) { in UpdateConfig()
89 if (uidIt != mConfigs.end() && uidIt->second.find(key) != uidIt->second.end() && in UpdateConfig()
145 if (uidIt != mConfigs.end() && uidIt->second.find(key) != uidIt->second.end()) { in RemoveConfig()
147 uidIt->second.erase(key); in RemoveConfig()
150 if (uidIt->second.empty()) { in RemoveConfig()
194 for (auto it = uidIt->second.begin(); it != uidIt->second.end(); ++it) { in RemoveConfigs()
229 for (auto it = uidIt->second.begin(); it != uidIt->second.end();) { in RemoveAllConfigs()
[all …]
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java185 String second = (String) mTokenizer.terminateToken("SECOND"); in testSanitizeBetween() local
188 mEditable.append(first + extra + second); in testSanitizeBetween()
191 int secondStart = mEditable.toString().indexOf(second); in testSanitizeBetween()
192 int secondEnd = secondStart + second.trim().length(); in testSanitizeBetween()
199 assertEquals(editableString.indexOf(second), secondStart - extra.length()); in testSanitizeBetween()
200 assertEquals(editableString, (first + second)); in testSanitizeBetween()
222 String second = (String) mTokenizer.terminateToken("SECOND"); in testSanitizeEnd() local
225 mEditable.append(first + second); in testSanitizeEnd()
228 int secondStart = mEditable.toString().indexOf(second); in testSanitizeEnd()
229 int secondEnd = secondStart + second.trim().length(); in testSanitizeEnd()
[all …]
/frameworks/base/cmds/statsd/src/anomaly/
DDurationAnomalyTracker.cpp49 mAlarmMonitor->remove(itr->second); in startAlarm()
67 if (itr->second != nullptr && timestampNs >= (int64_t)NS_PER_SEC * itr->second->timestampSec) { in stopAlarm()
70 itr->second->timestampSec); in stopAlarm()
73 mAlarmMonitor->remove(itr->second); in stopAlarm()
81 mAlarmMonitor->remove(itr.second); in cancelAllAlarms()
98 if (firedAlarms.count(kv.second) > 0) { in informAlarmsFired()
99 matchedAlarms.insert({kv.first, kv.second}); in informAlarmsFired()
107 mAlert.trigger_if_sum_gt() + (timestampNs / NS_PER_SEC) - kv.second->timestampSec); in informAlarmsFired()
109 firedAlarms.erase(kv.second); // No one else can also own it, so we're done with it. in informAlarmsFired()
/frameworks/av/media/libstagefright/omx/1.0/
DOmxStore.cpp70 attribute.value = attributePair.second; in OmxStore()
81 role.type = rolePair.second.type; in OmxStore()
82 role.isEncoder = rolePair.second.isEncoder; in OmxStore()
85 nodeList.resize(rolePair.second.nodeList.size()); in OmxStore()
87 for (const auto& nodePair : rolePair.second.nodeList) { in OmxStore()
88 if (!nodes.count(nodePair.second.name)) { in OmxStore()
90 if (!strncasecmp(nodePair.second.name.c_str(), "omx.", 4)) { in OmxStore()
91 LOG(INFO) << "node [" << nodePair.second.name.c_str() << "] not found in IOmx"; in OmxStore()
96 node.name = nodePair.second.name; in OmxStore()
99 attributeList.resize(nodePair.second.attributeList.size()); in OmxStore()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DCallQualityMetrics.java183 if (mWorstSsWithGoodDlQuality == null || ss < mWorstSsWithGoodDlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots()
186 if (mBestSsWithGoodDlQuality == null || ss > mBestSsWithGoodDlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots()
190 if (mWorstSsWithBadDlQuality == null || ss < mWorstSsWithBadDlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots()
193 if (mBestSsWithBadDlQuality == null || ss > mBestSsWithBadDlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots()
200 if (mWorstSsWithGoodUlQuality == null || ss < mWorstSsWithGoodUlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots()
203 if (mBestSsWithGoodUlQuality == null || ss > mBestSsWithGoodUlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots()
207 if (mWorstSsWithBadUlQuality == null || ss < mWorstSsWithBadUlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots()
210 if (mBestSsWithBadUlQuality == null || ss > mBestSsWithBadUlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots()
257 summary.totalBadQualityDurationInSeconds = totalGoodAndBadDurations.second / 1000; in getCallQualitySummaryDl()
267 summary.worstSsWithGoodQuality = toProto(mWorstSsWithGoodDlQuality.second); in getCallQualitySummaryDl()
[all …]
/frameworks/base/cmds/statsd/src/
Dstats_log_util.cpp354 const std::vector<int>& bytesFields = itr->second; in writeFieldValueTreeToStreamHelper()
457 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TOTAL_PULL, (long long)pair.second.totalPull); in writePullerStatsToStream()
459 (long long)pair.second.totalPullFromCache); in writePullerStatsToStream()
461 (long long)pair.second.minPullIntervalSec); in writePullerStatsToStream()
463 (long long)pair.second.avgPullTimeNs); in writePullerStatsToStream()
465 (long long)pair.second.maxPullTimeNs); in writePullerStatsToStream()
467 (long long)pair.second.avgPullDelayNs); in writePullerStatsToStream()
469 (long long)pair.second.maxPullDelayNs); in writePullerStatsToStream()
470 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_DATA_ERROR, (long long)pair.second.dataError); in writePullerStatsToStream()
472 (long long)pair.second.pullTimeout); in writePullerStatsToStream()
[all …]
DStatsLogProcessor.cpp118 itr.second->onAnomalyAlarmFired(timestampNs, alarmSet); in onAnomalyAlarmFired()
127 itr.second->onPeriodicAlarmFired(timestampNs, alarmSet); in onPeriodicAlarmFired()
153 int uidField = it->second; // uidField is the field number in proto, in mapIsolatedUidToHostUidIfNecessaryLocked()
239 bool isPrevActive = pair.second->isActive(); in OnLogEvent()
240 pair.second->onLogEvent(*event); in OnLogEvent()
241 bool isCurActive = pair.second->isActive(); in OnLogEvent()
246 activeConfigs->second.push_back(configId); in OnLogEvent()
259 flushIfNecessaryLocked(event->GetElapsedTimestampNs(), pair.first, *(pair.second)); in OnLogEvent()
266 if (currentTimestampNs - lastBroadcastTime->second < in OnLogEvent()
275 if (mSendActivationBroadcast(uid, activeConfigs->second)) { in OnLogEvent()
[all …]
/frameworks/base/cmds/statsd/src/metrics/duration_helper/
DMaxDurationTracker.cpp47 if (it->second.state != kStopped) { in clone()
48 it->second.lastStartTime = eventTime; in clone()
49 it->second.lastDuration = 0; in clone()
171 if (pair.second.state == kStarted) { in anyStarted()
209 if (it->second.state == DurationState::kStopped) { in flushCurrentBucket()
252 if (pair.second.state == kStopped) { in onSlicedConditionMayChange()
257 mConditionTrackerIndex, pair.second.conditionKeys, mDimensionInCondition, in onSlicedConditionMayChange()
284 switch (it->second.state) { in noteConditionChanged()
290 it->second.state = DurationState::kPaused; in noteConditionChanged()
291 it->second.lastDuration += (timestamp - it->second.lastStartTime); in noteConditionChanged()
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DLayerHistory.cpp79 layerInfo = layerInfoIterator->second; in insert()
85 layerInfo = layerInfoIterator->second; in insert()
103 layerInfo = layerInfoIterator->second; in setVisibility()
111 layerInfo = layerInfoIterator->second; in setVisibility()
157 if (!it->second->isVisible() || in removeIrrelevantLayers()
158 (!it->second->getHDRContent() && it->second->getLastUpdatedTime() < obsoleteEpsilon)) { in removeIrrelevantLayers()
162 ALOGD("Layer %s obsolete", it->second->getName().c_str()); in removeIrrelevantLayers()
164 std::string layerName = "LFPS " + it->second->getName(); in removeIrrelevantLayers()
168 auto layerInfo = it->second; in removeIrrelevantLayers()
184 auto layerInfo = it->second; in clearHistory()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DMediaNotificationProcessor.java198 Palette.Swatch second) { in selectMutedCandidate() argument
200 boolean secondValid = hasEnoughPopulation(second); in selectMutedCandidate()
203 float secondSaturation = second.getHsl()[1]; in selectMutedCandidate()
204 float populationFraction = first.getPopulation() / (float) second.getPopulation(); in selectMutedCandidate()
208 return second; in selectMutedCandidate()
213 return second; in selectMutedCandidate()
218 private Palette.Swatch selectVibrantCandidate(Palette.Swatch first, Palette.Swatch second) { in selectVibrantCandidate() argument
220 boolean secondValid = hasEnoughPopulation(second); in selectVibrantCandidate()
223 int secondPopulation = second.getPopulation(); in selectVibrantCandidate()
226 return second; in selectVibrantCandidate()
[all …]
/frameworks/av/services/camera/libcameraservice/api2/
DHeicEncoderInfoManager.cpp62 height >= mMinSizeHeic.second && width <= mMaxSizeHeic.first && in isSizeSupported()
63 height <= mMaxSizeHeic.second) { in isSizeSupported()
68 height >= mMinSizeHevc.second && in isSizeSupported()
70 height <= mMaxSizeHevc.second); in isSizeSupported()
99 int32_t avgFps = (closestSize->second.first + closestSize->second.second)/2; in isSizeSupported()
101 (closestSize->first.first * closestSize->first.second); in isSizeSupported()
203 minSize->second = stoi(match[2]); in getCodecSizeRange()
205 maxSize->second = stoi(match[4]); in getCodecSizeRange()
207 minSize->second > maxSize->second) { in getCodecSizeRange()
232 int32_t diff = abs(iter->first.first * iter->first.second - width * height); in findClosestSize()
[all …]
/frameworks/base/tools/aapt/
DResourceFilter.cpp39 entry.second = mDefault.diff(entry.first); in parse()
42 entry.second &= ~ResTable_config::CONFIG_VERSION; in parse()
45 if ((entry.second & ResTable_config::CONFIG_DENSITY) != 0) { in parse()
48 entry.second &= ~ResTable_config::CONFIG_DENSITY; in parse()
51 mConfigMask |= entry.second; in parse()
111 if ((diff & entry.second) == 0) { in match()
113 matchedAxis |= entry.second; in match()
114 } else if ((diff & entry.second) == ResTable_config::CONFIG_LOCALE) { in match()
132 } else if ((diff & entry.second) == ResTable_config::CONFIG_SMALLEST_SCREEN_SIZE) { in match()
/frameworks/base/media/mca/filterfw/native/core/
Dgl_env.cpp53 eglDestroySurface(display(), it->second.first); in ~GLEnv()
54 if (it->second.second) { in ~GLEnv()
55 it->second.second->Destroy(); in ~GLEnv()
56 delete it->second.second; in ~GLEnv()
66 eglDestroyContext(display(), it->second); in ~GLEnv()
237 if (surface_window_pair->second) { in ReleaseSurfaceId()
238 surface_window_pair->second->Destroy(); in ReleaseSurfaceId()
239 delete surface_window_pair->second; in ReleaseSurfaceId()
254 surface_window_pair->second->InternalHandle()); in SetSurfaceTimestamp()
266 const WindowHandle* my_handle = it->second.second; in FindSurfaceIdForWindow()
/frameworks/av/media/codec2/sfplugin/
DReflectedParamUpdater.cpp53 if (it.second.find(&c2Value)) { in debugString()
89 } else if (it.second.find(&int32Value)) { in debugString()
91 } else if (it.second.find(&int64Value)) { in debugString()
93 } else if (it.second.find(&strValue)) { in debugString()
95 } else if (it.second.find(&bufValue)) { in debugString()
224 if (it != mWholeParams.end() && it->second.coreIndex() == desc->index().coreIndex()) { in addParamDesc()
240 return it->second; in getParamName()
277 const FieldDesc &desc = kv.second; in getParamIndicesForKeys()
311 param = paramIt->second; in updateParamsFromMessage()
366 const FieldDesc &desc = kv.second; in parseMessageAndDoWork()
[all …]
/frameworks/native/services/surfaceflinger/tests/hwc2/
DHwc2TestLayers.cpp44 testLayer.second.setZOrder(nextZOrder--); in Hwc2TestLayers()
54 dmp << testLayer.second.dump(); in dump()
62 testLayer.second.reset(); in reset()
74 if (itr->second.advance()) { in advance()
80 itr->second.reset(); in advance()
93 if (itr->second.advanceVisibleRegion()) { in advanceVisibleRegions()
99 itr->second.reset(); in advanceVisibleRegions()
145 return testLayer->second.getBufferArea(); in getBufferArea()
251 const hwc_rect_t displayFrame = testLayer.second.getDisplayFrame(); in setVisibleRegions()
260 testLayer.second.setVisibleRegion(visibleRegion); in setVisibleRegions()
[all …]

12345678910>>...32