/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationUiAdjustment.java | 83 @NonNull List<Notification.Action> first, @NonNull List<Notification.Action> second) { in areDifferent() argument 84 if (first == second) { in areDifferent() 87 if (first == null || second == null) { in areDifferent() 90 if (first.size() != second.size()) { in areDifferent() 95 Notification.Action secondAction = second.get(i); in areDifferent() 116 private static boolean areDifferent(@Nullable Icon first, @Nullable Icon second) { in areDifferent() argument 117 if (first == second) { in areDifferent() 120 if (first == null || second == null) { in areDifferent() 123 return !first.sameAs(second); in areDifferent() 127 @Nullable RemoteInput[] first, @Nullable RemoteInput[] second) { in areDifferent() argument [all …]
|
/frameworks/base/cmds/statsd/src/guardrail/ |
D | StatsdStats.cpp | 176 it->second->deletion_time_sec = nowTimeSec; in noteConfigRemovedInternalLocked() 177 addToIceBoxLocked(it->second); in noteConfigRemovedInternalLocked() 190 it->second->reset_time_sec = getWallClockSec(); in noteConfigResetInternalLocked() 219 if (it->second->broadcast_sent_time_sec.size() == kMaxTimestampCount) { in noteBroadcastSent() 220 it->second->broadcast_sent_time_sec.pop_front(); in noteBroadcastSent() 222 it->second->broadcast_sent_time_sec.push_back(timeSec); in noteBroadcastSent() 236 auto& vec = activated ? it->second->activation_time_sec in noteActiveStatusChanged() 237 : it->second->deactivation_time_sec; in noteActiveStatusChanged() 284 if (it->second->data_drop_time_sec.size() == kMaxTimestampCount) { in noteDataDropped() 285 it->second->data_drop_time_sec.pop_front(); in noteDataDropped() [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/libs/hwui/pipeline/skia/ |
D | ATraceMemoryDump.cpp | 82 mCategory = categoryIt->second; in dumpStringValue() 92 mCategory = categoryIt->second; in setMemoryBacking() 107 it.second.memory = 0; in startFrame() 109 if (it.second.purgeableMemory != INVALID_MEMORY_SIZE) { in startFrame() 110 it.second.purgeableMemory = 0; in startFrame() 123 hwui_all_frame_memory += it.second.memory; in logTraces() 124 ATRACE_INT64(it.first.c_str(), it.second.memory); in logTraces() 125 if (it.second.purgeableMemory != INVALID_MEMORY_SIZE) { in logTraces() 126 ATRACE_INT64((std::string("Purgeable ") + it.first).c_str(), it.second.purgeableMemory); in logTraces() 150 memoryCounter->second.memory += mLastDumpValue; in recordAndResetCountersIfNeeded() [all …]
|
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/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | AndroidPackageParsingEquivalenceTest.kt | 43 val secondName = it.second?.packageName in applicationInfoEquality() 51 .isEqualTo(it.second?.dumpToString()) in applicationInfoEquality() 77 val secondName = it.second?.packageName in packageInfoEquality() 90 .that(it.second?.dumpToString()) in packageInfoEquality() 94 .that(it.second?.applicationInfo?.dumpToString()) in packageInfoEquality() 98 val secondActivityNames = it.second?.activities?.map { it.name } ?: emptyList() in packageInfoEquality() 104 if (!it.first?.activities.isNullOrEmpty() && !it.second?.activities.isNullOrEmpty()) { in packageInfoEquality() 105 it.first?.activities?.zip(it.second?.activities!!)?.forEach { in packageInfoEquality() 107 .that(it.second.dumpToString()) in packageInfoEquality() 113 val secondReceiverNames = it.second?.receivers?.map { it.name } ?: emptyList() in packageInfoEquality() [all …]
|
/frameworks/base/cmds/statsd/src/packages/ |
D | UidMap.cpp | 81 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/ |
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/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/1.0/ |
D | AccessorImpl.cpp | 99 } else if (iter->second.find(value) == iter->second.end()) { in insert() 100 iter->second.insert(value); in insert() 111 if (iter->second.erase(value) > 0) { in erase() 114 if (iter->second.size() == 0) { in erase() 125 auto setIter = iter->second.find(value); in contains() 126 return setIter != iter->second.end(); in contains() 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() [all …]
|
/frameworks/av/media/bufferpool/2.0/ |
D | AccessorImpl.cpp | 109 } else if (iter->second.find(value) == iter->second.end()) { in insert() 110 iter->second.insert(value); in insert() 121 if (iter->second.erase(value) > 0) { in erase() 124 if (iter->second.size() == 0) { in erase() 135 auto setIter = iter->second.find(value); in contains() 136 return setIter != iter->second.end(); in contains() 245 if (found->second->mSenderValidated && in fetch() 246 found->second->mStatus == BufferStatus::TRANSFER_FROM && in fetch() 247 found->second->mBufferId == bufferId) { in fetch() 248 found->second->mStatus = BufferStatus::TRANSFER_FETCH; in fetch() [all …]
|
/frameworks/base/cmds/statsd/tests/metrics/ |
D | ValueMetricProducer_test.cpp | 81 ASSERT_EQ(expectedValues.size(), mPastBuckets.begin()->second.size()); in assertPastBucketValuesSingleKey() 83 const vector<ValueBucket>& buckets = mPastBuckets.begin()->second; in assertPastBucketValuesSingleKey() 316 valueProducer->mCurrentSlicedBucket.begin()->second[0]; in TEST() 317 ValueMetricProducer::BaseInfo curBaseInfo = valueProducer->mCurrentBaseInfo.begin()->second[0]; in TEST() 324 EXPECT_EQ(8, valueProducer->mPastBuckets.begin()->second[0].values[0].long_value); in TEST() 325 EXPECT_EQ(bucketSizeNs, valueProducer->mPastBuckets.begin()->second[0].mConditionTrueNs); in TEST() 332 curInterval = valueProducer->mCurrentSlicedBucket.begin()->second[0]; in TEST() 333 curBaseInfo = valueProducer->mCurrentBaseInfo.begin()->second[0]; in TEST() 340 ASSERT_EQ(2UL, valueProducer->mPastBuckets.begin()->second.size()); in TEST() 341 EXPECT_EQ(8, valueProducer->mPastBuckets.begin()->second[0].values[0].long_value); in TEST() [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/native/services/gpuservice/gpustats/ |
D | GpuStats.cpp | 246 result->append(ele.second.toString()); in dumpGlobalLocked() 253 result->append(ele.second.toString()); in dumpAppLocked() 296 AStatsEvent_writeString(event, ele.second.appPackageName.c_str()); in pullAppInfoAtom() 297 AStatsEvent_writeInt64(event, ele.second.driverVersionCode); in pullAppInfoAtom() 299 std::string bytes = int64VectorToProtoByteString(ele.second.glDriverLoadingTime); in pullAppInfoAtom() 302 bytes = int64VectorToProtoByteString(ele.second.vkDriverLoadingTime); in pullAppInfoAtom() 305 bytes = int64VectorToProtoByteString(ele.second.angleDriverLoadingTime); in pullAppInfoAtom() 308 AStatsEvent_writeBool(event, ele.second.cpuVulkanInUse); in pullAppInfoAtom() 309 AStatsEvent_writeBool(event, ele.second.falsePrerotation); in pullAppInfoAtom() 310 AStatsEvent_writeBool(event, ele.second.gles1InUse); in pullAppInfoAtom() [all …]
|
/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/base/cmds/statsd/src/config/ |
D | ConfigManager.cpp | 70 if (it != thiz->mConfigReceivers.end() && it->second == pir) { in configReceiverDied() 104 if (it != thiz->mActiveConfigsChangedReceivers.end() && it->second == pir) { in activeConfigChangedReceiverDied() 126 UpdateConfig(pair.first, pair.second); in Startup() 151 auto it = uidIt->second.find(key); in UpdateConfig() 152 if (it == uidIt->second.end() && in UpdateConfig() 153 uidIt->second.size() >= StatsdStats::kMaxConfigCountPerUid) { in UpdateConfig() 160 if (uidIt != mConfigs.end() && uidIt->second.find(key) != uidIt->second.end() && in UpdateConfig() 223 if (uidIt != mConfigs.end() && uidIt->second.find(key) != uidIt->second.end()) { in RemoveConfig() 225 uidIt->second.erase(key); in RemoveConfig() 258 for (auto it = uidIt->second.begin(); it != uidIt->second.end(); ++it) { in RemoveConfigs() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | CallQualityMetrics.java | 183 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/ |
D | stats_log_util.cpp | 470 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_TOTAL_PULL, (long long)pair.second.totalPull); in writePullerStatsToStream() 472 (long long)pair.second.totalPullFromCache); in writePullerStatsToStream() 474 (long long)pair.second.minPullIntervalSec); in writePullerStatsToStream() 476 (long long)pair.second.avgPullTimeNs); in writePullerStatsToStream() 478 (long long)pair.second.maxPullTimeNs); in writePullerStatsToStream() 480 (long long)pair.second.avgPullDelayNs); in writePullerStatsToStream() 482 (long long)pair.second.maxPullDelayNs); in writePullerStatsToStream() 483 protoOutput->write(FIELD_TYPE_INT64 | FIELD_ID_DATA_ERROR, (long long)pair.second.dataError); in writePullerStatsToStream() 485 (long long)pair.second.pullTimeout); in writePullerStatsToStream() 487 (long long)pair.second.pullExceedMaxDelay); in writePullerStatsToStream() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/ |
D | MediaNotificationProcessor.java | 204 Palette.Swatch second) { in selectMutedCandidate() argument 206 boolean secondValid = hasEnoughPopulation(second); in selectMutedCandidate() 209 float secondSaturation = second.getHsl()[1]; in selectMutedCandidate() 210 float populationFraction = first.getPopulation() / (float) second.getPopulation(); in selectMutedCandidate() 214 return second; in selectMutedCandidate() 219 return second; in selectMutedCandidate() 225 Palette.Swatch second) { in selectVibrantCandidate() argument 227 boolean secondValid = hasEnoughPopulation(second); in selectVibrantCandidate() 230 int secondPopulation = second.getPopulation(); in selectVibrantCandidate() 233 return second; in selectVibrantCandidate() [all …]
|
/frameworks/base/cmds/statsd/src/subscriber/ |
D | SubscriberReporter.cpp | 55 auto subscriberMap = subscriberMapIt->second; in broadcastSubscriberDied() 57 if (pirIt != subscriberMap.end() && pirIt->second == pir) { in broadcastSubscriberDied() 92 subscriberMapIt->second.erase(subscriberId); in unsetBroadcastSubscriber() 93 if (subscriberMapIt->second.empty()) { in unsetBroadcastSubscriber() 131 auto it2 = it1->second.find(subscriberId); in alertBroadcastSubscriber() 132 if (it2 == it1->second.end()) { in alertBroadcastSubscriber() 137 sendBroadcastLocked(it2->second, configKey, subscription, cookies, dimKey); in alertBroadcastSubscriber() 162 auto pirMapIt = subscriberMapIt->second.find(subscriberId); in getBroadcastSubscriber() 163 if (pirMapIt == subscriberMapIt->second.end()) { in getBroadcastSubscriber() 166 return pirMapIt->second; in getBroadcastSubscriber()
|
/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() 212 if (it != mWholeParams.end() && it->second.coreIndex() == desc->index().coreIndex()) { in addParamDesc() 228 return it->second; in getParamName() 265 const FieldDesc &desc = kv.second; in getParamIndicesForKeys() 284 const FieldDesc &desc = kv.second; in getKeysForParamIndex() 313 param = paramIt->second; in updateParamsFromMessage() [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/services/audiopolicy/engine/common/src/ |
D | ProductStrategy.cpp | 175 if (iter.second->matches(attr)) { in getProductStrategyForAttributes() 176 return iter.second->getId(); in getProductStrategyForAttributes() 187 const auto strategy = iter.second; in getAttributesForStreamType() 201 audio_stream_type_t stream = iter.second->getStreamTypeForAttributes(attr); in getStreamTypeForAttributes() 217 if (iter.second->isDefault()) { in getDefault() 218 ALOGV("%s: using default %s", __FUNCTION__, iter.second->getName().c_str()); in getDefault() 219 return iter.second->getId(); in getDefault() 239 if (iter.second->supportStreamType(stream)) { in getProductStrategyForStream() 240 return iter.second->getId(); in getProductStrategyForStream() 278 volume_group_t group = iter.second->getVolumeGroupForAttributes(attr); in getVolumeGroupForAttributes() [all …]
|