/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/native/libs/renderengine/skia/debug/ |
D | SkiaMemoryReporter.cpp | 40 return resource.second; in mapName() 65 if (sizeResult != mCurrentValues.end() && sizeResult->second.value > 0) { in processCurrentElement() 67 mTotalSize.value += sizeResult->second.value; in processCurrentElement() 78 mPurgeableSize.value += purgeableResult->second.value; in processCurrentElement() 93 auto& resourceValues = result->second; in processCurrentElement() 96 ALOGE_IF(sizeResult->second.units != totalResult->second.units, in processCurrentElement() 99 totalResult->second.value += sizeResult->second.value; in processCurrentElement() 100 totalResult->second.count++; in processCurrentElement() 106 results.insert({resourceName, {{sizeResult->first, sizeResult->second}}}); in processCurrentElement() 138 const auto categoryItem = resultsMap.find(resourceCategory.second); in logOutput() [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() 96 auto& resourceValues = result->second; in processElement() 99 SkASSERT(sizeResult->second.units == typeResult->second.units); in processElement() 100 typeResult->second.value += sizeResult->second.value; in processElement() 101 typeResult->second.count++; in processElement() 103 resourceValues.insert({key, sizeResult->second}); in processElement() [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/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/core/java/android/util/ |
D | Pair.java | 30 public final S second; field in Pair 38 public Pair(F first, S second) { in Pair() argument 40 this.second = second; in Pair() 57 return Objects.equals(p.first, first) && Objects.equals(p.second, second); in equals() 67 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode()); in hashCode() 72 return "Pair{" + String.valueOf(first) + " " + String.valueOf(second) + "}"; in toString()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationCoreApiTest.kt | 65 assertion = { first, second -> in <lambda>() method 66 assertAll<DomainVerificationRequest, Set<String>>(first, second, in <lambda>() 84 assertion = { first, second -> in <lambda>() method 85 assertAll<DomainVerificationInfo, UUID>(first, second, in <lambda>() 88 assertAll<DomainVerificationInfo, String>(first, second, in <lambda>() 91 assertAll<DomainVerificationInfo, Map<String, Int?>>(first, second, in <lambda>() 109 assertion = { first, second -> in <lambda>() method 110 assertAll<DomainVerificationUserState, UUID>(first, second, in <lambda>() 113 assertAll<DomainVerificationUserState, String>(first, second, in <lambda>() 116 assertAll<DomainVerificationUserState, UserHandle>(first, second, in <lambda>() [all …]
|
/frameworks/av/include/media/ |
D | Interpolator.h | 67 return this->rbegin()->second; in findY() 71 return high->second; in findY() 80 return high->first == x ? high->second : low->second; in findY() 82 return ((high->first - x) * low->second + (x - low->first) * high->second) in findY() 96 return low->second + std::get<0>(memo) * t in findY() 127 sec = (high->second - low->second) / interval; in findY() 129 ? (low->second - low2->second) / (low->first - low2->first) in findY() 132 ? (high2->second - high->second) / (high2->first - high->first) in findY() 141 ? (high->second - low2->second) / (high->first - low2->first) in findY() 145 ? (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 | 111 } else if (iter->second.find(value) == iter->second.end()) { in insert() 112 iter->second.insert(value); in insert() 123 if (iter->second.erase(value) > 0) { in erase() 126 if (iter->second.size() == 0) { in erase() 137 auto setIter = iter->second.find(value); in contains() 138 return setIter != iter->second.end(); in contains() 247 if (found->second->mSenderValidated && in fetch() 248 found->second->mStatus == BufferStatus::TRANSFER_FROM && in fetch() 249 found->second->mBufferId == bufferId) { in fetch() 250 found->second->mStatus = BufferStatus::TRANSFER_FETCH; in fetch() [all …]
|
/frameworks/native/services/gpuservice/gpustats/ |
D | GpuStats.cpp | 246 result->append(ele.second.toString()); in dumpGlobalLocked() 253 result->append(ele.second.toString()); in dumpAppLocked() 295 ele.second.glDriverLoadingTime); in pullAppInfoAtom() 297 ele.second.vkDriverLoadingTime); in pullAppInfoAtom() 299 ele.second.angleDriverLoadingTime); in pullAppInfoAtom() 304 ele.second.appPackageName.c_str(), in pullAppInfoAtom() 305 ele.second.driverVersionCode, in pullAppInfoAtom() 312 ele.second.cpuVulkanInUse, in pullAppInfoAtom() 313 ele.second.falsePrerotation, in pullAppInfoAtom() 314 ele.second.gles1InUse); in pullAppInfoAtom() [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/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/av/media/libstagefright/omx/1.0/ |
D | OmxStore.cpp | 88 attribute.value = attributePair.second; in OmxStore() 99 role.type = rolePair.second.type; in OmxStore() 100 role.isEncoder = rolePair.second.isEncoder; in OmxStore() 103 nodeList.resize(rolePair.second.nodeList.size()); in OmxStore() 105 for (const auto& nodePair : rolePair.second.nodeList) { in OmxStore() 106 if (!nodes.count(nodePair.second.name)) { in OmxStore() 108 if (!strncasecmp(nodePair.second.name.c_str(), "omx.", 4)) { in OmxStore() 109 LOG(INFO) << "node [" << nodePair.second.name.c_str() << "] not found in IOmx"; in OmxStore() 114 node.name = nodePair.second.name; in OmxStore() 117 attributeList.resize(nodePair.second.attributeList.size()); in OmxStore() [all …]
|
/frameworks/native/services/gpuservice/gpumem/ |
D | GpuMem.cpp | 117 if (gpu.second.empty()) continue; in dump() 120 std::sort(gpu.second.begin(), gpu.second.end(), in dump() 124 if (gpu.second[0].first != 0) { in dump() 127 StringAppendF(result, "Global total: %" PRIu64 "\n", gpu.second[0].second); in dump() 130 for (; i < gpu.second.size(); i++) { in dump() 131 StringAppendF(result, "Proc %u total: %" PRIu64 "\n", gpu.second[i].first, in dump() 132 gpu.second[i].second); in dump()
|
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/ |
D | TimeStatsHelper.cpp | 54 ret += ele.first * ele.second; in totalTime() 63 count += ele.second; in averageTime() 64 ret += ele.first * ele.second; in averageTime() 157 const float averageTime = iter->second.averageTime(); in toString() 163 result.append(ele.second.toString()); in toString() 205 ele.second.key.displayRefreshRateBucket); in toString() 206 StringAppendF(&result, "renderRate = %d fps\n", ele.second.key.renderRateBucket); in toString() 207 result.append(ele.second.jankPayload.toString()); in toString() 209 result.append(ele.second.displayDeadlineDeltas.toString()); in toString() 211 result.append(ele.second.displayPresentDeltas.toString()); in toString() [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/native/services/surfaceflinger/ |
D | ClientCache.cpp | 47 auto& processBuffers = it->second.second; in getBuffer() 55 ClientCacheBuffer& buf = bufItr->second; in getBuffer() 98 auto& processBuffers = it->second.second; in add() 132 mBuffers[processToken].second.erase(id); in erase() 192 for (auto& [id, clientCacheBuffer] : itr->second.second) { in removeProcess() 216 const sp<IBinder>& cacheOwner = i.second.first; in dump() 218 auto &buffers = i.second.second; in dump()
|
/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/native/services/surfaceflinger/tests/unittests/ |
D | LayerMetadataTest.cpp | 83 LayerMetadata second; in TEST_F() local 85 second.mMap[2] = someData; in TEST_F() 86 second.setInt32(6, 5); in TEST_F() 87 second.mMap[4].clear(); // will not delete if eraseEmpty is false in TEST_F() 88 bool changed = metadata.merge(second); in TEST_F() 92 ASSERT_EQ(someData, second.mMap[2]); in TEST_F() 101 ASSERT_EQ(someData, second.mMap[2]); in TEST_F()
|
/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() 298 if (it->second.fieldDesc) { in getTypeForKey() [all …]
|
/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() 101 int32_t avgFps = (closestSize->second.first + closestSize->second.second)/2; in isSizeSupported() 103 (closestSize->first.first * closestSize->first.second); in isSizeSupported() 205 minSize->second = stoi(match[2]); in getCodecSizeRange() 207 maxSize->second = stoi(match[4]); in getCodecSizeRange() 209 minSize->second > maxSize->second) { in getCodecSizeRange() 234 int32_t diff = abs(iter->first.first * iter->first.second - width * height); in findClosestSize() [all …]
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Time.java | 69 private int second; field in Time 121 second = mCalendar.get(Calendar.SECOND); in readFieldsFromCalendar() 126 mCalendar.set(year, month, monthDay, hour, minute, second); in writeFieldsToCalendar() 162 public void set(int second, int minute, int hour, int day, int month, int year) { in set() argument 164 mCalendar.set(year, month, day, hour, minute, second); in set() 177 second = 0; in setJulianDay() 346 public void setSecond(int second) { in setSecond() argument 347 this.second = second; in setSecond() 348 mCalendar.set(Calendar.SECOND, second); in setSecond() 439 second = n; in parseInternal() [all …]
|
/frameworks/av/media/img_utils/include/img_utils/ |
D | Pair.h | 32 S second; variable 36 Pair(const Pair& o) : first(o.first), second(o.second) {} in Pair() 38 Pair(const F& f, const S& s) : first(f), second(s) {} in Pair()
|