Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodPrivilegedOperations.java115 final IInputMethodPrivilegedOperations ops = mOps.getAndWarnIfNull(); in setImeWindowStatusAsync() local
116 if (ops == null) { in setImeWindowStatusAsync()
120 ops.setImeWindowStatusAsync(vis, backDisposition); in setImeWindowStatusAsync()
133 final IInputMethodPrivilegedOperations ops = mOps.getAndWarnIfNull(); in reportStartInputAsync() local
134 if (ops == null) { in reportStartInputAsync()
138 ops.reportStartInputAsync(startInputToken); in reportStartInputAsync()
155 final IInputMethodPrivilegedOperations ops = mOps.getAndWarnIfNull(); in createInputContentUriToken() local
156 if (ops == null) { in createInputContentUriToken()
161 ops.createInputContentUriToken(contentUri, packageName, future); in createInputContentUriToken()
178 final IInputMethodPrivilegedOperations ops = mOps.getAndWarnIfNull(); in reportFullscreenModeAsync() local
[all …]
DInputMethodPrivilegedOperationsRegistry.java72 public static void put(IBinder token, InputMethodPrivilegedOperations ops) { in put() argument
77 sRegistry.put(token, new WeakReference<>(ops)); in put()
/frameworks/base/services/core/java/com/android/server/appop/
DHistoricalRegistry.java335 final List<HistoricalOps> ops = mPersistence.readHistoryDLocked(); in dump() local
336 if (ops != null) { in dump()
340 final int opCount = ops.size(); in dump()
342 final HistoricalOps op = ops.get(i); in dump()
594 final HistoricalOps ops = history.get(i); in offsetHistory() local
595 ops.offsetBeginAndEndTime(offsetMillis); in offsetHistory()
609 void addHistoricalOps(HistoricalOps ops) { in addHistoricalOps() argument
617 ops.offsetBeginAndEndTime(mBaseSnapshotInterval); in addHistoricalOps()
618 mPendingWrites.offerFirst(ops); in addHistoricalOps()
783 private void schedulePersistHistoricalOpsMLocked(@NonNull HistoricalOps ops) { in schedulePersistHistoricalOpsMLocked() argument
[all …]
DAppOpsService.java664 Ops ops = pkgOps.valueAt(i); in evalForegroundOps() local
665 for (int j = ops.size() - 1; j >= 0; j--) { in evalForegroundOps()
666 if (ops.valueAt(j).mode == AppOpsManager.MODE_FOREGROUND) { in evalForegroundOps()
670 evalForegroundWatchers(ops.keyAt(j), watchers, which); in evalForegroundOps()
1857 Ops ops = uidState.pkgOps.get(pkgName);
1858 if (ops == null) {
1863 ops.bypass = null;
1864 ops.knownAttributionTags.clear();
1868 int numOps = ops.size();
1870 Op op = ops.valueAt(opNum);
[all …]
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
Dfp_mad.rscript11 // Do ~1 billion ops
28 rsDebug("fp_mad4 M ops", 1000.f / time);
34 // Do ~1 billion ops
51 rsDebug("fp_mad M ops", 1000.f / time);
57 // Do ~10 M ops
65 rsDebug("fp_norm M ops", 10.f / time);
71 // Do ~10 M ops
79 rsDebug("fp_sincos4 M ops", 10.f / time);
85 // Do ~10 M ops
93 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
Dfp_mad.rscript11 // Do ~1 billion ops
28 rsDebug("fp_mad4 M ops", 1000.f / time);
34 // Do ~1 billion ops
51 rsDebug("fp_mad M ops", 1000.f / time);
57 // Do ~10 M ops
65 rsDebug("fp_norm M ops", 10.f / time);
71 // Do ~10 M ops
79 rsDebug("fp_sincos4 M ops", 10.f / time);
85 // Do ~10 M ops
93 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
Dfp_mad.rscript11 // Do ~1 billion ops
28 rsDebug("fp_mad4 M ops", 1000.f / time);
34 // Do ~1 billion ops
51 rsDebug("fp_mad M ops", 1000.f / time);
57 // Do ~10 M ops
65 rsDebug("fp_norm M ops", 10.f / time);
71 // Do ~10 M ops
79 rsDebug("fp_sincos4 M ops", 10.f / time);
85 // Do ~10 M ops
93 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/
Dfp_mad.rscript11 // Do ~1 billion ops
28 rsDebug("fp_mad4 M ops", 1000.f / time);
34 // Do ~1 billion ops
51 rsDebug("fp_mad M ops", 1000.f / time);
57 // Do ~10 M ops
65 rsDebug("fp_norm M ops", 10.f / time);
71 // Do ~10 M ops
79 rsDebug("fp_sincos4 M ops", 10.f / time);
85 // Do ~10 M ops
93 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dfp_mad.rscript29 // Do ~1 billion ops
46 rsDebug("fp_mad4 M ops", 1000.f / time);
52 // Do ~1 billion ops
69 rsDebug("fp_mad M ops", 1000.f / time);
75 // Do ~10 M ops
83 rsDebug("fp_norm M ops", 10.f / time);
89 // Do ~10 M ops
97 rsDebug("fp_sincos4 M ops", 10.f / time);
103 // Do ~10 M ops
111 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dfp_mad.rscript27 // Do ~1 billion ops
44 rsDebug("fp_mad4 M ops", 1000.f / time);
50 // Do ~1 billion ops
67 rsDebug("fp_mad M ops", 1000.f / time);
73 // Do ~10 M ops
81 rsDebug("fp_norm M ops", 10.f / time);
87 // Do ~10 M ops
95 rsDebug("fp_sincos4 M ops", 10.f / time);
101 // Do ~10 M ops
109 rsDebug("fp_sincos M ops", 10.f / time);
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/
DRecentAppOpsAccess.java77 public RecentAppOpsAccess(Context context, int[] ops) { in RecentAppOpsAccess() argument
78 this(context, Clock.systemDefaultZone(), ops); in RecentAppOpsAccess()
82 RecentAppOpsAccess(Context context, Clock clock, int[] ops) { in RecentAppOpsAccess() argument
85 mOps = ops; in RecentAppOpsAccess()
130 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList() local
131 String packageName = ops.getPackageName(); in getAppList()
132 int uid = ops.getUid(); in getAppList()
168 Access access = getAccessFromOps(now, ops); in getAppList()
203 AppOpsManager.PackageOps ops) { in getAccessFromOps() argument
204 String packageName = ops.getPackageName(); in getAccessFromOps()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeAppOpsHelper.java104 SparseArray<AppOp> ops = mAppOps.get(packageName); in getOp() local
105 if (ops == null) { in getOp()
106 ops = new SparseArray<>(); in getOp()
107 mAppOps.put(packageName, ops); in getOp()
111 if (ops.contains(appOp)) { in getOp()
112 myAppOp = ops.get(appOp); in getOp()
115 ops.put(appOp, myAppOp); in getOp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManagerTest.java259 ArraySet<Integer> ops = new ArraySet<>(); in testAppOpsSettingsIntent_camera() local
260 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera()
261 mGutsManager.startAppOpsSettingsActivity("", 0, ops, null); in testAppOpsSettingsIntent_camera()
270 ArraySet<Integer> ops = new ArraySet<>(); in testAppOpsSettingsIntent_mic() local
271 ops.add(OP_RECORD_AUDIO); in testAppOpsSettingsIntent_mic()
272 mGutsManager.startAppOpsSettingsActivity("", 0, ops, null); in testAppOpsSettingsIntent_mic()
281 ArraySet<Integer> ops = new ArraySet<>(); in testAppOpsSettingsIntent_camera_mic() local
282 ops.add(OP_CAMERA); in testAppOpsSettingsIntent_camera_mic()
283 ops.add(OP_RECORD_AUDIO); in testAppOpsSettingsIntent_camera_mic()
284 mGutsManager.startAppOpsSettingsActivity("", 0, ops, null); in testAppOpsSettingsIntent_camera_mic()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPathOpsActivity.java57 Path.Op[] ops = Path.Op.values(); in onSizeChanged() local
58 mPaths = new Path[ops.length]; in onSizeChanged()
60 mSize = w / (ops.length * 2.0f); in onSizeChanged()
68 for (int i = 0; i < ops.length; i++) { in onSizeChanged()
70 if (!mPaths[i].op(p1, p2, ops[i])) { in onSizeChanged()
71 Log.d("PathOps", ops[i].name() + " failed!"); in onSizeChanged()
/frameworks/base/core/java/com/android/internal/app/
DIAppOpsService.aidl75 List<AppOpsManager.PackageOps> getPackagesForOps(in int[] ops); in getPackagesForOps() argument
77 List<AppOpsManager.PackageOps> getOpsForPackage(int uid, String packageName, in int[] ops); in getOpsForPackage() argument
78 void getHistoricalOps(int uid, String packageName, String attributionTag, in List<String> ops, in getHistoricalOps() argument
82 in List<String> ops, int historyFlags, int filter, long beginTimeMillis, in getHistoricalOpsFromDiskRaw() argument
86 void addHistoricalOps(in AppOpsManager.HistoricalOps ops); in addHistoricalOps() argument
91 List<AppOpsManager.PackageOps> getUidOps(int uid, in int[] ops); in getUidOps() argument
104 void startWatchingActive(in int[] ops, IAppOpsActiveCallback callback); in startWatchingActive() argument
110 void startWatchingStarted(in int[] ops, IAppOpsStartedCallback callback); in startWatchingStarted() argument
115 void startWatchingNoted(in int[] ops, IAppOpsNotedCallback callback); in startWatchingNoted() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/
DRecentLocationApps.java92 AppOpsManager.PackageOps ops = appOps.get(i); in getAppList() local
95 String packageName = ops.getPackageName(); in getAppList()
96 int uid = ops.getUid(); in getAppList()
132 Request request = getRequestFromOps(now, ops); in getAppList()
167 AppOpsManager.PackageOps ops) { in getRequestFromOps() argument
168 String packageName = ops.getPackageName(); in getRequestFromOps()
169 List<AppOpsManager.OpEntry> entries = ops.getOps(); in getRequestFromOps()
199 int uid = ops.getUid(); in getRequestFromOps()
/frameworks/av/media/libstagefright/tests/
DBatteryChecker_test.cpp66 void runTest(const std::vector<Operation> &ops, int64_t timeoutUs) { in runTest() argument
67 mOps = ops; in runTest()
72 (new AMessage(ops[0].event, this))->post(); in runTest()
103 void runTest(const std::vector<Operation> &ops, int64_t timeoutUs) { in runTest() argument
104 mHandler->runTest(ops, timeoutUs); in runTest()
/frameworks/base/tests/JankBench/app/src/main/jni/
DBench.cpp356 double ops = mGFlop.kernelXSize; in runGFlopsTest() local
357 ops = ops * 2.f - 1.f; in runGFlopsTest()
358 ops *= mGFlop.imageXSize; in runGFlopsTest()
366 double gflops = ops / dt / 1000000000.f; in runGFlopsTest()
368 __android_log_print(ANDROID_LOG_INFO, "bench", "v %f %f %f", dt, ops, gflops); in runGFlopsTest()
/frameworks/base/core/tests/coretests/src/android/os/
DEnvironmentTest.java55 private static void setAppOpsModeForUid(int uid, int mode, String... ops) { in setAppOpsModeForUid() argument
56 if (ops == null) { in setAppOpsModeForUid()
63 for (String op : ops) { in setAppOpsModeForUid()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
DAppOpsUpgradeTest.java112 final AppOpsService.Ops ops = uidState.pkgOps.valueAt(j); in assertSameModes() local
113 if (ops == null) { in assertSameModes()
116 final AppOpsService.Op _op1 = ops.get(op1); in assertSameModes()
117 final AppOpsService.Op _op2 = ops.get(op2); in assertSameModes()
/frameworks/base/tools/preload/
DLoadedClass.java114 private void addProcessNames(List<Operation> ops, Set<String> names) { in addProcessNames() argument
115 for (Operation operation : ops) { in addProcessNames()
/frameworks/av/media/libeffects/preprocessing/
DPreProcessing.cpp90 const preproc_ops_t* ops; // effect ops table member
728 effect->ops->disable(effect); in Effect_SetState()
742 status = effect->ops->create(effect); in Effect_SetState()
761 effect->ops->disable(effect); in Effect_SetState()
782 effect->ops->enable(effect); in Effect_SetState()
804 effect->ops = sPreProcOps[procId]; in Effect_Init()
1114 if (effect->ops->init) { in PreProcessingFx_Command()
1115 effect->ops->init(effect); in PreProcessingFx_Command()
1183 if (effect->ops->reset) { in PreProcessingFx_Command()
1184 effect->ops->reset(effect); in PreProcessingFx_Command()
[all …]
/frameworks/base/core/java/android/permission/
DPermissionUsageHelper.java190 int[] ops = {OP_CAMERA, OP_RECORD_AUDIO}; in PermissionUsageHelper() local
191 mAppOpsManager.startWatchingStarted(ops, this); in PermissionUsageHelper()
302 List<String> ops = new ArrayList<>(CAMERA_OPS); in getOpUsageData() local
304 ops.addAll(LOCATION_OPS); in getOpUsageData()
307 ops.addAll(MIC_OPS); in getOpUsageData()
310 Map<String, List<OpUsage>> rawUsages = getOpUsages(ops); in getOpUsageData()
458 List<AppOpsManager.PackageOps> ops; in getOpUsages() local
460 ops = mAppOpsManager.getPackagesForOps(opNames.toArray(new String[opNames.size()])); in getOpUsages()
472 int numPkgOps = ops.size(); in getOpUsages()
474 AppOpsManager.PackageOps pkgOps = ops.get(pkgOpNum); in getOpUsages()
/frameworks/rs/toolkit/
DColorMatrix.cpp535 int ops[5][4]; // 0=unused, 1 = set, 2 = accumulate, 3 = final local
538 memset(ops, 0, sizeof(ops));
541 ops[i][0] = 0x2 | opInit[0];
546 ops[i][1] = 0x2 | opInit[1];
550 ops[i][2] = 0x2 | opInit[2];
556 ops[i][3] = 0x2 | opInit[3];
602 switch(ops[i][j]) {
696 switch(ops[i][j]) {
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicColorMatrix.cpp497 int ops[5][4]; // 0=unused, 1 = set, 2 = accumulate, 3 = final in build() local
500 memset(ops, 0, sizeof(ops)); in build()
503 ops[i][0] = 0x2 | opInit[0]; in build()
508 ops[i][1] = 0x2 | opInit[1]; in build()
512 ops[i][2] = 0x2 | opInit[2]; in build()
518 ops[i][3] = 0x2 | opInit[3]; in build()
564 switch(ops[i][j]) { in build()
658 switch(ops[i][j]) { in build()

12