Slice and dice app ops - Settings
Update the code to only pull and query the trsuted portion of the last/historical app op data. Test: manual bug:111061782 Change-Id: I55b8be1c6715ff60c7b31c80db21029fea595c8f
This commit is contained in:
@@ -15,6 +15,7 @@ import static org.mockito.Mockito.when;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AppOpsManager;
|
||||
import android.app.AppOpsManager.OpEntry;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.ApplicationInfo;
|
||||
@@ -144,7 +145,7 @@ public class MockLocationAppPreferenceControllerTest {
|
||||
}
|
||||
|
||||
private AppOpsManager.OpEntry createOpEntry(int opMode) {
|
||||
return new AppOpsManager.OpEntry(0, opMode, 0l /* time */, 0 /* rejectTime */,
|
||||
0 /* duration */, 0 /* proxyUid */, null /* proxyPackage */);
|
||||
return new OpEntry(0, false, opMode, null /*accessTimes*/, null /*rejectTimes*/,
|
||||
null /*durations*/, null /* proxyUids */, null /* proxyPackages */);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user