Home
last modified time | relevance | path

Searched refs:attribution (Results 1 – 25 of 179) sorted by relevance

12345678

/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/wakeups/
DCpuWakeupStatsTest.java169 final SparseArray<SparseIntArray> attribution = obj.mWakeupAttribution.get(wakeupTime); in irqAttributionAllCombinations() local
170 assertThat(attribution.size()).isEqualTo(Integer.bitCount(mask)); in irqAttributionAllCombinations()
174 assertThat(attribution.contains(subsystems[i])).isFalse(); in irqAttributionAllCombinations()
177 assertThat(attribution.contains(subsystems[i])).isTrue(); in irqAttributionAllCombinations()
178 assertThat(attribution.get(subsystems[i]).get(uids[i])).isEqualTo(procStates[i]); in irqAttributionAllCombinations()
184 assertThat(attribution.get(subsystems[i]).indexOfKey(uids[j])).isLessThan(0); in irqAttributionAllCombinations()
207 final SparseArray<SparseIntArray> attribution = obj.mWakeupAttribution.get(wakeupTime); in alarmIrqAttributionSolo() local
208 assertThat(attribution).isNotNull(); in alarmIrqAttributionSolo()
209 assertThat(attribution.size()).isEqualTo(1); in alarmIrqAttributionSolo()
210 assertThat(attribution.contains(CPU_WAKEUP_SUBSYSTEM_ALARM)).isTrue(); in alarmIrqAttributionSolo()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/battery/unified/
DBatteryLayersDrawable.kt67 private val attribution: BatteryAttributionDrawable, constant in com.android.systemui.battery.unified.BatteryLayersDrawable
69 ) : LayerDrawable(arrayOf(frameBg, frame, fill, textOnly, spaceSharingText, attribution)) {
109 new.attribution != attribution.drawable || in handleUpdateState()
112 if (new.attribution != null && new.attribution != attribution.drawable) { in handleUpdateState()
113 attribution.drawable = new.attribution in handleUpdateState()
136 attribution.setTint(colorInfo.fg) in updateColorProfile()
217 if (batteryState.showPercent && batteryState.attribution != null) { in draw()
222 attribution.gravity = Gravity.LEFT in draw()
223 attribution.setBounds( in draw()
229 attribution.draw(canvas) in draw()
[all …]
DBatteryDrawableState.kt65 val attribution: Drawable? constant in com.android.systemui.battery.unified.BatteryDrawableState
67 fun hasForegroundContent() = showPercent || attribution != null in hasForegroundContent()
74 attribution = null, in hasForegroundContent()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
DAppList.java68 final AttributionKey attribution = app.getAttribution(); in build() local
71 if (attribution.isSpecialApp()) { in build()
72 specialApps.put(attribution.getSpecialApp(), appActivity); in build()
83 public BUILDER get(AttributionKey attribution) { in get() argument
84 return mApps.get(attribution); in get()
87 public BUILDER put(AttributionKey attribution, BUILDER app) { in put() argument
88 return mApps.put(attribution, app); in put()
DComponentActivity.java24 public AttributionKey attribution; field in ComponentActivity
26 protected ComponentActivity(AttributionKey attribution) { in ComponentActivity() argument
27 this.attribution = attribution; in ComponentActivity()
DActivityReport.java83 AppActivity.Builder app = mApps.get(activity.attribution); in addActivity()
86 app.setAttribution(activity.attribution); in addActivity()
87 mApps.put(activity.attribution, app); in addActivity()
DAppInfo.java48 public void setAttribution(AttributionKey attribution) { in setAttribution() argument
49 mAttribution = attribution; in setAttribution()
DComponentPower.java30 public AttributionKey attribution; field in ComponentPower
/frameworks/base/tools/powermodel/src/com/android/powermodel/component/
DModemAppActivity.java33 public ModemAppActivity(AttributionKey attribution) { in ModemAppActivity() argument
34 super(attribution); in ModemAppActivity()
68 result.attribution = this.attribution; in applyProfile()
DModemRemainderActivity.java33 public ModemRemainderActivity(AttributionKey attribution) { in ModemRemainderActivity() argument
34 super(attribution); in ModemRemainderActivity()
63 result.attribution = this.attribution; in applyProfile()
DModemGlobalActivity.java32 public ModemGlobalActivity(AttributionKey attribution) { in ModemGlobalActivity() argument
33 super(attribution); in ModemGlobalActivity()
/frameworks/base/services/core/java/com/android/server/power/stats/wakeups/
DCpuWakeupStats.java251 SparseArray<SparseIntArray> attribution = mWakeupAttribution.get(wakeup.mElapsedMillis); in attemptAttributionFor() local
252 if (attribution == null) { in attemptAttributionFor()
253 attribution = new SparseArray<>(); in attemptAttributionFor()
254 mWakeupAttribution.put(wakeup.mElapsedMillis, attribution); in attemptAttributionFor()
268 attribution.put(subsystem, uidsToBlame); in attemptAttributionFor()
287 SparseArray<SparseIntArray> attribution = mWakeupAttribution.get( in attemptAttributionWith() local
289 if (attribution == null) { in attemptAttributionWith()
290 attribution = new SparseArray<>(); in attemptAttributionWith()
291 mWakeupAttribution.put(wakeup.mElapsedMillis, attribution); in attemptAttributionWith()
293 SparseIntArray uidsToBlame = attribution.get(subsystem); in attemptAttributionWith()
[all …]
/frameworks/proto_logging/stats/
Dattribution_node.proto25 * This proto represents a node of an attribution chain.
26 * Note: All attribution chains are represented as a repeated field of type
31 // The uid for a given element in the attribution chain.
34 // The (optional) string tag for an element in the attribution chain. If the
Datom_field_options.proto52 // For state atoms with attribution chain, sometimes the primary key is the first uid in the chain.
68 // Used on simple proto fields. Do not use on attribution chains.
74 // Used on an attribution chain field to indicate that the first uid is the
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/
DBatteryMeterViewTest.kt285 assertThat(mBatteryMeterView.unifiedBatteryState.attribution).isNotNull() in isBatteryDefenderChanged_true_drawableGetsTrue_flagOn()
314 assertThat(mBatteryMeterView.unifiedBatteryState.attribution).isNull() in isBatteryDefenderChanged_false_drawableGetsFalse_flagOn()
335 assertThat(mBatteryMeterView.unifiedBatteryState.attribution).isNull() in isBatteryDefenderChanged_true_featureflagOff_drawableGetsFalse_flagOn()
357 assertThat(mBatteryMeterView.unifiedBatteryState.attribution).isNull() in isIncompatibleChargingChanged_true_drawableGetsChargingFalse_flagOn()
380 assertThat(mBatteryMeterView.unifiedBatteryState.attribution).isNotNull() in isIncompatibleChargingChanged_false_drawableGetsChargingTrue_flagOn()
/frameworks/base/services/core/java/com/android/server/powerstats/
DProtoStreamUtils.java572 final int attributionLength = energyConsumerResult[i].attribution.length; in packProtoMessage()
576 energyConsumerResult[i].attribution[j]; in packProtoMessage()
682 energyConsumerResult.attribution = in unpackEnergyConsumerResultProto()
708 final int attributionLength = result.attribution.length; in print()
710 final EnergyConsumerAttribution attribution = result.attribution[j]; in print() local
711 Slog.d(TAG, " UID: " + attribution.uid in print()
712 + " Energy (uWs): " + attribution.energyUWs); in print()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DEnergyConsumerSnapshotTest.java284 ecr.attribution = new EnergyConsumerAttribution[uids.length]; in createEnergyConsumerResult()
286 ecr.attribution[i] = new EnergyConsumerAttribution(); in createEnergyConsumerResult()
287 ecr.attribution[i].uid = uids[i]; in createEnergyConsumerResult()
288 ecr.attribution[i].energyUWs = uidEnergies[i]; in createEnergyConsumerResult()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DEventLogWriter.java115 public void action(int attribution, int action, int pageId, String key, int value) { in action() argument
118 if (attribution != MetricsProto.MetricsEvent.VIEW_UNKNOWN) { in action()
DMetricsFeatureProvider.java147 public void action(int attribution, int action, int pageId, String key, int value) { in action() argument
149 writer.action(attribution, action, pageId, key, value); in action()
DLogWriter.java69 void action(int attribution, int action, int pageId, String key, int value); in action() argument
/frameworks/base/services/core/java/com/android/server/power/stats/
Dflags.aconfig22 description: "Deprecation of system service power re-attribution"
/frameworks/base/services/tests/powerstatstests/src/com/android/server/powerstats/
DPowerStatsServiceTest.java279 energyConsumerResults[i].attribution = in buildEnergyConsumerResult()
281 for (int j = 0; j < energyConsumerResults[i].attribution.length; j++) { in buildEnergyConsumerResult()
282 energyConsumerResults[i].attribution[j] = new EnergyConsumerAttribution(); in buildEnergyConsumerResult()
283 energyConsumerResults[i].attribution[j].uid = j; in buildEnergyConsumerResult()
284 energyConsumerResults[i].attribution[j].energyUWs = j; in buildEnergyConsumerResult()
418 assertTrue(pssProto.energyConsumerResult[i].attribution.length in testWrittenModelDataMatchesReadIncidentReportData()
420 for (int j = 0; j < pssProto.energyConsumerResult[i].attribution.length; j++) { in testWrittenModelDataMatchesReadIncidentReportData()
421 assertTrue(pssProto.energyConsumerResult[i].attribution[j].uid == j); in testWrittenModelDataMatchesReadIncidentReportData()
422 assertTrue(pssProto.energyConsumerResult[i].attribution[j].energyUws == j); in testWrittenModelDataMatchesReadIncidentReportData()
/frameworks/proto_logging/stats/atoms/kernel/
Dkernel_atoms.proto29 * high level attribution information.
/frameworks/av/services/mediaextractor/
DNOTICE115 attribution notices from the Source form of the Work,
121 include a readable copy of the attribution notices contained
130 do not modify the License. You may add Your own attribution
133 that such additional attribution notices cannot be construed
/frameworks/av/media/libstagefright/codecs/gsm/dec/
DNOTICE115 attribution notices from the Source form of the Work,
121 include a readable copy of the attribution notices contained
130 do not modify the License. You may add Your own attribution
133 that such additional attribution notices cannot be construed

12345678