/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationUiAdjustment.java | 76 @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/ |
D | ViewAsserts.java | 124 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/ |
D | DurationMetricProducer.cpp | 221 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/ |
D | StatsdStats.cpp | 175 it->second->deletion_time_sec = nowTimeSec; in noteConfigRemovedInternalLocked() 176 addToIceBoxLocked(it->second); in noteConfigRemovedInternalLocked() 189 it->second->reset_time_sec = getWallClockSec(); in noteConfigResetInternalLocked() 218 if (it->second->broadcast_sent_time_sec.size() == kMaxTimestampCount) { in noteBroadcastSent() 219 it->second->broadcast_sent_time_sec.pop_front(); in noteBroadcastSent() 221 it->second->broadcast_sent_time_sec.push_back(timeSec); in noteBroadcastSent() 235 auto& vec = activated ? it->second->activation_time_sec in noteActiveStatusChanged() 236 : it->second->deactivation_time_sec; in noteActiveStatusChanged() 283 if (it->second->data_drop_time_sec.size() == kMaxTimestampCount) { in noteDataDropped() 284 it->second->data_drop_time_sec.pop_front(); in noteDataDropped() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | map_util.h | 78 return it->second; 88 return it->second; 98 return it->second; 108 return it->second; 130 return it->second; 143 return &it->second; 155 return &it->second; 172 return it->second; 187 return it->second; 202 return it->second.get(); [all …]
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaMemoryTracer.cpp | 38 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/av/media/bufferpool/1.0/ |
D | AccessorImpl.cpp | 98 } 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() 209 if (found->second->mSenderValidated && in fetch() 210 found->second->mStatus == BufferStatus::TRANSFER_FROM && in fetch() 211 found->second->mBufferId == bufferId) { in fetch() 212 found->second->mStatus = BufferStatus::TRANSFER_FETCH; in fetch() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/csharp/src/Google.Protobuf.Test/ |
D | EqualityTester.cs | 45 public static void AssertEquality<T>(T first, T second) where T : IEquatable<T> 47 Assert.IsTrue(first.Equals(second)); 48 Assert.IsTrue(first.Equals((object) second)); 49 Assert.AreEqual(first.GetHashCode(), second.GetHashCode()); 52 public static void AssertInequality<T>(T first, T second) where T : IEquatable<T> 54 Assert.IsFalse(first.Equals(second)); 55 Assert.IsFalse(first.Equals((object) second)); 58 if (first != null && second != null) 60 Assert.AreNotEqual(first.GetHashCode(), second.GetHashCode());
|
/frameworks/base/core/java/android/util/ |
D | Pair.java | 28 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/base/cmds/statsd/src/packages/ |
D | UidMap.cpp | 85 return it != mMap.end() && !it->second.deleted; in hasApp() 102 if (kv.first.first == uid && !kv.second.deleted) { in getAppNamesFromUidLocked() 103 names.insert(returnNormalized ? normalizeAppName(kv.first.second) : kv.first.second); in getAppNamesFromUidLocked() 113 if (it == mMap.end() || it->second.deleted) { in getAppVersion() 116 return it->second.versionCode; in getAppVersion() 130 if (kv.second.deleted) { in updateMap() 131 deletedApps[kv.first] = kv.second; in updateMap() 147 mMap[kv.first] = kv.second; in updateMap() 182 prevVersion = it->second.versionCode; in updateApp() 183 prevVersionString = it->second.versionString; in updateApp() [all …]
|
/frameworks/av/include/media/ |
D | Interpolator.h | 73 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/2.0/ |
D | AccessorImpl.cpp | 105 } 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() 226 if (found->second->mSenderValidated && in fetch() 227 found->second->mStatus == BufferStatus::TRANSFER_FROM && in fetch() 228 found->second->mBufferId == bufferId) { in fetch() 229 found->second->mStatus = BufferStatus::TRANSFER_FETCH; in fetch() [all …]
|
/frameworks/base/cmds/statsd/src/config/ |
D | ConfigManager.cpp | 59 UpdateConfig(pair.first, pair.second); in Startup() 84 auto it = uidIt->second.find(key); in UpdateConfig() 85 if (it == uidIt->second.end() && in UpdateConfig() 86 uidIt->second.size() >= StatsdStats::kMaxConfigCountPerUid) { in UpdateConfig() 93 if (uidIt != mConfigs.end() && uidIt->second.find(key) != uidIt->second.end() && in UpdateConfig() 149 if (uidIt != mConfigs.end() && uidIt->second.find(key) != uidIt->second.end()) { in RemoveConfig() 151 uidIt->second.erase(key); in RemoveConfig() 154 if (uidIt->second.empty()) { in RemoveConfig() 198 for (auto it = uidIt->second.begin(); it != uidIt->second.end(); ++it) { in RemoveConfigs() 233 for (auto it = uidIt->second.begin(); it != uidIt->second.end();) { in RemoveAllConfigs() [all …]
|
/frameworks/opt/chips/tests/src/com/android/ex/chips/ |
D | ChipsTest.java | 185 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/ |
D | DurationAnomalyTracker.cpp | 49 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/ |
D | OmxStore.cpp | 70 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/ |
D | CallQualityMetrics.java | 193 if (mWorstSsWithGoodDlQuality == null || ss < mWorstSsWithGoodDlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots() 196 if (mBestSsWithGoodDlQuality == null || ss > mBestSsWithGoodDlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots() 200 if (mWorstSsWithBadDlQuality == null || ss < mWorstSsWithBadDlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots() 203 if (mBestSsWithBadDlQuality == null || ss > mBestSsWithBadDlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots() 210 if (mWorstSsWithGoodUlQuality == null || ss < mWorstSsWithGoodUlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots() 213 if (mBestSsWithGoodUlQuality == null || ss > mBestSsWithGoodUlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots() 217 if (mWorstSsWithBadUlQuality == null || ss < mWorstSsWithBadUlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots() 220 if (mBestSsWithBadUlQuality == null || ss > mBestSsWithBadUlQuality.second) { in updateMinAndMaxSignalStrengthSnapshots() 275 summary.worstSsWithGoodQuality = toProto(mWorstSsWithGoodDlQuality.second); in getCallQualitySummaryDl() 280 summary.bestSsWithGoodQuality = toProto(mBestSsWithGoodDlQuality.second); in getCallQualitySummaryDl() [all …]
|
/frameworks/base/cmds/statsd/src/ |
D | stats_log_util.cpp | 358 const std::vector<int>& bytesFields = itr->second; in writeFieldValueTreeToStreamHelper() 461 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TOTAL_PULL, (long long)pair.second.totalPull); in writePullerStatsToStream() 463 (long long)pair.second.totalPullFromCache); in writePullerStatsToStream() 465 (long long)pair.second.minPullIntervalSec); in writePullerStatsToStream() 467 (long long)pair.second.avgPullTimeNs); in writePullerStatsToStream() 469 (long long)pair.second.maxPullTimeNs); in writePullerStatsToStream() 471 (long long)pair.second.avgPullDelayNs); in writePullerStatsToStream() 473 (long long)pair.second.maxPullDelayNs); in writePullerStatsToStream() 474 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_DATA_ERROR, (long long)pair.second.dataError); in writePullerStatsToStream() 476 (long long)pair.second.pullTimeout); in writePullerStatsToStream() [all …]
|
/frameworks/base/cmds/statsd/src/metrics/duration_helper/ |
D | MaxDurationTracker.cpp | 47 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/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | MediaNotificationProcessor.java | 198 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/native/services/surfaceflinger/Scheduler/ |
D | LayerHistory.cpp | 77 layerInfo = layerInfoIterator->second; in insert() 83 layerInfo = layerInfoIterator->second; in insert() 101 layerInfo = layerInfoIterator->second; in setVisibility() 109 layerInfo = layerInfoIterator->second; in setVisibility() 155 if (!it->second->isVisible() || in removeIrrelevantLayers() 156 (!it->second->getHDRContent() && it->second->getLastUpdatedTime() < obsoleteEpsilon)) { in removeIrrelevantLayers() 160 ALOGD("Layer %s obsolete", it->second->getName().c_str()); in removeIrrelevantLayers() 162 std::string layerName = "LFPS " + it->second->getName(); in removeIrrelevantLayers() 166 auto layerInfo = it->second; in removeIrrelevantLayers()
|
/frameworks/av/services/camera/libcameraservice/api2/ |
D | HeicEncoderInfoManager.cpp | 62 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/ |
D | ResourceFilter.cpp | 39 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/ |
D | gl_env.cpp | 53 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/ |
D | ReflectedParamUpdater.cpp | 53 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 …]
|