/external/webrtc/sdk/ |
D | media_constraints.cc | 30 bool FindConstraint(const MediaConstraints* constraints, in FindConstraint() argument 35 if (!FindConstraint(constraints, key, &string_value, mandatory_constraints)) { in FindConstraint() 43 bool FindConstraint(const MediaConstraints* constraints, in FindConstraint() argument 47 if (!constraints) { in FindConstraint() 50 if (constraints->GetMandatory().FindFirst(key, value)) { in FindConstraint() 56 if (constraints->GetOptional().FindFirst(key, value)) { in FindConstraint() 62 bool FindConstraint(const MediaConstraints* constraints, in FindConstraint() argument 66 return FindConstraint<bool>(constraints, key, value, mandatory_constraints); in FindConstraint() 69 bool FindConstraint(const MediaConstraints* constraints, in FindConstraint() argument 73 return FindConstraint<int>(constraints, key, value, mandatory_constraints); in FindConstraint() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | gpu_layout_assignment.cc | 122 HloCustomCallInstruction* instr, LayoutConstraints* constraints) { in AddBackendConstraintsToDnnConvCustomCall() argument 170 constraints->points_to_analysis().GetBufferDefinedAt( in AddBackendConstraintsToDnnConvCustomCall() 174 TF_RETURN_IF_ERROR(constraints->SetOperandLayout(lhs_shape, instr, 0)); in AddBackendConstraintsToDnnConvCustomCall() 175 TF_RETURN_IF_ERROR(constraints->SetOperandLayout(rhs_shape, instr, 1)); in AddBackendConstraintsToDnnConvCustomCall() 177 constraints->SetBufferLayout(result_shape.layout(), *call_result_buf)); in AddBackendConstraintsToDnnConvCustomCall() 190 TF_RETURN_IF_ERROR(constraints->SetOperandLayout(*output_shape, instr, 3)); in AddBackendConstraintsToDnnConvCustomCall() 196 LayoutConstraints* constraints) { in AddBackendConstraints() argument 200 auto post_order = constraints->computation()->MakeInstructionPostOrder(); in AddBackendConstraints() 206 Cast<HloCustomCallInstruction>(instruction), constraints)); in AddBackendConstraints() 235 constraints->SetOperandLayout(op0_shape, instruction, 0)); in AddBackendConstraints() [all …]
|
D | gpu_layout_assignment.h | 42 Status AddBackendConstraints(LayoutConstraints* constraints) override; 45 LayoutConstraints* constraints) override; 48 LayoutConstraints* constraints) override; 52 HloCustomCallInstruction* instr, LayoutConstraints* constraints);
|
/external/openscreen/cast/streaming/ |
D | capture_recommendations.cc | 82 void ApplyConstraints(const Constraints& constraints, in ApplyConstraints() argument 86 if (constraints.audio.max_delay.has_value()) { in ApplyConstraints() 87 recommendations->audio.max_delay = constraints.audio.max_delay.value(); in ApplyConstraints() 89 recommendations->audio.max_channels = constraints.audio.max_channels; in ApplyConstraints() 90 recommendations->audio.max_sample_rate = constraints.audio.max_sample_rate; in ApplyConstraints() 93 std::max(constraints.audio.min_bit_rate, kDefaultAudioMinBitRate), in ApplyConstraints() 94 std::max(constraints.audio.max_bit_rate, kDefaultAudioMinBitRate)}; in ApplyConstraints() 98 if (constraints.video.max_delay.has_value()) { in ApplyConstraints() 99 recommendations->video.max_delay = constraints.video.max_delay.value(); in ApplyConstraints() 102 if (constraints.video.max_pixels_per_second.has_value()) { in ApplyConstraints() [all …]
|
D | capture_recommendations_unittest.cc | 218 answer.constraints = kEmptyConstraints; in TEST() 231 answer.constraints = kValidConstraintsHighEnd; in TEST() 244 answer.constraints = kValidConstraintsLowEnd; in TEST() 254 answer.constraints = kValidConstraintsLowEnd; in TEST() 255 answer.constraints->video.max_dimensions = in TEST() 256 answer.constraints->video.min_dimensions.value(); in TEST() 266 answer.constraints = kValidConstraintsLowEnd; in TEST() 267 answer.constraints->video.max_dimensions = in TEST() 282 answer.constraints = kValidConstraintsHighEnd; in TEST()
|
/external/tensorflow/tensorflow/python/keras/ |
D | constraints_test.py | 27 from tensorflow.python.keras import constraints 55 fn = constraints.get(name) 56 ref_fn = getattr(constraints, name)() 58 config = constraints.serialize(fn) 59 fn = constraints.deserialize(config) 65 norm_instance = constraints.max_norm(m) 70 norm_instance = constraints.max_norm(2.0) 79 non_neg_instance = constraints.non_neg() 84 unit_norm_instance = constraints.unit_norm() 95 norm_instance = constraints.min_max_norm(min_value=m, max_value=m * 2) [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | layout_assignment.cc | 447 LayoutConstraints* constraints) { in AddMandatoryConstraints() argument 465 constraints->SetInstructionLayout(instruction->shape(), instruction)); in AddMandatoryConstraints() 469 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddMandatoryConstraints() 478 TF_RETURN_IF_ERROR(constraints->SetInstructionLayout( in AddMandatoryConstraints() 485 constraints->SetInstructionLayout(custom_call->shape(), custom_call)); in AddMandatoryConstraints() 487 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddMandatoryConstraints() 507 TF_RETURN_IF_ERROR(constraints->SetInstructionLayout( in AddMandatoryConstraints() 515 constraints->points_to_analysis().GetBufferDefinedAt(instruction, in AddMandatoryConstraints() 522 constraints->SetBufferLayout(new_shape.layout(), *buffer)); in AddMandatoryConstraints() 526 constraints->SetInstructionLayout(instruction->shape(), instruction)); in AddMandatoryConstraints() [all …]
|
D | layout_assignment.h | 334 LayoutConstraints* constraints); 337 LayoutConstraints* constraints); 340 LayoutConstraints* constraints); 354 LayoutConstraints* constraints); 361 LayoutConstraints* constraints); 391 LayoutConstraints* constraints); 397 virtual Status AddBackendConstraints(LayoutConstraints* constraints) { in AddBackendConstraints() argument 415 Status AssignLayouts(const LayoutConstraints& constraints, 421 Status PropagateConstraints(LayoutConstraints* constraints); 425 LayoutConstraints* constraints);
|
/external/llvm-project/mlir/lib/IR/ |
D | IntegerSet.cpp | 22 return set->constraints.size(); in getNumConstraints() 45 return set->constraints; in getConstraints() 74 SmallVector<AffineExpr, 8> constraints; in replaceDimsAndSymbols() local 75 constraints.reserve(getNumConstraints()); in replaceDimsAndSymbols() 77 constraints.push_back( in replaceDimsAndSymbols() 80 return get(numResultDims, numResultSyms, constraints, getEqFlags()); in replaceDimsAndSymbols()
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | cpu_layout_assignment.cc | 110 LayoutConstraints* constraints) { in AddBackendConstraints() argument 113 const HloComputation* computation = constraints->computation(); in AddBackendConstraints() 117 TF_RETURN_IF_ERROR(constraints->SetInstructionLayout( in AddBackendConstraints() 120 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddBackendConstraints() 126 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddBackendConstraints() 132 if (constraints->OperandLayout(instruction, operand_no) != nullptr) { in AddBackendConstraints() 136 if (constraints->OperandBufferForwarded(instruction, operand_no)) { in AddBackendConstraints() 145 TF_RETURN_IF_ERROR(constraints->SetOperandLayout( in AddBackendConstraints()
|
/external/tensorflow/tensorflow/cc/framework/ |
D | cc_ops_test.cc | 35 std::vector<string>* constraints) { in GetColocationConstraints() argument 36 constraints->clear(); in GetColocationConstraints() 38 constraints)); in GetColocationConstraints() 170 std::vector<string> constraints; in TEST() local 171 GetColocationConstraints(c2, &constraints); in TEST() 172 EXPECT_EQ(constraints[0], "loc:@c1"); in TEST() 175 GetColocationConstraints(c3, &constraints); in TEST() 176 EXPECT_EQ(constraints[0], "loc:@c1"); in TEST() 180 GetColocationConstraints(c4, &constraints); in TEST() 181 EXPECT_EQ(constraints[0], "loc:@a"); in TEST() [all …]
|
/external/webrtc/sdk/objc/unittests/ |
D | RTCPeerConnectionFactory_xctest.m | 35 RTC_OBJC_TYPE(RTCMediaConstraints) *constraints = 45 [factory peerConnectionWithConfiguration:config constraints:constraints delegate:nil]; 74 RTC_OBJC_TYPE(RTCMediaConstraints) *constraints = 87 [factory peerConnectionWithConfiguration:config constraints:constraints delegate:nil]; 118 [factory peerConnectionWithConfiguration:config constraints:contraints delegate:nil]; 134 RTC_OBJC_TYPE(RTCMediaConstraints) *constraints = 145 [factory peerConnectionWithConfiguration:config constraints:constraints delegate:nil]; 161 RTC_OBJC_TYPE(RTCMediaConstraints) *constraints = 174 pc1 = [factory peerConnectionWithConfiguration:config constraints:constraints delegate:nil]; 177 pc2 = [factory peerConnectionWithConfiguration:config constraints:constraints delegate:nil];
|
D | RTCMediaConstraintsTest.mm | 31 RTC_OBJC_TYPE(RTCMediaConstraints) *constraints = 35 [constraints nativeConstraints]; 44 - (void)expectConstraints:(NSDictionary *)constraints 46 EXPECT_EQ(constraints.count, nativeConstraints.size()); 48 for (NSString *key in constraints) { 49 NSString *value = [constraints objectForKey:key];
|
/external/perfetto/src/trace_processor/sqlite/ |
D | query_constraints.cc | 39 if ((other.constraints().size() != constraints().size()) || in operator ==() 44 for (size_t i = 0; i < constraints().size(); ++i) { in operator ==() 45 if ((constraints()[i].column != other.constraints()[i].column) || in operator ==() 46 (constraints()[i].op != other.constraints()[i].op)) { in operator ==()
|
D | query_cache.h | 40 if (cached_.source != source || cs.size() != cached_.constraints.size()) in GetIfCached() 47 std::equal(cs.begin(), cs.end(), cached_.constraints.begin(), p); in GetIfCached() 62 cached_.constraints = cs; in GetOrCache() 72 std::vector<Constraint> constraints; member
|
/external/deqp-deps/SPIRV-Tools/source/val/ |
D | validate_decorations.cpp | 164 MemberConstraints& constraints, in getBaseAlignment() argument 179 componentId, roundUp, inherited, constraints, vstate); in getBaseAlignment() 188 constraints, vstate); in getBaseAlignment() 196 component_id, roundUp, inherited, constraints, vstate); in getBaseAlignment() 204 getBaseAlignment(words[2], roundUp, inherited, constraints, vstate); in getBaseAlignment() 213 constraints[std::make_pair(member_id, memberIdx)]; in getBaseAlignment() 216 getBaseAlignment(id, roundUp, constraint, constraints, vstate)); in getBaseAlignment() 273 MemberConstraints& constraints, ValidationState_t& vstate) { in getSize() argument 284 getSize(componentId, inherited, constraints, vstate); in getSize() 295 getSize(elem_type, inherited, constraints, vstate); in getSize() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/source/val/ |
D | validate_decorations.cpp | 164 MemberConstraints& constraints, in getBaseAlignment() argument 179 componentId, roundUp, inherited, constraints, vstate); in getBaseAlignment() 188 constraints, vstate); in getBaseAlignment() 196 component_id, roundUp, inherited, constraints, vstate); in getBaseAlignment() 204 getBaseAlignment(words[2], roundUp, inherited, constraints, vstate); in getBaseAlignment() 213 constraints[std::make_pair(member_id, memberIdx)]; in getBaseAlignment() 216 getBaseAlignment(id, roundUp, constraint, constraints, vstate)); in getBaseAlignment() 273 MemberConstraints& constraints, ValidationState_t& vstate) { in getSize() argument 284 getSize(componentId, inherited, constraints, vstate); in getSize() 295 getSize(elem_type, inherited, constraints, vstate); in getSize() [all …]
|
/external/angle/third_party/vulkan-deps/spirv-tools/src/source/val/ |
D | validate_decorations.cpp | 164 MemberConstraints& constraints, in getBaseAlignment() argument 179 componentId, roundUp, inherited, constraints, vstate); in getBaseAlignment() 188 constraints, vstate); in getBaseAlignment() 196 component_id, roundUp, inherited, constraints, vstate); in getBaseAlignment() 204 getBaseAlignment(words[2], roundUp, inherited, constraints, vstate); in getBaseAlignment() 213 constraints[std::make_pair(member_id, memberIdx)]; in getBaseAlignment() 216 getBaseAlignment(id, roundUp, constraint, constraints, vstate)); in getBaseAlignment() 273 MemberConstraints& constraints, ValidationState_t& vstate) { in getSize() argument 284 getSize(componentId, inherited, constraints, vstate); in getSize() 295 getSize(elem_type, inherited, constraints, vstate); in getSize() [all …]
|
/external/llvm-project/llvm/utils/ |
D | convert-constraint-log-to-z3.py | 51 constraints = [g.strip() for g in group.split('\n') if g.strip() != ''] 53 for c in constraints[:-1]: 61 for c in constraints[:-1]: 63 expected = constraints[-1].strip()
|
/external/harfbuzz_ng/src/ |
D | gen-vowel-constraints.py | 129 constraints = {} variable 140 if script in constraints: 141 constraints[script].add (constraint) 143 constraints[script] = ConstraintSet (constraint) 144 assert constraints, 'No constraints found' 206 for script, constraints in sorted (constraints.items (), key=lambda s_c: script_order[s_c[0]]): 211 write (str (constraints))
|
/external/webrtc/sdk/android/src/jni/pc/ |
D | sdp_observer.h | 29 std::unique_ptr<MediaConstraints> constraints); 32 MediaConstraints* constraints() { return constraints_.get(); } in constraints() function 46 std::unique_ptr<MediaConstraints> constraints); 49 MediaConstraints* constraints() { return constraints_.get(); } in constraints() function
|
D | sdp_observer.cc | 26 std::unique_ptr<MediaConstraints> constraints) in CreateSdpObserverJni() argument 28 constraints_(std::move(constraints)) {} in CreateSdpObserverJni() 50 std::unique_ptr<MediaConstraints> constraints) in SetSdpObserverJni() argument 52 constraints_(std::move(constraints)) {} in SetSdpObserverJni()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ |
D | ConstraintFormulaSet.java | 39 List<ConstraintFormula> constraints = new LinkedList<>(constraintFormulas); in reduce() local 41 while (constraints.size() > 0) { in reduce() 42 ConstraintFormula constraintFormula = constraints.remove(0); in reduce() 44 constraints.addAll(reductionResult.getConstraintFormulas()); in reduce()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/linear/ |
D | SimplexTableau.java | 75 private final List<LinearConstraint> constraints; field in SimplexTableau 108 final Collection<LinearConstraint> constraints, in SimplexTableau() argument 112 this.constraints = normalizeConstraints(constraints); in SimplexTableau() 158 int height = constraints.size() + getNumObjectiveFunctions(); in createTableau() 181 for (int i = 0; i < constraints.size(); i++) { in createTableau() 182 LinearConstraint constraint = constraints.get(i); in createTableau() 259 for (final LinearConstraint constraint : constraints) { in getConstraintTypeCounts() 549 constraints.equals(rhs.constraints) && in equals() 564 constraints.hashCode() ^ in hashCode()
|
/external/downloader/src/main/java/com/google/android/downloader/ |
D | AndroidConnectivityHandler.java | 90 public ListenableFuture<Void> checkConnectivity(DownloadConstraints constraints) { in checkConnectivity() argument 91 if (connectivitySatisfied(constraints)) { in checkConnectivity() 99 NetworkBroadcastReceiver receiver = new NetworkBroadcastReceiver(constraints, futureTask); in checkConnectivity() 238 private final DownloadConstraints constraints; field in AndroidConnectivityHandler.NetworkBroadcastReceiver 241 public NetworkBroadcastReceiver(DownloadConstraints constraints, Runnable completionRunnable) { in NetworkBroadcastReceiver() argument 242 this.constraints = constraints; in NetworkBroadcastReceiver() 265 if (connectivitySatisfied(constraints)) { in onReceive()
|