| /external/google-smali/third_party/util/src/test/java/com/android/tools/smali/util/ |
| D | PathUtilTest.java | 36 File[] roots = File.listRoots(); in pathUtilTest1() local 38 if (roots.length > 1) { in pathUtilTest1() 39 …File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "te… in pathUtilTest1() 40 …File relativePath = new File(roots[1] + "some" + File.separatorChar + "dir" + File.separatorChar +… in pathUtilTest1() 50 File[] roots = File.listRoots(); in pathUtilTest2() local 52 …File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "te… in pathUtilTest2() 53 …File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar +… in pathUtilTest2() 65 File[] roots = File.listRoots(); in pathUtilTest3() local 67 … File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar); in pathUtilTest3() 68 … File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar); in pathUtilTest3() [all …]
|
| /external/smali/util/src/test/java/org/jf/util/ |
| D | PathUtilTest.java | 39 File[] roots = File.listRoots(); in pathUtilTest1() local 41 if (roots.length > 1) { in pathUtilTest1() 42 …File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "te… in pathUtilTest1() 43 …File relativePath = new File(roots[1] + "some" + File.separatorChar + "dir" + File.separatorChar +… in pathUtilTest1() 53 File[] roots = File.listRoots(); in pathUtilTest2() local 55 …File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar + "te… in pathUtilTest2() 56 …File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar +… in pathUtilTest2() 68 File[] roots = File.listRoots(); in pathUtilTest3() local 70 … File basePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar); in pathUtilTest3() 71 … File relativePath = new File(roots[0] + "some" + File.separatorChar + "dir" + File.separatorChar); in pathUtilTest3() [all …]
|
| /external/skia/fuzz/ |
| D | FuzzCubicQuadRoots.cpp | 18 double roots[2]; in fuzz_quad_real_roots() local 19 const int numSolutions = SkQuads::RootsReal(A, B, C, roots); in fuzz_quad_real_roots() 22 SkASSERT_RELEASE(std::isfinite(roots[i])); in fuzz_quad_real_roots() 31 // Roots should not be duplicated in fuzz_quad_real_roots() 32 SkASSERT_RELEASE(!sk_doubles_nearly_equal_ulps(roots[0], roots[1])); in fuzz_quad_real_roots() 37 double roots[3]; in fuzz_cubic_real_roots() local 38 const int numSolutions = SkCubics::RootsReal(A, B, C, D, roots); in fuzz_cubic_real_roots() 41 SkASSERT_RELEASE(std::isfinite(roots[i])); in fuzz_cubic_real_roots() 43 // Roots should not be duplicated in fuzz_cubic_real_roots() 45 SkASSERT_RELEASE(!sk_doubles_nearly_equal_ulps(roots[0], roots[1])); in fuzz_cubic_real_roots() [all …]
|
| /external/skia/tests/ |
| D | CubicRootsTest.cpp | 30 "Invalid test case, up to 3 roots allowed"); in testCubicRootsReal() 43 "Invalid test case root %zu. Roots should be sorted in ascending order", i); in testCubicRootsReal() 51 double roots[3] = {0, 0, 0}; in testCubicRootsReal() local 52 int rootCount = SkDCubic::RootsReal(A, B, C, D, roots); in testCubicRootsReal() 54 "Wrong number of roots returned %zu != %d", expectedRoots.size(), in testCubicRootsReal() 57 // We don't care which order the roots are returned from the algorithm. in testCubicRootsReal() 59 std::sort(std::begin(roots), std::begin(roots) + rootCount); in testCubicRootsReal() 62 REPORTER_ASSERT(reporter, sk_double_nearly_zero(roots[i]), in testCubicRootsReal() 63 "0 != %.16f at index %d", roots[i], i); in testCubicRootsReal() 66 sk_doubles_nearly_equal_ulps(expectedRoots[i], roots[i], 64), in testCubicRootsReal() [all …]
|
| D | QuadRootsTest.cpp | 28 "Invalid test case, up to 2 roots allowed"); in testQuadRootsReal() 39 "Invalid test case root %zu. Roots should be sorted in ascending order", i); in testQuadRootsReal() 45 double roots[2] = {0, 0}; in testQuadRootsReal() local 46 int rootCount = SkDQuad::RootsReal(A, B, C, roots); in testQuadRootsReal() 48 "Wrong number of roots returned %zu != %d", expectedRoots.size(), in testQuadRootsReal() 51 // We don't care which order the roots are returned from the algorithm. in testQuadRootsReal() 53 std::sort(std::begin(roots), std::begin(roots) + rootCount); in testQuadRootsReal() 56 REPORTER_ASSERT(reporter, sk_double_nearly_zero(roots[i]), in testQuadRootsReal() 57 "0 != %.16f at index %d", roots[i], i); in testQuadRootsReal() 60 sk_doubles_nearly_equal_ulps(expectedRoots[i], roots[i], 64), in testQuadRootsReal() [all …]
|
| /external/eigen/unsupported/doc/examples/ |
| D | PolynomialSolver1.cpp | 12 Vector5d roots = Vector5d::Random(); in main() local 13 cout << "Roots: " << roots.transpose() << endl; in main() 15 roots_to_monicPolynomial( roots, polynomial ); in main() 18 cout << "Complex roots: " << psolve.roots().transpose() << endl; in main() 23 cout << "Real roots: " << mapRR.transpose() << endl; in main() 33 cout << "Complex roots: " << psolvef.roots().transpose() << endl; in main() 35 …for( int i=0; i<6; ++i ){ evals[i] = std::abs( poly_eval( hardCase_polynomial, psolvef.roots()[i] … in main() 36 …cout << "Norms of the evaluations of the polynomial at the roots: " << evals.transpose() << endl <… in main() 41 cout << "Complex roots: " << psolve6d.roots().transpose() << endl; in main() 44 std::complex<float> castedRoot( psolve6d.roots()[i].real(), psolve6d.roots()[i].imag() ); in main() [all …]
|
| D | PolynomialUtils1.cpp | 9 Vector4d roots = Vector4d::Random(); in main() local 10 cout << "Roots: " << roots.transpose() << endl; in main() 12 roots_to_monicPolynomial( roots, polynomial ); in main() 18 evaluation[i] = poly_eval( polynomial, roots[i] ); } in main() 19 cout << "Evaluation of the polynomial at the roots: " << evaluation.transpose(); in main()
|
| /external/skia/src/pathops/ |
| D | SkPathOpsRect.cpp | 18 int roots = 0; in setBounds() local 20 roots = SkDQuad::FindExtrema(&sub[0].fX, tValues); in setBounds() 23 roots += SkDQuad::FindExtrema(&sub[0].fY, &tValues[roots]); in setBounds() 25 for (int index = 0; index < roots; ++index) { in setBounds() 35 int roots = 0; in setBounds() local 37 roots = SkDConic::FindExtrema(&sub[0].fX, sub.fWeight, tValues); in setBounds() 40 roots += SkDConic::FindExtrema(&sub[0].fY, sub.fWeight, &tValues[roots]); in setBounds() 42 for (int index = 0; index < roots; ++index) { in setBounds() 52 int roots = 0; in setBounds() local 54 roots = SkDCubic::FindExtrema(&sub[0].fX, tValues); in setBounds() [all …]
|
| D | SkDCubicLineIntersection.cpp | 130 int intersectRay(double roots[3]) { in intersectRay() 140 int count = SkDCubic::RootsValidT(A, B, C, D, roots); in intersectRay() 142 SkDPoint calcPt = c.ptAtT(roots[index]); in intersectRay() 150 count = c.searchRoots(extremeTs, extrema, 0, SkDCubic::kXAxis, roots); in intersectRay() 163 int roots = intersectRay(rootVals); in intersect() local 164 for (int index = 0; index < roots; ++index) { in intersect() 176 static int HorizontalIntersect(const SkDCubic& c, double axisIntercept, double roots[3]) { in HorizontalIntersect() 180 int count = SkDCubic::RootsValidT(A, B, C, D, roots); in HorizontalIntersect() 182 SkDPoint calcPt = c.ptAtT(roots[index]); in HorizontalIntersect() 186 count = c.searchRoots(extremeTs, extrema, axisIntercept, SkDCubic::kYAxis, roots); in HorizontalIntersect() [all …]
|
| D | SkPathOpsCurve.h | 366 static int line_intercept_h(const SkPoint a[2], SkScalar , SkScalar y, double* roots) { in line_intercept_h() argument 371 roots[0] = SkIntersections::HorizontalIntercept(line.set(a), y); in line_intercept_h() 372 return between(0, roots[0], 1); in line_intercept_h() 375 static int line_intercept_v(const SkPoint a[2], SkScalar , SkScalar x, double* roots) { in line_intercept_v() argument 380 roots[0] = SkIntersections::VerticalIntercept(line.set(a), x); in line_intercept_v() 381 return between(0, roots[0], 1); in line_intercept_v() 384 static int quad_intercept_h(const SkPoint a[2], SkScalar , SkScalar y, double* roots) { in quad_intercept_h() argument 386 return SkIntersections::HorizontalIntercept(quad.set(a), y, roots); in quad_intercept_h() 389 static int quad_intercept_v(const SkPoint a[2], SkScalar , SkScalar x, double* roots) { in quad_intercept_v() argument 391 return SkIntersections::VerticalIntercept(quad.set(a), x, roots); in quad_intercept_v() [all …]
|
| D | SkDConicLineIntersection.cpp | 79 int horizontalIntersect(double axisIntercept, double roots[2]) { in horizontalIntersect() 81 return this->validT(conicVals, axisIntercept, roots); in horizontalIntersect() 89 double roots[2]; in horizontalIntersect() local 90 int count = this->horizontalIntersect(axisIntercept, roots); in horizontalIntersect() 92 double conicT = roots[index]; in horizontalIntersect() 115 int roots = this->intersectRay(rootVals); in intersect() local 116 for (int index = 0; index < roots; ++index) { in intersect() 137 int intersectRay(double roots[2]) { in intersectRay() 144 return this->validT(r, 0, roots); in intersectRay() 147 int validT(double r[3], double axisIntercept, double roots[2]) { in validT() [all …]
|
| /external/dagger2/java/dagger/hilt/processor/internal/root/ir/ |
| D | AggregatedRootIrValidator.kt | 21 // Validates roots being processed. 30 val processedRootNames = processedRoots.flatMap { it.roots }.toSet() in rootsToProcess() 39 "Cannot process multiple app roots in the same compilation unit: " + in rootsToProcess() 45 Cannot process test roots and app roots in the same compilation unit: in rootsToProcess() 47 Test roots in this compilation unit: ${testRootsToProcess.rootsToString()} in rootsToProcess() 51 // Perform validation across roots previous compilation units. in rootsToProcess() 59 Cannot process new roots when there are test roots from a previous compilation unit: in rootsToProcess() 60 Test roots from previous compilation unit: ${alreadyProcessedTestRoots.rootsToString()} in rootsToProcess() 61 All roots from this compilation unit: ${rootsToProcess.rootsToString()} in rootsToProcess() 70 Cannot process new app roots when there are app roots from a previous compilation unit: in rootsToProcess() [all …]
|
| /external/tensorflow/tensorflow/core/profiler/internal/ |
| D | tfprof_scope.cc | 62 std::vector<ScopeNode*> roots; in Build() local 63 // Found roots, which are nodes without "/". in Build() 68 roots.push_back(node); in Build() 76 root_->children.assign(roots.begin(), roots.end()); in Build() 86 std::vector<ScopeNode*> roots = Account(root_->children, opts); in ShowInternal() local 88 for (ScopeNode* n : roots) { in ShowInternal() 94 roots = SearchRoot(roots, opts.start_name_regexes); in ShowInternal() 97 root_->show_children.assign(roots.begin(), roots.end()); in ShowInternal() 109 void TFScope::Format(const std::vector<ScopeNode*> roots, string* display_str, in Format() argument 111 for (ScopeNode* node : roots) { in Format() [all …]
|
| D | tfprof_graph.cc | 62 std::vector<GraphNode*> roots; in Build() local 65 roots.push_back(it->second.get()); in Build() 69 root_->children.insert(root_->children.end(), roots.begin(), roots.end()); in Build() 90 std::vector<GraphNode*> roots = Account(root_->children, opts, &visits); in ShowInternal() local 91 for (GraphNode* n : roots) { in ShowInternal() 99 roots = SearchRoot(roots, opts.start_name_regexes, &visits); in ShowInternal() 105 root_->show_children.assign(roots.begin(), roots.end()); in ShowInternal() 119 const std::vector<GraphNode*>& roots, const std::vector<string>& regexes, in SearchRoot() argument 122 if (roots.empty()) { in SearchRoot() 125 for (GraphNode* root : roots) { in SearchRoot() [all …]
|
| /external/eigen/unsupported/test/ |
| D | polynomialsolver.cpp | 55 const RootsType& roots( psolve.roots() ); in aux_evalSolver() local 59 for( int i=0; i<roots.size(); ++i ){ in aux_evalSolver() 60 evr[i] = std::abs( poly_eval( pols, roots[i] ) ); in aux_evalSolver() 61 der[i] = numext::maxi(RealScalar(1.), std::abs( poly_eval( pols_der, roots[i] ) )); in aux_evalSolver() 72 cerr << "Roots found: " << roots.transpose() << endl; in aux_evalSolver() 73 cerr << "Abs value of the polynomial at the roots: " << evr.transpose() << endl; in aux_evalSolver() 77 std::vector<RealScalar> rootModuli( roots.size() ); in aux_evalSolver() 78 Map< EvalRootsType > aux( &rootModuli[0], roots.size() ); in aux_evalSolver() 79 aux = roots.array().abs(); in aux_evalSolver() 112 template< int Deg, typename POLYNOMIAL, typename ROOTS, typename REAL_ROOTS > [all …]
|
| D | polynomialutils.cpp | 36 EvalRootsType roots = EvalRootsType::Random(deg); in realRoots_to_monicPolynomial_test() local 37 roots_to_monicPolynomial( roots, pols ); in realRoots_to_monicPolynomial_test() 40 for( int i=0; i<roots.size(); ++i ){ in realRoots_to_monicPolynomial_test() 41 evr[i] = std::abs( poly_eval( pols, roots[i] ) ); } in realRoots_to_monicPolynomial_test() 74 EvalRootsType roots = EvalRootsType::Random(deg); in CauchyBounds() local 75 roots_to_monicPolynomial( roots, pols ); in CauchyBounds() 78 _Scalar Max = roots.array().abs().maxCoeff(); in CauchyBounds() 79 _Scalar min = roots.array().abs().minCoeff(); in CauchyBounds() 83 cerr << "Roots: " << roots << endl; in CauchyBounds()
|
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
| D | ShadowStackGCLowering.cpp | 53 /// roots. 60 /// Roots - GC roots in the current function. Each is a pair of the 62 std::vector<std::pair<CallInst *, AllocaInst *>> Roots; member in __anon19ad8caa0111::ShadowStackGCLowering 109 for (unsigned I = 0; I != Roots.size(); ++I) { in GetFrameMap() 110 Constant *C = cast<Constant>(Roots[I].first->getArgOperand(1)); in GetFrameMap() 120 ConstantInt::get(Int32Ty, Roots.size(), false), in GetFrameMap() 160 for (size_t I = 0; I != Roots.size(); I++) in GetConcreteStackEntryType() 161 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType() 180 // int32_t NumRoots; // Number of roots in stack frame. in doInitialization() 182 // void *Meta[]; // May be absent for roots without metadata. in doInitialization() [all …]
|
| /external/skia/src/base/ |
| D | SkCubics.cpp | 29 // precise about the smaller 2 roots, so we have this arbitrary cutoff for when A is 80 // In either case, we have no finite roots. in RootsReal() 86 double* roots = solution; in RootsReal() local 87 if (R2MinusQ3 < 0) { // we have 3 real roots in RootsReal() 93 *roots++ = r; in RootsReal() 97 *roots++ = r; in RootsReal() 101 (roots - solution == 1 || !nearly_equal(solution[1], r))) { in RootsReal() 102 *roots++ = r; in RootsReal() 115 *roots++ = r; in RootsReal() 120 *roots++ = r; in RootsReal() [all …]
|
| /external/eigen/unsupported/Eigen/src/Polynomials/ |
| D | PolynomialSolver.h | 20 * - real roots, 21 * - greatest, smallest complex roots, 22 * - real roots with greatest, smallest absolute real value, 23 * - greatest, smallest real roots. 25 * It stores the set of roots as a vector of complexes. 54 /** \returns the complex roots of the polynomial */ 55 inline const RootsType& roots() const { return m_roots; } in roots() function 58 /** Clear and fills the back insertion sequence with the real roots of the polynomial 59 * i.e. the real part of the complex roots that have an imaginary part which 307 * Computes the complex roots of a real polynomial. [all …]
|
| /external/llvm/lib/CodeGen/ |
| D | ShadowStackGCLowering.cpp | 35 /// roots. 43 /// Roots - GC roots in the current function. Each is a pair of the 45 std::vector<std::pair<CallInst *, AllocaInst *>> Roots; member in __anon520a67080111::ShadowStackGCLowering 206 for (unsigned I = 0; I != Roots.size(); ++I) { in GetFrameMap() 207 Constant *C = cast<Constant>(Roots[I].first->getArgOperand(1)); in GetFrameMap() 217 ConstantInt::get(Int32Ty, Roots.size(), false), in GetFrameMap() 257 for (size_t I = 0; I != Roots.size(); I++) in GetConcreteStackEntryType() 258 EltTys.push_back(Roots[I].second->getAllocatedType()); in GetConcreteStackEntryType() 277 // int32_t NumRoots; // Number of roots in stack frame. in doInitialization() 279 // void *Meta[]; // May be absent for roots without metadata. in doInitialization() [all …]
|
| /external/rust/crates/num-integer/src/ |
| D | roots.rs | 9 pub trait Roots: Integer { interface 22 /// # use num_integer::Roots; 29 /// # use num_integer::Roots; 36 /// use num_integer::Roots; 67 /// # use num_integer::Roots; 74 /// use num_integer::Roots; 96 /// use num_integer::Roots; 114 /// see [Roots::sqrt](trait.Roots.html#method.sqrt). 116 pub fn sqrt<T: Roots>(x: T) -> T { in sqrt() 121 /// see [Roots::cbrt](trait.Roots.html#method.cbrt). [all …]
|
| /external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
| D | GenericDomTreeConstruction.h | 57 using RootsT = decltype(DomTreeT::Roots); 367 // For postdominators, nodes with no forward successors are trivial roots that 368 // are always selected as tree roots. Roots with forward successors correspond 380 // Finds all roots without relaying on the set of roots already stored in the 382 // We define roots to be some non-redundant set of the CFG nodes 385 RootsT Roots; in FindRoots() local 389 Roots.push_back(GetEntryNode(DT)); in FindRoots() 390 return Roots; in FindRoots() 399 LLVM_DEBUG(dbgs() << "\t\tLooking for trivial roots\n"); in FindRoots() 401 // Step #1: Find all the trivial roots that are going to will definitely in FindRoots() [all …]
|
| /external/dagger2/javatests/dagger/hilt/processor/internal/root/ |
| D | MyTestPreviousCompilationTest.java | 75 "Cannot process new roots when there are test roots from a previous compilation unit:" in testRootTest() 76 + "\n Test roots from previous compilation unit: " in testRootTest() 78 + "\n All roots from this compilation unit: test.TestRoot"); in testRootTest() 103 "Cannot process new roots when there are test roots from a previous compilation unit:" in appRootTest() 104 + "\n Test roots from previous compilation unit: " in appRootTest() 106 + "\n All roots from this compilation unit: test.AppRoot"); in appRootTest()
|
| /external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
| D | GCMetadata.h | 18 // - Stack offsets for GC roots, as specified by calls to llvm.gcroot 20 // As a refinement, liveness analysis calculates the set of live roots at each 22 // generator, so all roots are assumed live. 87 std::vector<GCRoot> Roots; variable 97 // The bit vector is the more compact representation where >3.2% of roots 114 Roots.push_back(GCRoot(Num, Metadata)); in addStackRoot() 119 return Roots.erase(position); in removeStackRoot() 138 /// roots_begin/roots_end - Iterators for all roots in the function. 139 roots_iterator roots_begin() { return Roots.begin(); } in roots_begin() 140 roots_iterator roots_end() { return Roots.end(); } in roots_end() [all …]
|
| /external/llvm/include/llvm/CodeGen/ |
| D | GCMetadata.h | 19 // - Stack offsets for GC roots, as specified by calls to llvm.gcroot 21 // As a refinement, liveness analysis calculates the set of live roots at each 23 // generator, so all roots are assumed live. 84 std::vector<GCRoot> Roots; variable 94 // The bit vector is the more compact representation where >3.2% of roots 113 Roots.push_back(GCRoot(Num, Metadata)); in addStackRoot() 118 return Roots.erase(position); in removeStackRoot() 139 /// roots_begin/roots_end - Iterators for all roots in the function. 141 roots_iterator roots_begin() { return Roots.begin(); } in roots_begin() 142 roots_iterator roots_end() { return Roots.end(); } in roots_end() [all …]
|