/frameworks/ml/nn/runtime/test/android_fuzzing/corpus/ |
D | seed263 | 691 operation { 706 operation { 717 operation { 732 operation { 741 operation { 759 operation { 769 operation { 779 operation { 790 operation { 800 operation { [all …]
|
D | seed251 | 1378 operation { 1389 operation { 1403 operation { 1418 operation { 1429 operation { 1439 operation { 1453 operation { 1464 operation { 1475 operation { 1485 operation { [all …]
|
D | seed339 | 404 operation { 419 operation { 439 operation { 454 operation { 473 operation { 486 operation { 501 operation { 520 operation { 536 operation { 553 operation { [all …]
|
D | seed078 | 931 operation { 942 operation { 954 operation { 983 operation { 992 operation { 1003 operation { 1032 operation { 1042 operation { 1053 operation { 1065 operation { [all …]
|
D | seed120 | 1709 operation { 1720 operation { 1731 operation { 1742 operation { 1753 operation { 1764 operation { 1778 operation { 1789 operation { 1801 operation { 1811 operation { [all …]
|
D | seed065 | 2384 operation { 2406 operation { 2422 operation { 2432 operation { 2447 operation { 2462 operation { 2477 operation { 2499 operation { 2513 operation { 2528 operation { [all …]
|
/frameworks/ml/nn/common/operations/ |
D | BidirectionalSequenceLSTM.cpp | 81 BidirectionalSequenceLSTM::BidirectionalSequenceLSTM(const Operation& operation, in BidirectionalSequenceLSTM() argument 83 input_ = GetInput(operation, operands, kInputTensor); in BidirectionalSequenceLSTM() 86 GetInput(operation, operands, kFwInputToInputWeightsTensor); // optional in BidirectionalSequenceLSTM() 87 fw_input_to_forget_weights_ = GetInput(operation, operands, kFwInputToForgetWeightsTensor); in BidirectionalSequenceLSTM() 88 fw_input_to_cell_weights_ = GetInput(operation, operands, kFwInputToCellWeightsTensor); in BidirectionalSequenceLSTM() 89 fw_input_to_output_weights_ = GetInput(operation, operands, kFwInputToOutputWeightsTensor); in BidirectionalSequenceLSTM() 92 GetInput(operation, operands, kFwRecurrentToInputWeightsTensor); // optional in BidirectionalSequenceLSTM() 94 GetInput(operation, operands, kFwRecurrentToForgetWeightsTensor); in BidirectionalSequenceLSTM() 95 fw_recurrent_to_cell_weights_ = GetInput(operation, operands, kFwRecurrentToCellWeightsTensor); in BidirectionalSequenceLSTM() 97 GetInput(operation, operands, kFwRecurrentToOutputWeightsTensor); in BidirectionalSequenceLSTM() [all …]
|
D | QuantizedLSTM.cpp | 223 QuantizedLSTMCell::QuantizedLSTMCell(const Operation& operation, RunTimeOperandInfo* operands) { in QuantizedLSTMCell() argument 224 input_ = GetInput(operation, operands, kInputTensor); in QuantizedLSTMCell() 226 inputToInputWeights_ = GetInput(operation, operands, kInputToInputWeightsTensor); in QuantizedLSTMCell() 227 inputToForgetWeights_ = GetInput(operation, operands, kInputToForgetWeightsTensor); in QuantizedLSTMCell() 228 inputToCellWeights_ = GetInput(operation, operands, kInputToCellWeightsTensor); in QuantizedLSTMCell() 229 inputToOutputWeights_ = GetInput(operation, operands, kInputToOutputWeightsTensor); in QuantizedLSTMCell() 231 recurrentToInputWeights_ = GetInput(operation, operands, kRecurrentToInputWeightsTensor); in QuantizedLSTMCell() 232 recurrentToForgetWeights_ = GetInput(operation, operands, kRecurrentToForgetWeightsTensor); in QuantizedLSTMCell() 233 recurrentToCellWeights_ = GetInput(operation, operands, kRecurrentToCellWeightsTensor); in QuantizedLSTMCell() 234 recurrentToOutputWeights_ = GetInput(operation, operands, kRecurrentToOutputWeightsTensor); in QuantizedLSTMCell() [all …]
|
D | SVDF.cpp | 33 SVDF::SVDF(const Operation& operation, RunTimeOperandInfo* operands) { in SVDF() argument 35 input_ = GetInput(operation, operands, kInputTensor); in SVDF() 36 weights_feature_ = GetInput(operation, operands, kWeightsFeatureTensor); in SVDF() 37 weights_time_ = GetInput(operation, operands, kWeightsTimeTensor); in SVDF() 38 bias_ = GetInput(operation, operands, kBiasTensor); in SVDF() 39 state_in_ = GetInput(operation, operands, kStateInTensor); in SVDF() 41 const auto& rankOperand = *GetInput(operation, operands, kRankParam); in SVDF() 43 const auto& activationOperand = *GetInput(operation, operands, kActivationParam); in SVDF() 47 state_out_ = GetOutput(operation, operands, kStateOutTensor); in SVDF() 48 output_ = GetOutput(operation, operands, kOutputTensor); in SVDF() [all …]
|
D | LSHProjection.cpp | 34 LSHProjection::LSHProjection(const Operation& operation, RunTimeOperandInfo* operands) { in LSHProjection() argument 35 input_ = GetInput(operation, operands, kInputTensor); in LSHProjection() 36 weight_ = GetInput(operation, operands, kWeightTensor); in LSHProjection() 37 hash_ = GetInput(operation, operands, kHashTensor); in LSHProjection() 40 getScalarData<int32_t>(*GetInput(operation, operands, kTypeParam))); in LSHProjection() 42 output_ = GetOutput(operation, operands, kOutputTensor); in LSHProjection() 45 bool LSHProjection::Prepare(const Operation& operation, RunTimeOperandInfo* operands, in Prepare() argument 50 NN_RET_CHECK(!IsNullInput(GetInput(operation, operands, requiredInput))) in Prepare() 53 NN_CHECK_EQ(NumOutputs(operation), 1); in Prepare() 55 const RunTimeOperandInfo* hash = GetInput(operation, operands, kHashTensor); in Prepare() [all …]
|
D | Multinomial.cpp | 54 Multinomial::Multinomial(const Operation& operation, RunTimeOperandInfo* operands) { in Multinomial() argument 56 input_ = GetInput(operation, operands, kInputTensor); in Multinomial() 57 sample_count_ = getScalarData<int>(*GetInput(operation, operands, kSampleCountParam)); in Multinomial() 58 random_seeds_ = GetInput(operation, operands, kRandomSeedsTensor); in Multinomial() 60 output_ = GetOutput(operation, operands, kOutputTensor); in Multinomial() 63 bool Multinomial::Prepare(const Operation& operation, RunTimeOperandInfo* operands, in Prepare() argument 66 NN_CHECK_EQ(NumInputsWithValues(operation, operands), 3); in Prepare() 67 NN_CHECK_EQ(NumOutputs(operation), 1); in Prepare() 69 const RunTimeOperandInfo* input = GetInput(operation, operands, Multinomial::kInputTensor); in Prepare() 74 getScalarData<int>(*GetInput(operation, operands, kSampleCountParam)); in Prepare()
|
D | RNN.cpp | 34 RNN::RNN(const Operation& operation, RunTimeOperandInfo* operands) { in RNN() argument 36 input_ = GetInput(operation, operands, kInputTensor); in RNN() 37 weights_ = GetInput(operation, operands, kWeightsTensor); in RNN() 38 recurrent_weights_ = GetInput(operation, operands, kRecurrentWeightsTensor); in RNN() 39 hidden_state_in_ = GetInput(operation, operands, kHiddenStateInTensor); in RNN() 40 bias_ = GetInput(operation, operands, kBiasTensor); in RNN() 43 getScalarData<int32_t>(operands[operation.inputs[kActivationParam]])); in RNN() 45 hidden_state_out_ = GetOutput(operation, operands, kHiddenStateOutTensor); in RNN() 46 output_ = GetOutput(operation, operands, kOutputTensor); in RNN() 49 bool RNN::Prepare(const Operation& operation, RunTimeOperandInfo* operands, Shape* hiddenStateShape, in Prepare() argument [all …]
|
D | HashtableLookup.cpp | 40 HashtableLookup::HashtableLookup(const Operation& operation, RunTimeOperandInfo* operands) { in HashtableLookup() argument 41 lookup_ = GetInput(operation, operands, kLookupTensor); in HashtableLookup() 42 key_ = GetInput(operation, operands, kKeyTensor); in HashtableLookup() 43 value_ = GetInput(operation, operands, kValueTensor); in HashtableLookup() 45 output_ = GetOutput(operation, operands, kOutputTensor); in HashtableLookup() 46 hits_ = GetOutput(operation, operands, kHitsTensor); in HashtableLookup()
|
/frameworks/base/cmds/statsd/tests/condition/ |
D | CombinationConditionTracker_test.cpp | 28 LogicalOperation operation = LogicalOperation::AND; in TEST() local 40 EXPECT_EQ(evaluateCombinationCondition(children, operation, conditionResults), in TEST() 46 LogicalOperation operation = LogicalOperation::AND; in TEST() local 58 EXPECT_FALSE(evaluateCombinationCondition(children, operation, conditionResults)); in TEST() 65 EXPECT_TRUE(evaluateCombinationCondition(children, operation, conditionResults)); in TEST() 70 LogicalOperation operation = LogicalOperation::OR; in TEST() local 82 EXPECT_TRUE(evaluateCombinationCondition(children, operation, conditionResults)); in TEST() 89 EXPECT_FALSE(evaluateCombinationCondition(children, operation, conditionResults)); in TEST() 94 LogicalOperation operation = LogicalOperation::NOT; in TEST() local 102 EXPECT_FALSE(evaluateCombinationCondition(children, operation, conditionResults)); in TEST() [all …]
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | RandomGraphGenerator.cpp | 82 RandomOperation::RandomOperation(const OperationSignature& operation) in RandomOperation() argument 83 : opType(operation.opType), finalizer(operation.finalizer) { in RandomOperation() 87 TestOperandType dataType = getRandomChoice(operation.supportedDataTypes); in RandomOperation() 88 uint32_t rank = getRandomChoice(operation.supportedRanks); in RandomOperation() 91 for (const auto& op : operation.inputs) { in RandomOperation() 94 for (const auto& op : operation.outputs) { in RandomOperation() 97 if (operation.constructor) operation.constructor(dataType, rank, this); in RandomOperation() 179 for (const auto& operation : mOperations) { in generateValue() local 180 fillOperands(operation.inputs); in generateValue() 181 fillOperands(operation.outputs); in generateValue() [all …]
|
/frameworks/base/core/java/android/app/ |
D | AlarmManager.java | 355 public void set(@AlarmType int type, long triggerAtMillis, PendingIntent operation) { in set() argument 356 setImpl(type, triggerAtMillis, legacyExactLength(), 0, 0, operation, null, null, in set() 444 long intervalMillis, PendingIntent operation) { in setRepeating() argument 445 setImpl(type, triggerAtMillis, legacyExactLength(), intervalMillis, 0, operation, in setRepeating() 494 PendingIntent operation) { in setWindow() argument 495 setImpl(type, windowStartMillis, windowLengthMillis, 0, 0, operation, in setWindow() 547 public void setExact(@AlarmType int type, long triggerAtMillis, PendingIntent operation) { in setExact() argument 548 setImpl(type, triggerAtMillis, WINDOW_EXACT, 0, 0, operation, null, null, null, in setExact() 614 public void setAlarmClock(AlarmClockInfo info, PendingIntent operation) { in setAlarmClock() argument 615 setImpl(RTC_WAKEUP, info.getTriggerTime(), WINDOW_EXACT, 0, 0, operation, in setAlarmClock() [all …]
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteConnection.java | 1411 Operation operation = mOperations[index]; in beginOperation() local 1412 if (operation == null) { in beginOperation() 1413 operation = new Operation(); in beginOperation() 1414 mOperations[index] = operation; in beginOperation() 1416 operation.mFinished = false; in beginOperation() 1417 operation.mException = null; in beginOperation() 1418 if (operation.mBindArgs != null) { in beginOperation() 1419 operation.mBindArgs.clear(); in beginOperation() 1422 operation.mStartWallTime = System.currentTimeMillis(); in beginOperation() 1423 operation.mStartTime = SystemClock.uptimeMillis(); in beginOperation() [all …]
|
/frameworks/ml/nn/common/include/ |
D | CpuExecutor.h | 173 int executeOperation(const hal::Operation& operation, RunTimeOperandInfo* operands); 174 int executeIfOperation(const hal::Operation& operation, RunTimeOperandInfo* operands); 175 int executeWhileOperation(const hal::Operation& operation, RunTimeOperandInfo* operands); 265 inline int NumInputsWithValues(const hal::Operation& operation, in NumInputsWithValues() argument 267 const std::vector<uint32_t>& inputs = operation.inputs; in NumInputsWithValues() 272 inline int NumOutputs(const hal::Operation& operation) { in NumOutputs() argument 273 return operation.outputs.size(); in NumOutputs() 284 inline RunTimeOperandInfo* GetInput(const hal::Operation& operation, RunTimeOperandInfo* operands, in GetInput() argument 286 return &operands[operation.inputs[index]]; in GetInput() 289 inline RunTimeOperandInfo* GetOutput(const hal::Operation& operation, RunTimeOperandInfo* operands, in GetOutput() argument [all …]
|
/frameworks/ml/nn/runtime/test/fibonacci_extension/ |
D | FibonacciDriver.cpp | 58 bool isFibonacciOperation(const Operation& operation, const Model& model) { in isFibonacciOperation() argument 59 int32_t operationType = static_cast<int32_t>(operation.type); in isFibonacciOperation() 66 bool validate(const Operation& operation, const Model& model) { in validate() argument 67 NN_RET_CHECK(isFibonacciOperation(operation, model)); in validate() 68 NN_RET_CHECK_EQ(operation.inputs.size(), kNumInputs); in validate() 69 NN_RET_CHECK_EQ(operation.outputs.size(), kNumOutputs); in validate() 70 int32_t inputType = static_cast<int32_t>(model.main.operands[operation.inputs[0]].type); in validate() 71 int32_t outputType = static_cast<int32_t>(model.main.operands[operation.outputs[0]].type); in validate() 199 const Operation& operation = model.main.operations[i]; in getSupportedOperations_1_3() local 200 if (fibonacci_op::isFibonacciOperation(operation, model)) { in getSupportedOperations_1_3() [all …]
|
/frameworks/ml/nn/driver/sample/ |
D | SampleDriverQuant.cpp | 69 const Operation& operation = model.main.operations[i]; in getSupportedOperationsImpl() local 70 if (!isExtensionOperationType(operation.type) && operation.inputs.size() > 0) { in getSupportedOperationsImpl() 71 const Operand& firstOperand = model.main.operands[operation.inputs[0]]; in getSupportedOperationsImpl() 73 if (operation.type == OperationType::SELECT) { in getSupportedOperationsImpl() 74 const Operand& secondOperand = model.main.operands[operation.inputs[1]]; in getSupportedOperationsImpl()
|
/frameworks/ml/nn/runtime/ |
D | ModelBuilder.cpp | 542 static void logRemoval(const Operation& operation, uint32_t count, in logRemoval() argument 545 message << "Operation " << toString(operation.type) << " with inputs {"; in logRemoval() 546 for (uint32_t i = 0; i < operation.inputs.size(); ++i) { in logRemoval() 550 message << toString(operands[operation.inputs[i]].type); in logRemoval() 558 for (Operation& operation : mOperations) { in removeTrailingArgumentsWithDefaultValues() 559 const uint32_t count = getNumTrailingArgumentsToRemove(operation); in removeTrailingArgumentsWithDefaultValues() 564 logRemoval(operation, count, mOperands); in removeTrailingArgumentsWithDefaultValues() 566 const uint32_t inputCount = operation.inputs.size(); in removeTrailingArgumentsWithDefaultValues() 570 --mOperands[operation.inputs[i]].numberOfConsumers; in removeTrailingArgumentsWithDefaultValues() 572 operation.inputs.resize(newInputCount); in removeTrailingArgumentsWithDefaultValues() [all …]
|
/frameworks/ml/nn/runtime/test/android_fuzzing/ |
D | Converter.cpp | 114 TestOperation convert(const Operation& operation) { in convert() argument 115 const TestOperationType type = convert(operation.type()); in convert() 116 std::vector<uint32_t> inputs = convert(operation.inputs()); in convert() 117 std::vector<uint32_t> outputs = convert(operation.outputs()); in convert() 124 const auto& repeatedOperation = operations.operation(); in convert() 127 [](const auto& operation) { return convert(operation); }); in convert() argument 139 const auto addAllConsumers = [&addConsumer](const TestOperation& operation) { in calculateNumberOfConsumers() argument 140 std::for_each(operation.inputs.begin(), operation.inputs.end(), addConsumer); in calculateNumberOfConsumers()
|
/frameworks/ml/nn/common/ |
D | CpuExecutor.cpp | 55 OperationExecutionContext(const Operation* operation, RunTimeOperandInfo* operands) in OperationExecutionContext() argument 56 : operation(operation), operands(operands) {} in OperationExecutionContext() 87 const Operation* operation; member in android::nn::__anonec8350e20111::OperationExecutionContext 94 CHECK(index < operation->inputs.size()); in getInputInfo() 95 return &operands[operation->inputs[index]]; in getInputInfo() 99 CHECK(index < operation->outputs.size()); in getOutputInfo() 100 return &operands[operation->outputs[index]]; in getOutputInfo() 104 CHECK(index < operation->outputs.size()); in getOutputInfo() 105 return &operands[operation->outputs[index]]; in getOutputInfo() 137 return operation->inputs.size(); in getNumInputs() [all …]
|
D | GraphDump.cpp | 223 const Operation& operation = model.main.operations[i]; in graphDump() local 225 const uint32_t maxArity = std::max(operation.inputs.size(), operation.outputs.size()); in graphDump() 227 if (maxArity == operation.inputs.size()) { in graphDump() 233 dump << " label=\"" << i << ": " << toString(operation.type) << "\"]" << Dumper::endl; in graphDump() 236 for (unsigned in = 0, inE = operation.inputs.size(); in < inE; in++) { in graphDump() 237 dump << " d" << operation.inputs[in] << " -> n" << i; in graphDump() 247 for (unsigned out = 0, outE = operation.outputs.size(); out < outE; out++) { in graphDump() 248 dump << " n" << i << " -> d" << operation.outputs[out]; in graphDump()
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | RemoteListenerHelper.java | 139 protected void foreach(ListenerOperation<TListener> operation) { in foreach() argument 141 foreachUnsafe(operation); in foreach() 196 private void foreachUnsafe(ListenerOperation<TListener> operation) { in foreachUnsafe() argument 198 post(identifiedListener, operation); in foreachUnsafe() 203 ListenerOperation<TListener> operation) { in post() argument 204 if (operation != null) { in post() 205 mHandler.post(new HandlerRunnable(identifiedListener, operation)); in post() 274 ListenerOperation<TListener> operation) { in HandlerRunnable() argument 276 mOperation = operation; in HandlerRunnable()
|