/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 | Convolutions.cpp | 26 RandomOperation* op) { in conv2DExplicitConstructor() argument 30 int32_t paddingLeft = op->inputs[3]->value<int32_t>(); in conv2DExplicitConstructor() 31 int32_t paddingRight = op->inputs[4]->value<int32_t>(); in conv2DExplicitConstructor() 32 int32_t paddingTop = op->inputs[5]->value<int32_t>(); in conv2DExplicitConstructor() 33 int32_t paddingBottom = op->inputs[6]->value<int32_t>(); in conv2DExplicitConstructor() 34 int32_t strideWidth = op->inputs[7]->value<int32_t>(); in conv2DExplicitConstructor() 35 int32_t strideHeight = op->inputs[8]->value<int32_t>(); in conv2DExplicitConstructor() 38 if (op->inputs.size() > 10) { in conv2DExplicitConstructor() 39 useNchw = op->inputs[10]->value<bool8>(); in conv2DExplicitConstructor() 40 if (op->inputs.size() > 11) { in conv2DExplicitConstructor() [all …]
|
D | Selection.cpp | 27 static void embeddingLookupConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in embeddingLookupConstructor() argument 28 setFreeDimensions(op->inputs[0], /*rank=*/1); in embeddingLookupConstructor() 29 setFreeDimensions(op->inputs[1], rank); in embeddingLookupConstructor() 30 op->outputs[0]->dimensions.resize(rank); in embeddingLookupConstructor() 31 op->outputs[0]->dimensions[0] = op->inputs[0]->dimensions[0]; in embeddingLookupConstructor() 33 op->outputs[0]->dimensions[i] = op->inputs[1]->dimensions[i]; in embeddingLookupConstructor() 35 setSameQuantization(op->outputs[0], op->inputs[1]); in embeddingLookupConstructor() 38 static void embeddingLookupFinalizer(RandomOperation* op) { in embeddingLookupFinalizer() argument 39 uint32_t dimValue = op->inputs[1]->dimensions[0].getValue(); in embeddingLookupFinalizer() 40 uint32_t numElements = op->inputs[0]->getNumberOfElements(); in embeddingLookupFinalizer() [all …]
|
D | Reshape.cpp | 26 static void spaceToDepthConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in spaceToDepthConstructor() argument 30 if (op->inputs.size() > 2) useNchw = op->inputs[2]->value<bool8>(); in spaceToDepthConstructor() 35 op->inputs[0]->dimensions = {RandomVariableType::FREE, RandomVariableType::FREE, in spaceToDepthConstructor() 37 int32_t blockSize = op->inputs[1]->value<int32_t>(); in spaceToDepthConstructor() 38 auto outHeight = op->inputs[0]->dimensions[heightIndex].exactDiv(blockSize); in spaceToDepthConstructor() 39 auto outWidth = op->inputs[0]->dimensions[widthIndex].exactDiv(blockSize); in spaceToDepthConstructor() 40 auto outDepth = op->inputs[0]->dimensions[depthIndex] * (blockSize * blockSize); in spaceToDepthConstructor() 43 op->outputs[0]->dimensions = {op->inputs[0]->dimensions[0], outDepth, outHeight, outWidth}; in spaceToDepthConstructor() 45 op->outputs[0]->dimensions = {op->inputs[0]->dimensions[0], outHeight, outWidth, outDepth}; in spaceToDepthConstructor() 47 setSameQuantization(op->outputs[0], op->inputs[0]); in spaceToDepthConstructor() [all …]
|
D | OperationSignatureUtils.h | 121 inline void uniform(T low, T up, T zeroPoint, RandomOperand* op) { 122 T* data = reinterpret_cast<T*>(op->buffer.data()); 123 uint32_t len = op->getNumberOfElements(); 125 data[i] = getUniformValue<T>(op->valueProperties, low, up, zeroPoint); 131 inline void uniformFinalizer(RandomOperand* op) { 132 switch (op->dataType) { 135 uniform<float>(kMinFloat32, kMaxFloat32, 0.0f, op); 139 uniform<int32_t>(0, 255, op->zeroPoint, op); 142 uniform<uint8_t>(0, 255, op->zeroPoint, op); 145 uniform<int8_t>(-128, 127, op->zeroPoint, op); [all …]
|
D | BoundingBox.cpp | 28 static void roiTensorConstructor(TestOperandType dataType, uint32_t, RandomOperand* op) { in roiTensorConstructor() argument 29 op->dataType = dataType; in roiTensorConstructor() 31 op->dataType = TestOperandType::TENSOR_QUANT16_ASYMM; in roiTensorConstructor() 32 op->scale = 0.125f; in roiTensorConstructor() 33 op->zeroPoint = 0; in roiTensorConstructor() 42 static void roiConstructor(TestOperandType, uint32_t rank, RandomOperation* op) { in roiConstructor() argument 45 if (op->opType == TestOperationType::ROI_ALIGN) { in roiConstructor() 46 useNchw = op->inputs[9]->value<bool8>(); in roiConstructor() 48 useNchw = op->inputs[7]->value<bool8>(); in roiConstructor() 51 op->inputs[0]->dimensions = {RandomVariableType::FREE, RandomVariableType::FREE, in roiConstructor() [all …]
|
D | Poolings.cpp | 24 static void poolingExplicitOpConstructor(TestOperandType, 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(TestOperandType, 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 | Broadcast.cpp | 25 static void broadcastOpConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in broadcastOpConstructor() argument 27 op->inputs[0]->dimensions.resize(rank); in broadcastOpConstructor() 28 op->inputs[1]->dimensions.resize(rank2); in broadcastOpConstructor() 29 op->outputs[0]->dimensions.resize(rank); in broadcastOpConstructor() 31 op->outputs[0]->dimensions[i] = RandomVariableType::FREE; in broadcastOpConstructor() 33 op->inputs[0]->dimensions[i] = op->outputs[0]->dimensions[i]; in broadcastOpConstructor() 37 op->inputs[0]->dimensions[i] = op->outputs[0]->dimensions[i]; in broadcastOpConstructor() 38 op->inputs[1]->dimensions[i - rankDiff] = op->outputs[0]->dimensions[i]; in broadcastOpConstructor() 41 op->inputs[0]->dimensions[i] = 1; in broadcastOpConstructor() 42 op->inputs[1]->dimensions[i - rankDiff] = op->outputs[0]->dimensions[i]; in broadcastOpConstructor() [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 | Reduce.cpp | 23 static void reduceOpConstructor(TestOperandType, 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 == TestOperandType::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 | Elementwise.cpp | 23 static void elementwiseOpConstructor(TestOperandType dataType, uint32_t rank, RandomOperation* op) { in elementwiseOpConstructor() argument 24 sameShapeOpConstructor(dataType, rank, op); in elementwiseOpConstructor() 26 switch (op->opType) { in elementwiseOpConstructor() 29 op->outputs[0]->valueProperties = RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 32 op->outputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 35 op->outputs[0]->valueProperties = RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 38 op->outputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 41 op->inputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 44 op->inputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() 45 op->outputs[0]->valueProperties = RandomOperand::NON_ZERO | RandomOperand::NON_NEGATIVE; in elementwiseOpConstructor() [all …]
|
D | FullyConnected.cpp | 26 RandomOperation* op) { in fullyConnectedConstructor() argument 28 op->inputs[0]->dimensions.resize(rank); in fullyConnectedConstructor() 31 op->inputs[0]->dimensions[i] = RandomVariableType::FREE; in fullyConnectedConstructor() 32 numElements = numElements * op->inputs[0]->dimensions[i]; in fullyConnectedConstructor() 36 op->inputs[1]->dimensions = {RandomVariableType::FREE, RandomVariableType::FREE}; in fullyConnectedConstructor() 39 op->inputs[2]->dimensions = {op->inputs[1]->dimensions[0]}; in fullyConnectedConstructor() 42 op->outputs[0]->dimensions = {numElements.exactDiv(op->inputs[1]->dimensions[1]), in fullyConnectedConstructor() 43 op->inputs[1]->dimensions[0]}; in fullyConnectedConstructor() 45 setConvFCScale(/*applyOutputScaleBound=*/ver == TestHalVersion::V1_0, op); in fullyConnectedConstructor()
|
/frameworks/ml/nn/tools/test_generator/ |
D | spec_visualizer.py | 74 def GetOperandInfo(op): argument 75 op_info = {"lifetime": op.lifetime, "type": op.type.type} 77 if not op.type.IsScalar(): 78 op_info["dimensions"] = FormatArray(op.type.dimensions) 80 if op.type.scale != 0: 81 op_info["scale"] = op.type.scale 82 op_info["zero point"] = op.type.zeroPoint 83 if op.type.type == "TENSOR_QUANT8_SYMM_PER_CHANNEL": 84 op_info["scale"] = FormatArray(op.type.extraParams.scales) 85 op_info["channel dim"] = op.type.extraParams.channelDim [all …]
|
D | test_generator.py | 520 return sorted(list(set(op.type for op in self.operands))) 529 return [i for i,op in enumerate(self.operands) if isinstance(op, Input)] 532 return [o for o,op in enumerate(self.operands) if isinstance(op, Output)] 560 for ind, op in enumerate(self.operands): 561 op.model_index = ind 565 for op in self.operands: 566 op.ins = list() 567 op.outs = list() 568 for op in self.operations: 569 op.ins = self.GetEquivalentOperands(op.ins) [all …]
|
/frameworks/base/core/java/android/util/ |
D | Base64.java | 75 public int op; field in Base64.Coder 167 if (decoder.op == decoder.output.length) { in decode() 173 byte[] temp = new byte[decoder.op]; in decode() 174 System.arraycopy(decoder.output, 0, temp, 0, decoder.op); in decode() 278 int op = 0; in process() local 303 output[op+2] = (byte) value; in process() 304 output[op+1] = (byte) (value >> 8); in process() 305 output[op] = (byte) (value >> 16); in process() 306 op += 3; in process() 347 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/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/ml/nn/runtime/test/android_fuzzing/ |
D | DriverFuzzTest.cpp | 67 const auto& op = testSubgraph.operands[i]; in createSubgraph() local 70 if (op.lifetime == TestOperandLifeTime::CONSTANT_COPY) { in createSubgraph() 74 .length = static_cast<uint32_t>(op.data.size()), in createSubgraph() 76 constCopies->push_back(&op.data); in createSubgraph() 77 *constCopySize += op.data.alignedSize(); in createSubgraph() 78 } else if (op.lifetime == TestOperandLifeTime::CONSTANT_REFERENCE) { in createSubgraph() 82 .length = static_cast<uint32_t>(op.data.size()), in createSubgraph() 84 constReferences->push_back(&op.data); in createSubgraph() 85 *constRefSize += op.data.alignedSize(); in createSubgraph() 86 } else if (op.lifetime == TestOperandLifeTime::SUBGRAPH) { in createSubgraph() [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() argument 276 op.nativeInt); in op() 283 public boolean op(@NonNull Region region, @NonNull Op op) { in op() argument 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/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 355 int evalMode(int op, int mode) { in evalMode() argument 357 return state <= AppOpsManager.resolveFirstUnrestrictedUidState(op) in evalMode() 363 private void evalForegroundWatchers(int op, SparseArray<ArraySet<ModeCallback>> watchers, in evalForegroundWatchers() argument 365 boolean curValue = which.get(op, false); in evalForegroundWatchers() 366 ArraySet<ModeCallback> callbacks = watchers.get(op); in evalForegroundWatchers() 376 which.put(op, curValue); in evalForegroundWatchers() 422 int op; field in AppOpsService.Op 437 Op(UidState uidState, String packageName, int op) { in Op() argument 438 this.op = op; in Op() 441 this.mode = AppOpsManager.opToDefaultMode(op); in Op() [all …]
|
/frameworks/ml/nn/tools/test_generator/test_harness/ |
D | TestHarness.cpp | 62 uint32_t getNumberOfElements(const TestOperand& op) { in getNumberOfElements() argument 63 return std::reduce(op.dimensions.begin(), op.dimensions.end(), 1u, std::multiplies<uint32_t>()); in getNumberOfElements() 68 void expectNear(const TestOperand& op, const TestBuffer& result, const AccuracyCriterion& criterion, in expectNear() argument 72 const T* expectedBuffer = op.data.get<T>(); in expectNear() 73 uint32_t len = getNumberOfElements(op), numErrors = 0, numSkip = 0; in expectNear() 115 void expectBooleanNearlyEqual(const TestOperand& op, const TestBuffer& result, in expectBooleanNearlyEqual() argument 118 const bool8* expectedBuffer = op.data.get<bool8>(); in expectBooleanNearlyEqual() 119 uint32_t len = getNumberOfElements(op), numErrors = 0; in expectBooleanNearlyEqual() 279 [](const TestOperand& op) { in checkResults() argument 280 return op.type == TestOperandType::TENSOR_FLOAT16; in checkResults() [all …]
|