Exploit databaseDownload repository ZIP
GH-87d78a8273b7c916c0f9f9ca25ca743e
trinadh465/frameworks_base_aosp10_r33_cve-2022-20007
Sources for CVE-2022-20007
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files19
trinadh465/frameworks_base_aosp10_r33_cve-2022-20007Revision d046b4eb34eb
- ↑..Parent directory
- component/
- util/
- ActivityReport.java
- AppActivity.java
- AppInfo.java
- AppList.java
- AppPower.java
- AttributionKey.java
- BatteryStatsReader.java
- Component.java
- ComponentActivity.java
- ComponentPower.java
- ComponentProfile.java
- CsvParser.java
- ParseException.java
- PowerProfile.java
- PowerReport.java
- RawBatteryStats.java
- SpecialApp.java
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
tools/powermodel/src/com/android/powermodel/ComponentActivity.java
Java · 1,521 bytes/*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.powermodel;
/**
* Encapsulates the work done by an app (including synthetic apps) that costs power.
*/
public class ComponentActivity {
public AttributionKey attribution;
protected ComponentActivity(AttributionKey attribution) {
this.attribution = attribution;
}
// TODO: Can we refactor what goes into the activities so this function
// doesn't need the global state?
/**
* Apply the power profile for this component. Subclasses should implement this
* to do the per-component calculatinos. The default implementation returns null.
* If this method returns null, then there will be no power associated for this
* component, which, for example is true with some of the GLOBAL activities.
*/
public ComponentPower applyProfile(ActivityReport activityReport, PowerProfile profile) {
return null;
}
}