Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71ff4e29 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Rename powerstatstests to batterystatstests"

parents 19235240 c5059b79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
android_test {
    name: "PowerStatsLoadTests",
    name: "BatteryStatsLoadTests",
    srcs: ["src/**/*.java"],
    static_libs: [
        "androidx.test.rules",
+2 −2
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@
  -->

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.android.frameworks.core.powerstatsloadtests">
          package="com.android.frameworks.core.batterystatsloadtests">

    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
@@ -27,7 +27,7 @@

    <instrumentation
        android:name="androidx.test.runner.AndroidJUnitRunner"
        android:targetPackage="com.android.frameworks.core.powerstatsloadtests"
        android:targetPackage="com.android.frameworks.core.batterystatsloadtests"
        android:label="Power Stats Load Tests" />

    <queries>
+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.frameworks.core.powerstatsloadtests;
package com.android.frameworks.core.batterystatsloadtests;

import static org.junit.Assert.assertEquals;

+1 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.frameworks.core.powerstatsloadtests;
package com.android.frameworks.core.batterystatsloadtests;

import android.os.Process;

+2 −1
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
 * limitations under the License.
 */

package com.android.frameworks.core.powerstatsloadtests;
package com.android.frameworks.core.batterystatsloadtests;

import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
@@ -106,6 +106,7 @@ public class PowerMetricsCollector implements TestRule {
        mContext = instrumentation.getContext();
        mUid = Process.myUid();
        mUserManager = mContext.getSystemService(UserManager.class);
        // TODO(b/175324611): Use BatteryUsageStats instead
        mStatsHelper = new BatteryStatsHelper(mContext, false /* collectBatteryBroadcast */);
        mStatsHelper.create((Bundle) null);
    }
Loading