Home
last modified time | relevance | path

Searched refs:predicate (Results 1 – 15 of 15) sorted by relevance

/tools/metalava/src/main/java/com/android/tools/metalava/model/
DClassItem.kt555 fun filteredSuperclass(predicate: Predicate<Item>): ClassItem? { in <lambda>()
557 return if (predicate.test(superClass)) { in <lambda>()
560 superClass.filteredSuperclass(predicate) in <lambda>()
564 fun filteredSuperClassType(predicate: Predicate<Item>): TypeItem? { in <lambda>()
569 if (predicate.test(superClass)) { in <lambda>()
594 predicate: Predicate<Item>, in <lambda>()
599 if (predicate.test(method) || method.findPredicateSuperMethod(predicate) != null) { in <lambda>()
607 … superClass()?.filteredMethods(predicate, includeSuperClassMethods)?.let { methods += it } in <lambda>()
613 fun filteredConstructors(predicate: Predicate<Item>): Sequence<ConstructorItem> { in <lambda>()
614 return constructors().asSequence().filter { predicate.test(it) } in <lambda>()
[all …]
DMethodItem.kt112 fun filteredThrowsTypes(predicate: Predicate<Item>): Collection<ClassItem> { in <lambda>()
116 return filteredThrowsTypes(predicate, LinkedHashSet()) in <lambda>()
120 predicate: Predicate<Item>, in <lambda>()
125 if (predicate.test(cls) || cls.isTypeParameter) { in <lambda>()
131 if (predicate.test(curr)) { in <lambda>()
164 fun findPredicateSuperMethod(predicate: Predicate<Item>): MethodItem? { in <lambda>()
171 if (predicate.test(method)) { in <lambda>()
177 val found = method.findPredicateSuperMethod(predicate) in <lambda>()
DSourceFileItem.kt30 fun getImportStatements(predicate: Predicate<Item>): Collection<Item> = emptyList() in classes()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/queries/
DSliceQueries.kt75 fun Model.selectAll(predicate: (Slice) -> Boolean): List<Slice> { in selectAll()
78 if (predicate(it)) { in selectAll()
90 fun ProcessModel.selectAll(predicate : (Slice) -> Boolean) : List<Slice> { in ProcessModel()
93 if (predicate(it)) { in ProcessModel()
100 fun ThreadModel.selectAll(predicate: (Slice) -> Boolean): List<Slice> { in selectAll()
103 if (predicate(it)) { in selectAll()
115 fun Model.selectFirst(predicate: (Slice) -> Boolean) : Slice? { in selectFirst()
116 … return this.processes.values.mapNotNull { it.selectFirst(predicate) }.minByOrNull { it.startTime } in selectFirst()
125 fun ProcessModel.selectFirst(predicate: (Slice) -> Boolean) : Slice? { in ProcessModel()
129 if (predicate(it)) { in ProcessModel()
[all …]
DThreadQueries.kt24 fun firstOrNull(model: Model, predicate: (ThreadModel) -> Boolean): ThreadModel? { in firstOrNull()
27 if (predicate(it)) return it in firstOrNull()
/tools/test/connectivity/acts/framework/acts/
Dtest_decorators.py27 def test_info(predicate=None, **keyed_info): argument
49 return _TestInfoDecoratorFunc(func, predicate, keyed_info)
130 def test_tracker_info(uuid, extra_environment_info=None, predicate=None): argument
150 return _TestTrackerInfoDecoratorFunc(func, predicate, keyed_info)
158 def __init__(self, func, predicate, keyed_info): argument
160 self.predicate = predicate
248 if not self.predicate or self.predicate(args, kwargs):
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiSourceFileItem.kt91 override fun getImportStatements(predicate: Predicate<Item>): Collection<Item> { in getImportStatements()
101 if (predicate.test(classItem)) { in getImportStatements()
106 if (predicate.test(pkgItem) && in getImportStatements()
109 pkgItem.topLevelClasses().any { it.emit && predicate.test(it) } in getImportStatements()
116 if (predicate.test(methodItem)) { in getImportStatements()
126 if (predicate.test(fieldItem)) { in getImportStatements()
137 if (predicate.test(classItem)) { in getImportStatements()
170 for (cls in classes().filter { predicate.test(it) }) { in getImportStatements()
174 if (!predicate.test(item)) { in getImportStatements()
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Devent_dispatcher.py225 predicate, argument
268 if event and predicate(event, *args, **kwargs):
272 (event, predicate.__name__))
/tools/metalava/src/main/java/com/android/tools/metalava/
DPackageFilter.kt65 fun add(predicate: Predicate<String>, treatAsPositiveMatch: Boolean) { in add()
66 components.add(PackageFilterComponent(predicate, treatAsPositiveMatch)) in add()
DAnnotationsDiffer.kt63 private val predicate = object : Predicate<Item> { in <lambda>() constant
114 val apiEmit = apiFilter.and(predicate) in <lambda>()
DComparisonVisitor.kt536 val predicate = if (acceptAll) Predicate { true } else filter!! in createTree() constant
540 filterEmit = predicate, in createTree()
541 filterReference = predicate, in createTree()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/abstract_devices/
Dbluetooth_handsfree_abstract_device.py34 ctlr_methods = inspect.getmembers(controller, predicate=callable)
36 abstract_device_class, predicate=inspect.ismethod)
/tools/test/connectivity/acts/framework/acts/libs/test_binding/
Dall_tests_decorator.py17 predicate=inspect.isfunction):
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextMethodItem.kt114 override fun findPredicateSuperMethod(predicate: Predicate<Item>): MethodItem? = null in findMainDocumentation()
DTextClassItem.kt228 override fun filteredSuperClassType(predicate: Predicate<Item>): TypeItem? { in filteredSuperClassType()