Home
last modified time | relevance | path

Searched refs:op (Results 1 – 25 of 120) sorted by relevance

12345

/frameworks/base/core/java/android/app/
DBackStackRecord.java43 BackStackRecord.Op op = bse.mHead; in BackStackState() local
44 while (op != null) { in BackStackState()
45 if (op.removed != null) numRemoved += op.removed.size(); in BackStackState()
46 op = op.next; in BackStackState()
54 op = bse.mHead; in BackStackState()
56 while (op != null) { in BackStackState()
57 mOps[pos++] = op.cmd; in BackStackState()
58 mOps[pos++] = op.fragment != null ? op.fragment.mIndex : -1; in BackStackState()
59 mOps[pos++] = op.enterAnim; in BackStackState()
60 mOps[pos++] = op.exitAnim; in BackStackState()
[all …]
DAppOpsManager.java547 public static int opToSwitch(int op) { in opToSwitch() argument
548 return sOpToSwitch[op]; in opToSwitch()
555 public static String opToName(int op) { in opToName() argument
556 if (op == OP_NONE) return "NONE"; in opToName()
557 return op < sOpNames.length ? sOpNames[op] : ("Unknown(" + op + ")"); in opToName()
564 public static String opToPermission(int op) { in opToPermission() argument
565 return sOpPerms[op]; in opToPermission()
572 public static int opToDefaultMode(int op) { in opToDefaultMode() argument
573 return sOpDefaultMode[op]; in opToDefaultMode()
580 public static boolean opAllowsReset(int op) { in opAllowsReset() argument
[all …]
/frameworks/support/v4/java/android/support/v4/app/
DBackStackRecord.java42 BackStackRecord.Op op = bse.mHead; in BackStackState() local
43 while (op != null) { in BackStackState()
44 if (op.removed != null) numRemoved += op.removed.size(); in BackStackState()
45 op = op.next; in BackStackState()
53 op = bse.mHead; in BackStackState()
55 while (op != null) { in BackStackState()
56 mOps[pos++] = op.cmd; in BackStackState()
57 mOps[pos++] = op.fragment != null ? op.fragment.mIndex : -1; in BackStackState()
58 mOps[pos++] = op.enterAnim; in BackStackState()
59 mOps[pos++] = op.exitAnim; in BackStackState()
[all …]
/frameworks/base/core/java/android/util/
DBase64.java73 public int op; field in Base64.Coder
165 if (decoder.op == decoder.output.length) { in decode()
171 byte[] temp = new byte[decoder.op]; in decode()
172 System.arraycopy(decoder.output, 0, temp, 0, decoder.op); in decode()
276 int op = 0; in process() local
301 output[op+2] = (byte) value; in process()
302 output[op+1] = (byte) (value >> 8); in process()
303 output[op] = (byte) (value >> 16); in process()
304 op += 3; in process()
345 output[op++] = (byte) (value >> 4); in process()
[all …]
/frameworks/base/services/java/com/android/server/content/
DSyncQueue.java62 for (SyncStorageEngine.PendingOperation op : mSyncStorageEngine.getPendingOperations()) { in addPendingOperations()
63 if (op.userId != userId) continue; in addPendingOperations()
66 op.account, op.userId, op.authority); in addPendingOperations()
68 SyncAdapterType.newKey(op.authority, op.account.type), op.userId); in addPendingOperations()
70 Log.w(TAG, "Missing sync adapter info for authority " + op.authority + ", userId " in addPendingOperations()
71 + op.userId); in addPendingOperations()
75 op.account, op.userId, op.reason, op.syncSource, op.authority, op.extras, in addPendingOperations()
76op.expedited ? -1: 0 /* delay */, 0 /* flex */, backoff != null ? backoff.first : 0, in addPendingOperations()
77 mSyncStorageEngine.getDelayUntilTime(op.account, op.userId, op.authority), in addPendingOperations()
79 syncOperation.pendingOperation = op; in addPendingOperations()
[all …]
/frameworks/base/services/java/com/android/server/
DAppOpsService.java105 public final int op; field in AppOpsService.Op
115 op = _op; in Op()
116 mode = AppOpsManager.opToDefaultMode(op); in Op()
275 resOps.add(new AppOpsManager.OpEntry(curOp.op, curOp.mode, curOp.time, in collectOps()
285 resOps.add(new AppOpsManager.OpEntry(curOp.op, curOp.mode, curOp.time, in collectOps()
339 private void pruneOp(Op op, int uid, String packageName) { in pruneOp() argument
340 if (op.time == 0 && op.rejectTime == 0) { in pruneOp()
343 ops.remove(op.op); in pruneOp()
364 Op op = getOpLocked(code, uid, packageName, true); in setMode() local
365 if (op != null) { in setMode()
[all …]
/frameworks/base/libs/hwui/
DDeferredDisplayList.cpp69 virtual void add(DrawOp* op, const DeferredDisplayState* state, bool opaqueOverBounds) { in add() argument
73 mOps.add(OpStatePair(op, state)); in add()
82 DEFER_LOGD("op intersects with op %p with bounds %f %f %f %f:", mOps[i].op, in intersects()
85 mOps[i].op->output(2); in intersects()
100 DrawOp* op = mOps[i].op; in replay() local
105 renderer.eventMark(op->name()); in replay()
107 logBuffer.writeCommand(0, op->name()); in replay()
108 status |= op->applyDraw(renderer, dirty); in replay()
187 bool canMergeWith(const DrawOp* op, const DeferredDisplayState* state) { in canMergeWith() argument
223 if (op->mPaint == mOps[0].op->mPaint) return true; in canMergeWith()
[all …]
DDeferredDisplayList.h72 : op(NULL), state(NULL) {} in OpStatePair()
74 : op(newOp), state(newState) {} in OpStatePair()
76 : op(other.op), state(other.state) {} in OpStatePair()
77 DrawOp* op; variable
111 void addClip(OpenGLRenderer& renderer, ClipOp* op);
112 void addSaveLayer(OpenGLRenderer& renderer, SaveLayerOp* op, int newSaveCount);
113 void addSave(OpenGLRenderer& renderer, SaveOp* op, int newSaveCount);
114 void addRestoreToCount(OpenGLRenderer& renderer, StateOp* op, int newSaveCount);
120 void addDrawOp(OpenGLRenderer& renderer, DrawOp* op);
139 void storeStateOpBarrier(OpenGLRenderer& renderer, StateOp* op);
[all …]
DSnapshot.cpp59 mClipRegionRoot.op(*s->clipRegion, SkRegion::kUnion_Op); in Snapshot()
98 bool Snapshot::clipRegionOp(float left, float top, float right, float bottom, SkRegion::Op op) { in clipRegionOp() argument
101 clipRegion->op(tmp, op); in clipRegionOp()
106 bool Snapshot::clipRegionTransformed(const SkRegion& region, SkRegion::Op op) { in clipRegionTransformed() argument
108 clipRegion->op(region, op); in clipRegionTransformed()
114 bool Snapshot::clip(float left, float top, float right, float bottom, SkRegion::Op op) { in clip() argument
117 return clipTransformed(r, op); in clip()
120 bool Snapshot::clipTransformed(const Rect& r, SkRegion::Op op) { in clipTransformed() argument
123 switch (op) { in clipTransformed()
144 clipped = clipRegionOp(r.left, r.top, r.right, r.bottom, op); in clipTransformed()
DDisplayListRenderer.cpp225 SkRegion::Op op) { in clipRect() argument
226 addStateOp(new (alloc()) ClipRectOp(left, top, right, bottom, op)); in clipRect()
227 return OpenGLRenderer::clipRect(left, top, right, bottom, op); in clipRect()
230 bool DisplayListRenderer::clipPath(SkPath* path, SkRegion::Op op) { in clipPath() argument
232 addStateOp(new (alloc()) ClipPathOp(path, op)); in clipPath()
233 return OpenGLRenderer::clipPath(path, op); in clipPath()
236 bool DisplayListRenderer::clipRegion(SkRegion* region, SkRegion::Op op) { in clipRegion() argument
238 addStateOp(new (alloc()) ClipRegionOp(region, op)); in clipRegion()
239 return OpenGLRenderer::clipRegion(region, op); in clipRegion()
403 DrawOp* op = new (alloc()) DrawTextOnPathOp(text, bytesCount, count, path, in drawTextOnPath() local
[all …]
/frameworks/base/graphics/java/android/graphics/
DRegion.java251 return op(r, Op.UNION); in union()
258 public boolean op(Rect r, Op op) { in op() argument
260 op.nativeInt); in op()
267 public boolean op(int left, int top, int right, int bottom, Op op) { in op() method in Region
269 op.nativeInt); in op()
276 public boolean op(Region region, Op op) { in op() argument
277 return op(this, region, op); in op()
284 public boolean op(Rect rect, Region region, Op op) { in op() argument
286 op.nativeInt); in op()
293 public boolean op(Region region1, Region region2, Op op) { in op() argument
[all …]
/frameworks/native/libs/binder/
DAppOpsManager.cpp68 int32_t AppOpsManager::checkOp(int32_t op, int32_t uid, const String16& callingPackage) in checkOp() argument
71 return service != NULL ? service->checkOperation(op, uid, callingPackage) : MODE_IGNORED; in checkOp()
74 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) { in noteOp() argument
76 return service != NULL ? service->noteOperation(op, uid, callingPackage) : MODE_IGNORED; in noteOp()
79 int32_t AppOpsManager::startOp(int32_t op, int32_t uid, const String16& callingPackage) { in startOp() argument
81 return service != NULL ? service->startOperation(getToken(service), op, uid, callingPackage) in startOp()
85 void AppOpsManager::finishOp(int32_t op, int32_t uid, const String16& callingPackage) { in finishOp() argument
88 service->finishOperation(getToken(service), op, uid, callingPackage); in finishOp()
92 void AppOpsManager::startWatchingMode(int32_t op, const String16& packageName, in startWatchingMode() argument
96 service->startWatchingMode(op, packageName, callback); in startWatchingMode()
DIAppOpsCallback.cpp40 virtual void opChanged(int32_t op, const String16& packageName) { in opChanged() argument
43 data.writeInt32(op); in opChanged()
59 int32_t op = data.readInt32(); in onTransact() local
61 opChanged(op, packageName); in onTransact()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DRunResult.java31 RunResult(TestService.TestRunner op) { in RunResult() argument
32 name = op.getName(); in RunResult()
33 fgLongName = op.getForegroundLongName(); in RunResult()
34 bgLongName = op.getBackgroundLongName(); in RunResult()
35 fgTime = op.getForegroundTime(); in RunResult()
36 fgOps = op.getForegroundOps(); in RunResult()
37 bgTime = op.getBackgroundTime(); in RunResult()
38 bgOps = op.getBackgroundOps(); in RunResult()
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
Dmath.rs224 #define TEST_INT_OP_TYPE(op, type) \
225 rsDebug("Testing " #op " for " #type "1", i++); \
226 res_##type##_1 = src1_##type##_1 op src2_##type##_1; \
227 rsDebug("Testing " #op " for " #type "2", i++); \
228 res_##type##_2 = src1_##type##_2 op src2_##type##_2; \
229 rsDebug("Testing " #op " for " #type "3", i++); \
230 res_##type##_3 = src1_##type##_3 op src2_##type##_3; \
231 rsDebug("Testing " #op " for " #type "4", i++); \
232 res_##type##_4 = src1_##type##_4 op src2_##type##_4;
234 #define TEST_INT_OP(op) \
[all …]
/frameworks/rs/java/tests/ComputeBenchmark/src/com/example/android/rs/computebench/
Dcompute_benchmark.rs73 #define RUN_BENCH(line, op) \
82 rsDebug(" " op " took ns", (float)bench_time * inv_timing_runs);
84 #define BENCH_BASIC_OP_TYPE(op, type) …
85 … RUN_BENCH(res_##type##_1 = src1_##type##_1 op src2_##type##_1, #type "1 " #op " " #type "1") \
86 … RUN_BENCH(res_##type##_2 = src1_##type##_2 op src2_##type##_2, #type "2 " #op " " #type "2") \
87 … RUN_BENCH(res_##type##_3 = src1_##type##_3 op src2_##type##_3, #type "3 " #op " " #type "3") \
88 … RUN_BENCH(res_##type##_4 = src1_##type##_4 op src2_##type##_4, #type "4 " #op " " #type "4") \
90 #define BENCH_BASIC_INT_OP(op) \
91 rsDebug("Testing basic operation " #op, 0); \
92 BENCH_BASIC_OP_TYPE(op, c) \
[all …]
/frameworks/base/obex/javax/obex/
DServerSession.java193 ServerOperation op = new ServerOperation(this, mInput, type, mMaxPacketLength, mListener); in handlePutRequest() local
197 if ((op.finalBitSet) && !op.isValidBody()) { in handlePutRequest()
199 .onDelete(op.requestHeader, op.replyHeader)); in handlePutRequest()
201 response = validateResponseCode(mListener.onPut(op)); in handlePutRequest()
203 if (response != ResponseCodes.OBEX_HTTP_OK && !op.isAborted) { in handlePutRequest()
204 op.sendReply(response); in handlePutRequest()
205 } else if (!op.isAborted) { in handlePutRequest()
207 while (!op.finalBitSet) { in handlePutRequest()
208 op.sendReply(ResponseCodes.OBEX_HTTP_CONTINUE); in handlePutRequest()
210 op.sendReply(response); in handlePutRequest()
[all …]
/frameworks/native/include/binder/
DAppOpsManager.h71 int32_t checkOp(int32_t op, int32_t uid, const String16& callingPackage);
72 int32_t noteOp(int32_t op, int32_t uid, const String16& callingPackage);
73 int32_t startOp(int32_t op, int32_t uid, const String16& callingPackage);
74 void finishOp(int32_t op, int32_t uid, const String16& callingPackage);
75 void startWatchingMode(int32_t op, const String16& packageName,
/frameworks/native/include/ui/
DRegion.h150 Region& operationSelf(const Rect& r, int op);
151 Region& operationSelf(const Region& r, int op);
152 Region& operationSelf(const Region& r, int dx, int dy, int op);
153 const Region operation(const Rect& rhs, int op) const;
154 const Region operation(const Region& rhs, int op) const;
155 const Region operation(const Region& rhs, int dx, int dy, int op) const;
157 static void boolean_operation(int op, Region& dst,
159 static void boolean_operation(int op, Region& dst,
162 static void boolean_operation(int op, Region& dst,
164 static void boolean_operation(int op, Region& dst,
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Dmath.rs72 #define TEST_INT_OP_TYPE(op, type) \
73 rsDebug("Testing " #op " for " #type "1", i++); \
74 res_##type##_1 = src1_##type##_1 op src2_##type##_1; \
75 rsDebug("Testing " #op " for " #type "2", i++); \
76 res_##type##_2 = src1_##type##_2 op src2_##type##_2; \
77 rsDebug("Testing " #op " for " #type "3", i++); \
78 res_##type##_3 = src1_##type##_3 op src2_##type##_3; \
79 rsDebug("Testing " #op " for " #type "4", i++); \
80 res_##type##_4 = src1_##type##_4 op src2_##type##_4;
82 #define TEST_INT_OP(op) \
[all …]
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
Dmath.rs72 #define TEST_INT_OP_TYPE(op, type) \
73 rsDebug("Testing " #op " for " #type "1", i++); \
74 res_##type##_1 = src1_##type##_1 op src2_##type##_1; \
75 rsDebug("Testing " #op " for " #type "2", i++); \
76 res_##type##_2 = src1_##type##_2 op src2_##type##_2; \
77 rsDebug("Testing " #op " for " #type "3", i++); \
78 res_##type##_3 = src1_##type##_3 op src2_##type##_3; \
79 rsDebug("Testing " #op " for " #type "4", i++); \
80 res_##type##_4 = src1_##type##_4 op src2_##type##_4;
82 #define TEST_INT_OP(op) \
[all …]
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
Dmath.rs72 #define TEST_INT_OP_TYPE(op, type) \
73 rsDebug("Testing " #op " for " #type "1", i++); \
74 res_##type##_1 = src1_##type##_1 op src2_##type##_1; \
75 rsDebug("Testing " #op " for " #type "2", i++); \
76 res_##type##_2 = src1_##type##_2 op src2_##type##_2; \
77 rsDebug("Testing " #op " for " #type "3", i++); \
78 res_##type##_3 = src1_##type##_3 op src2_##type##_3; \
79 rsDebug("Testing " #op " for " #type "4", i++); \
80 res_##type##_4 = src1_##type##_4 op src2_##type##_4;
82 #define TEST_INT_OP(op) \
[all …]
/frameworks/native/opengl/tests/lib/
DglTestLib.cpp48 void glTestCheckEglError(const char* op, EGLBoolean returnVal) in glTestCheckEglError() argument
51 testPrintE("%s() returned %d", op, returnVal); in glTestCheckEglError()
57 op, EGLUtils::strerror(error), error); in glTestCheckEglError()
61 void glTestCheckGlError(const char* op) in glTestCheckGlError() argument
65 testPrintE("after %s() glError (0x%x)", op, error); in glTestCheckGlError()
/frameworks/native/libs/ui/
DRegion.cpp269 Region& Region::operationSelf(const Rect& r, int op) { in operationSelf() argument
271 boolean_operation(op, *this, lhs, r); in operationSelf()
289 Region& Region::operationSelf(const Region& rhs, int op) { in operationSelf() argument
291 boolean_operation(op, *this, lhs, rhs); in operationSelf()
314 const Region Region::operation(const Rect& rhs, int op) const { in operation()
316 boolean_operation(op, result, *this, rhs); in operation()
334 const Region Region::operation(const Region& rhs, int op) const { in operation()
336 boolean_operation(op, result, *this, rhs); in operation()
360 Region& Region::operationSelf(const Region& rhs, int dx, int dy, int op) { in operationSelf() argument
362 boolean_operation(op, *this, lhs, rhs, dx, dy); in operationSelf()
[all …]
/frameworks/native/opengl/tests/gl_perf/
Dgl2_perf.cpp35 static void checkEglError(const char* op, EGLBoolean returnVal = EGL_TRUE) { in checkEglError() argument
37 fprintf(stderr, "%s() returned %d\n", op, returnVal); in checkEglError()
42 fprintf(stderr, "after %s() eglError %s (0x%x)\n", op, EGLUtils::strerror(error), in checkEglError()
47 static void checkGlError(const char* op) { in checkGlError() argument
50 fprintf(stderr, "after %s() glError (0x%x)\n", op, error); in checkGlError()

12345