/frameworks/compile/mclinker/lib/Script/ |
D | Operator.cpp | 58 static NullaryOp<Operator::SIZEOF_HEADERS> op; in create() local 59 return op; in create() 64 static NullaryOp<Operator::MAXPAGESIZE> op; in create() local 65 return op; in create() 70 static NullaryOp<Operator::COMMONPAGESIZE> op; in create() local 71 return op; in create() 77 static UnaryOp<Operator::UNARY_PLUS> op; in create() local 78 return op; in create() 83 static UnaryOp<Operator::UNARY_MINUS> op; in create() local 84 return op; in create() [all …]
|
D | RpnEvaluator.cpp | 39 Operator* op = llvm::cast<Operator>(*it); in eval() local 40 switch (op->arity()) { in eval() 42 operandStack.push(op->eval(m_Module, m_Backend)); in eval() 48 op->appendOperand(opd); in eval() 49 operandStack.push(op->eval(m_Module, m_Backend)); in eval() 57 op->appendOperand(opd1); in eval() 58 op->appendOperand(opd2); in eval() 59 operandStack.push(op->eval(m_Module, m_Backend)); in eval() 69 op->appendOperand(opd1); in eval() 70 op->appendOperand(opd2); in eval() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | AdapterHelper.java | 95 UpdateOp op = mPendingUpdates.get(i); in preProcess() local 96 switch (op.cmd) { in preProcess() 98 applyAdd(op); in preProcess() 101 applyRemove(op); in preProcess() 104 applyUpdate(op); in preProcess() 107 applyMove(op); in preProcess() 126 private void applyMove(UpdateOp op) { in applyMove() argument 129 postponeAndUpdateViewHolders(op); in applyMove() 132 private void applyRemove(UpdateOp op) { in applyRemove() argument 133 int tmpStart = op.positionStart; in applyRemove() [all …]
|
/frameworks/ml/nn/runtime/test/fuzzing/operation_signatures/ |
D | Selection.cpp | 23 static void embeddingLookupConstructor(Type, uint32_t rank, RandomOperation* op) { in embeddingLookupConstructor() argument 24 setFreeDimensions(op->inputs[0], /*rank=*/1); in embeddingLookupConstructor() 25 setFreeDimensions(op->inputs[1], rank); in embeddingLookupConstructor() 26 op->outputs[0]->dimensions.resize(rank); in embeddingLookupConstructor() 27 op->outputs[0]->dimensions[0] = op->inputs[0]->dimensions[0]; in embeddingLookupConstructor() 29 op->outputs[0]->dimensions[i] = op->inputs[1]->dimensions[i]; in embeddingLookupConstructor() 31 setSameQuantization(op->outputs[0], op->inputs[1]); in embeddingLookupConstructor() 34 static void embeddingLookupFinalizer(RandomOperation* op) { in embeddingLookupFinalizer() argument 35 uint32_t dimValue = op->inputs[1]->dimensions[0].getValue(); in embeddingLookupFinalizer() 36 uint32_t numElements = op->inputs[0]->getNumberOfElements(); in embeddingLookupFinalizer() [all …]
|
D | Convolutions.cpp | 25 static void conv2DExplicitConstructor(Type, uint32_t rank, HalVersion ver, RandomOperation* op) { in conv2DExplicitConstructor() argument 29 int32_t paddingLeft = op->inputs[3]->value<int32_t>(); in conv2DExplicitConstructor() 30 int32_t paddingRight = op->inputs[4]->value<int32_t>(); in conv2DExplicitConstructor() 31 int32_t paddingTop = op->inputs[5]->value<int32_t>(); in conv2DExplicitConstructor() 32 int32_t paddingBottom = op->inputs[6]->value<int32_t>(); in conv2DExplicitConstructor() 33 int32_t strideWidth = op->inputs[7]->value<int32_t>(); in conv2DExplicitConstructor() 34 int32_t strideHeight = op->inputs[8]->value<int32_t>(); in conv2DExplicitConstructor() 37 if (op->inputs.size() > 10) { in conv2DExplicitConstructor() 38 useNchw = op->inputs[10]->value<bool8>(); in conv2DExplicitConstructor() 39 if (op->inputs.size() > 11) { in conv2DExplicitConstructor() [all …]
|
D | Reshape.cpp | 23 static void spaceToDepthConstructor(Type, uint32_t rank, RandomOperation* op) { in spaceToDepthConstructor() argument 27 if (op->inputs.size() > 2) useNchw = op->inputs[2]->value<bool8>(); in spaceToDepthConstructor() 32 op->inputs[0]->dimensions = {RandomVariableType::FREE, RandomVariableType::FREE, in spaceToDepthConstructor() 34 int32_t blockSize = op->inputs[1]->value<int32_t>(); in spaceToDepthConstructor() 35 auto outHeight = op->inputs[0]->dimensions[heightIndex].exactDiv(blockSize); in spaceToDepthConstructor() 36 auto outWidth = op->inputs[0]->dimensions[widthIndex].exactDiv(blockSize); in spaceToDepthConstructor() 37 auto outDepth = op->inputs[0]->dimensions[depthIndex] * (blockSize * blockSize); in spaceToDepthConstructor() 40 op->outputs[0]->dimensions = {op->inputs[0]->dimensions[0], outDepth, outHeight, outWidth}; in spaceToDepthConstructor() 42 op->outputs[0]->dimensions = {op->inputs[0]->dimensions[0], outHeight, outWidth, outDepth}; in spaceToDepthConstructor() 44 setSameQuantization(op->outputs[0], op->inputs[0]); in spaceToDepthConstructor() [all …]
|
D | BoundingBox.cpp | 23 static void roiTensorConstructor(Type dataType, uint32_t, RandomOperand* op) { in roiTensorConstructor() argument 24 op->dataType = dataType; in roiTensorConstructor() 26 op->dataType = Type::TENSOR_QUANT16_ASYMM; in roiTensorConstructor() 27 op->scale = 0.125f; in roiTensorConstructor() 28 op->zeroPoint = 0; in roiTensorConstructor() 38 static void roiConstructor(Type, uint32_t rank, RandomOperation* op) { in roiConstructor() argument 41 if (op->opType == ANEURALNETWORKS_ROI_ALIGN) { in roiConstructor() 42 useNchw = op->inputs[9]->value<bool8>(); in roiConstructor() 44 useNchw = op->inputs[7]->value<bool8>(); in roiConstructor() 47 op->inputs[0]->dimensions = {RandomVariableType::FREE, RandomVariableType::FREE, in roiConstructor() [all …]
|
D | Poolings.cpp | 24 static void poolingExplicitOpConstructor(Type, uint32_t rank, RandomOperation* op) { in poolingExplicitOpConstructor() argument 28 int32_t paddingLeft = op->inputs[1]->value<int32_t>(); in poolingExplicitOpConstructor() 29 int32_t paddingRight = op->inputs[2]->value<int32_t>(); in poolingExplicitOpConstructor() 30 int32_t paddingTop = op->inputs[3]->value<int32_t>(); in poolingExplicitOpConstructor() 31 int32_t paddingBottom = op->inputs[4]->value<int32_t>(); in poolingExplicitOpConstructor() 32 int32_t strideWidth = op->inputs[5]->value<int32_t>(); in poolingExplicitOpConstructor() 33 int32_t strideHeight = op->inputs[6]->value<int32_t>(); in poolingExplicitOpConstructor() 34 auto filterWidth = op->inputs[7]->value<RandomVariable>(); in poolingExplicitOpConstructor() 35 auto filterHeight = op->inputs[8]->value<RandomVariable>(); in poolingExplicitOpConstructor() 37 if (op->inputs.size() > 10) useNchw = op->inputs[10]->value<bool8>(); in poolingExplicitOpConstructor() [all …]
|
D | Resize.cpp | 23 static void resizeOpConstructor(Type, uint32_t rank, RandomOperation* op) { in resizeOpConstructor() argument 25 setFreeDimensions(op->inputs[0], rank); in resizeOpConstructor() 27 bool useNchw = op->inputs.size() > 3 ? static_cast<bool>(op->inputs[3]->value<bool8>()) : false; in resizeOpConstructor() 33 switch (op->inputs[1]->dataType) { in resizeOpConstructor() 36 outWidth = op->inputs[1]->value<RandomVariable>(); in resizeOpConstructor() 37 outHeight = op->inputs[2]->value<RandomVariable>(); in resizeOpConstructor() 41 outWidth = op->inputs[0]->dimensions[widthIndex] * op->inputs[1]->value<float>(); in resizeOpConstructor() 42 outHeight = op->inputs[0]->dimensions[heightIndex] * op->inputs[2]->value<float>(); in resizeOpConstructor() 45 outWidth = op->inputs[0]->dimensions[widthIndex] * in resizeOpConstructor() 46 static_cast<float>(op->inputs[1]->value<_Float16>()); in resizeOpConstructor() [all …]
|
D | OperationSignatureUtils.h | 95 inline void uniform(T low, T up, RandomOperand* op) { 96 T* data = reinterpret_cast<T*>(op->buffer.data()); 97 uint32_t len = op->getNumberOfElements(); 101 inline void uniform<bool8>(bool8, bool8, RandomOperand* op) { 102 bool8* data = reinterpret_cast<bool8*>(op->buffer.data()); 103 uint32_t len = op->getNumberOfElements(); 109 inline void uniformFinalizer(RandomOperand* op) { 110 switch (op->dataType) { 112 uniform<float>(kMinFloat32, kMaxFloat32, op); 115 uniform<int32_t>(0, 255, op); [all …]
|
D | ConcatSplit.cpp | 24 static void concatConstructor(uint32_t numInputs, bool isV1_0, uint32_t rank, RandomOperation* op) { in concatConstructor() argument 26 op->inputs[i]->dimensions.resize(rank); in concatConstructor() 27 if (isV1_0) setSameQuantization(op->inputs[i], op->inputs[0]); in concatConstructor() 29 op->outputs[0]->dimensions.resize(rank); in concatConstructor() 32 op->inputs[numInputs]->setScalarValue<int32_t>(axis); in concatConstructor() 34 op->inputs[0]->dimensions[i] = RandomVariableType::FREE; in concatConstructor() 35 op->outputs[0]->dimensions[i] = op->inputs[0]->dimensions[i]; in concatConstructor() 38 op->inputs[j]->dimensions[i] = RandomVariableType::FREE; in concatConstructor() 39 op->outputs[0]->dimensions[i] = in concatConstructor() 40 op->outputs[0]->dimensions[i] + op->inputs[j]->dimensions[i]; in concatConstructor() [all …]
|
D | Broadcast.cpp | 23 static void broadcastOpConstructor(Type dataType, uint32_t rank, RandomOperation* op) { in broadcastOpConstructor() argument 25 op->inputs[0]->dimensions.resize(rank); in broadcastOpConstructor() 26 op->inputs[1]->dimensions.resize(rank); in broadcastOpConstructor() 27 op->outputs[0]->dimensions.resize(rank); in broadcastOpConstructor() 30 op->inputs[0]->dimensions[i] = RandomVariableType::FREE; in broadcastOpConstructor() 32 op->inputs[0]->dimensions[i] = 1; in broadcastOpConstructor() 35 op->inputs[1]->dimensions[i] = op->inputs[0]->dimensions[i]; in broadcastOpConstructor() 37 op->inputs[1]->dimensions[i] = 1; in broadcastOpConstructor() 39 op->outputs[0]->dimensions[i] = in broadcastOpConstructor() 40 max(op->inputs[0]->dimensions[i], op->inputs[1]->dimensions[i]); in broadcastOpConstructor() [all …]
|
D | Reduce.cpp | 23 static void reduceOpConstructor(Type, uint32_t rank, RandomOperation* op) { in reduceOpConstructor() argument 24 setFreeDimensions(op->inputs[0], rank); in reduceOpConstructor() 31 op->inputs[1]->dimensions = {numAxis}; in reduceOpConstructor() 32 op->inputs[1]->resizeBuffer<int32_t>(numAxis); in reduceOpConstructor() 35 op->inputs[1]->value<int32_t>(i) = dim; in reduceOpConstructor() 41 if (op->inputs[2]->dataType == Type::BOOL) { in reduceOpConstructor() 42 keepDims = op->inputs[2]->value<bool8>(); in reduceOpConstructor() 44 keepDims = op->inputs[2]->value<int32_t>() > 0; in reduceOpConstructor() 49 op->outputs[0]->dimensions.emplace_back(op->inputs[0]->dimensions[i]); in reduceOpConstructor() 51 op->outputs[0]->dimensions.emplace_back(1); in reduceOpConstructor() [all …]
|
D | FullyConnected.cpp | 25 static void fullyConnectedConstructor(Type, uint32_t rank, HalVersion ver, RandomOperation* op) { in fullyConnectedConstructor() argument 27 op->inputs[0]->dimensions.resize(rank); in fullyConnectedConstructor() 30 op->inputs[0]->dimensions[i] = RandomVariableType::FREE; in fullyConnectedConstructor() 31 numElements = numElements * op->inputs[0]->dimensions[i]; in fullyConnectedConstructor() 35 op->inputs[1]->dimensions = {RandomVariableType::FREE, RandomVariableType::FREE}; in fullyConnectedConstructor() 38 op->inputs[2]->dimensions = {op->inputs[1]->dimensions[0]}; in fullyConnectedConstructor() 41 op->outputs[0]->dimensions = {numElements.exactDiv(op->inputs[1]->dimensions[1]), in fullyConnectedConstructor() 42 op->inputs[1]->dimensions[0]}; in fullyConnectedConstructor() 44 setConvFCScale(/*applyOutputScaleBound=*/ver == HalVersion::V1_0, op); in fullyConnectedConstructor()
|
D | Elementwise.cpp | 23 #define DEFINE_ELEMENTWISE_SIGNATURE(op, ver, ...) \ argument 24 DEFINE_OPERATION_SIGNATURE(op##_##ver){.opType = ANEURALNETWORKS_##op, \ 43 #define DEFINE_ELEMENTWISE_SIGNATURE_WITH_RANK5(op, ver, ...) \ argument 44 DEFINE_OPERATION_SIGNATURE(op##_##ver){.opType = ANEURALNETWORKS_##op, \ 61 static void elementwiseOpWithDisconnectedOutput(Type type, uint32_t rank, RandomOperation* op) { in elementwiseOpWithDisconnectedOutput() argument 62 sameShapeOpConstructor(type, rank, op); in elementwiseOpWithDisconnectedOutput() 63 op->outputs[0]->doNotConnect = true; in elementwiseOpWithDisconnectedOutput() 66 #define DEFINE_ELEMENTWISE_SIGNATURE_WITH_DISCONNECTED_OUTPUT(op, ver, ...) \ argument 67 DEFINE_OPERATION_SIGNATURE(op##_##ver){.opType = ANEURALNETWORKS_##op, \ 83 #define DEFINE_ELEMENTWISE_WITH_QUANT_OUTPUT_SIGNATURE(op, ver, s, z, ...) \ argument [all …]
|
/frameworks/base/core/java/android/util/ |
D | Base64.java | 74 public int op; field in Base64.Coder 166 if (decoder.op == decoder.output.length) { in decode() 172 byte[] temp = new byte[decoder.op]; in decode() 173 System.arraycopy(decoder.output, 0, temp, 0, decoder.op); in decode() 277 int op = 0; in process() local 302 output[op+2] = (byte) value; in process() 303 output[op+1] = (byte) (value >> 8); in process() 304 output[op] = (byte) (value >> 16); in process() 305 op += 3; in process() 346 output[op++] = (byte) (value >> 4); in process() [all …]
|
/frameworks/base/core/java/android/app/ |
D | BackStackRecord.java | 58 final BackStackRecord.Op op = bse.mOps.get(opNum); in BackStackState() local 59 mOps[pos++] = op.cmd; in BackStackState() 60 mOps[pos++] = op.fragment != null ? op.fragment.mIndex : -1; in BackStackState() 61 mOps[pos++] = op.enterAnim; in BackStackState() 62 mOps[pos++] = op.exitAnim; in BackStackState() 63 mOps[pos++] = op.popEnterAnim; in BackStackState() 64 mOps[pos++] = op.popExitAnim; in BackStackState() 99 BackStackRecord.Op op = new BackStackRecord.Op(); in instantiate() local 100 op.cmd = mOps[pos++]; in instantiate() 108 op.fragment = f; in instantiate() [all …]
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | RandomGraphGeneratorUtils.cpp | 131 void SpecWriter::dump(const std::shared_ptr<RandomOperand>& op) { in dump() argument 132 os << "op" << op->opIndex << " = " << toString(op->type) << "(\"op" << op->opIndex << "\", \"" in dump() 133 << toString(op->dataType) << "\", \""; in dump() 134 dump(op->dimensions); in dump() 135 if (op->scale != 0.0f || op->zeroPoint != 0) { in dump() 136 os << ", " << op->scale << "f, " << op->zeroPoint; in dump() 139 if (op->type == RandomOperandType::CONST) { in dump() 141 dump(op->dataType, reinterpret_cast<uint8_t*>(op->buffer.data()), in dump() 142 op->getNumberOfElements()); in dump() 150 void SpecWriter::dump(const RandomOperation& op) { in dump() argument [all …]
|
D | RandomGraphGenerator.cpp | 80 for (const auto& op : operation.inputs) { in RandomOperation() local 81 inputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation() 83 for (const auto& op : operation.outputs) { in RandomOperation() local 84 outputs.emplace_back(new RandomOperand(op, dataType, rank)); in RandomOperation() 161 for (const auto& op : ops) { in generateValue() local 162 if (seen.find(op) == seen.end()) { in generateValue() 163 seen.insert(op); in generateValue() 164 mOperands.push_back(op); in generateValue() 235 for (auto& op : operation.inputs) { in createModel() local 236 NN_FUZZER_LOG << toString(*op); in createModel() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PermissionPolicyService.java | 141 public void opChanged(int op, int uid, String packageName) { in onStart() 186 int op = AppOpsManager.permissionToOpCode(permission); in getSwitchOp() local 187 if (op == OP_NONE) { in getSwitchOp() 191 return AppOpsManager.opToSwitch(op); in getSwitchOp() 472 final OpToChange op = mOpsToAllow.get(i); in syncPackages() local 474 setUidModeAllowed(op.code, op.uid, op.packageName); in syncPackages() 475 alreadySetAppOps.put(IntPair.of(op.uid, op.code), 1); in syncPackages() 480 final OpToChange op = mOpsToAllowIfDefault.get(i); in syncPackages() local 481 if (alreadySetAppOps.indexOfKey(IntPair.of(op.uid, op.code)) >= 0) { in syncPackages() 485 boolean wasSet = setUidModeAllowedIfDefault(op.code, op.uid, op.packageName); in syncPackages() [all …]
|
/frameworks/av/media/libstagefright/ |
D | OggWriter.cpp | 135 ogg_packet op; in writeOggHeaderPackets() local 137 op.packet = buf; in writeOggHeaderPackets() 138 op.bytes = size; in writeOggHeaderPackets() 139 op.b_o_s = 1; in writeOggHeaderPackets() 140 op.e_o_s = 0; in writeOggHeaderPackets() 141 op.granulepos = 0; in writeOggHeaderPackets() 142 op.packetno = 0; in writeOggHeaderPackets() 143 ogg_stream_packetin((ogg_stream_state*)mOs, &op); in writeOggHeaderPackets() 168 op.packet = (unsigned char*)comments; in writeOggHeaderPackets() 169 op.bytes = comments_length; in writeOggHeaderPackets() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Region.java | 258 return op(r, Op.UNION); in union() 265 public boolean op(@NonNull Rect r, @NonNull Op op) { in op() method in Region 267 op.nativeInt); in op() 274 public boolean op(int left, int top, int right, int bottom, @NonNull Op op) { in op() method in Region 276 op.nativeInt); in op() 283 public boolean op(@NonNull Region region, @NonNull Op op) { in op() method in Region 284 return op(this, region, op); in op() 291 public boolean op(@NonNull Rect rect, @NonNull Region region, @NonNull Op op) { in op() argument 293 op.nativeInt); in op() 300 public boolean op(@NonNull Region region1, @NonNull Region region2, @NonNull Op op) { in op() argument [all …]
|
/frameworks/native/libs/binder/ |
D | AppOpsManager.cpp | 88 int32_t AppOpsManager::checkOp(int32_t op, int32_t uid, const String16& callingPackage) in checkOp() argument 92 ? service->checkOperation(op, uid, callingPackage) in checkOp() 96 int32_t AppOpsManager::checkAudioOpNoThrow(int32_t op, int32_t usage, int32_t uid, in checkAudioOpNoThrow() argument 100 ? service->checkAudioOperation(op, usage, uid, callingPackage) in checkAudioOpNoThrow() 104 int32_t AppOpsManager::noteOp(int32_t op, int32_t uid, const String16& callingPackage) { in noteOp() argument 107 ? service->noteOperation(op, uid, callingPackage) in noteOp() 111 int32_t AppOpsManager::startOpNoThrow(int32_t op, int32_t uid, const String16& callingPackage, in startOpNoThrow() argument 115 ? service->startOperation(getToken(service), op, uid, callingPackage, in startOpNoThrow() 119 void AppOpsManager::finishOp(int32_t op, int32_t uid, const String16& callingPackage) { in finishOp() argument 122 service->finishOperation(getToken(service), op, uid, callingPackage); in finishOp() [all …]
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 344 int evalMode(int op, int mode) { in evalMode() argument 346 return state <= AppOpsManager.resolveFirstUnrestrictedUidState(op) in evalMode() 352 private void evalForegroundWatchers(int op, SparseArray<ArraySet<ModeCallback>> watchers, in evalForegroundWatchers() argument 354 boolean curValue = which.get(op, false); in evalForegroundWatchers() 355 ArraySet<ModeCallback> callbacks = watchers.get(op); in evalForegroundWatchers() 365 which.put(op, curValue); in evalForegroundWatchers() 411 int op; field in AppOpsService.Op 426 Op(UidState uidState, String packageName, int op) { in Op() argument 427 this.op = op; in Op() 430 this.mode = AppOpsManager.opToDefaultMode(op); in Op() [all …]
|
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/ |
D | RunResult.java | 31 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()
|