| /lifecycle/lifecycle-compiler/src/main/kotlin/androidx/lifecycle/ |
| D | transformation.kt | 31 type: TypeElement, in <lambda>() 42 processingEnv.elementUtils.overrides(method, parentMethod.method, type) in <lambda>() 79 mergeAndVerifyMethods(processingEnv, observer.type, parentObserver!!.methods, list) in flattenObservers() 84 observer.type, in flattenObservers() 85 mergeAndVerifyMethods(processingEnv, observer.type, observer.methods, methods) in flattenObservers() 93 private fun needsSyntheticAccess(type: TypeElement, eventMethod: EventMethod): Boolean { in needsSyntheticAccess() 95 return type.getPackageQName() != eventMethod.packageName() && in needsSyntheticAccess() 102 type: TypeElement, in validateMethod() 105 if (!needsSyntheticAccess(type, eventMethod)) { in validateMethod() 110 if (world.isRootType(eventMethod.type)) { in validateMethod() [all …]
|
| D | input_collector.kt | 33 import javax.lang.model.type.TypeMirror in <lambda>() 67 .mapNotNull { type -> worldCollector.generatedAdapterInfoFor(type)?.let { type to it } } in <lambda>() method 80 fun collect(type: TypeElement): LifecycleObserverInfo? { in collect() 81 if (type in observers) { in collect() 82 return observers[type] in collect() 85 (listOf(type.superclass) + type.interfaces) in collect() 90 val info = createObserverInfo(type, parents) in collect() 92 observers[type] = info in collect() 97 fun generatedAdapterInfoFor(type: TypeElement): List<ExecutableElement>? { in generatedAdapterInfoFor() 98 val packageName = if (type.getPackageQName().isEmpty()) "" else "${type.getPackageQName()}." in generatedAdapterInfoFor() [all …]
|
| D | ErrorMessages.kt | 42 fun failedToGenerateAdapter(type: TypeElement, failureReason: EventMethod) = 44 Failed to generate an Adapter for $type, because it needs to be able to access to
|
| D | writer.kt | 61 FieldSpec.builder(ClassName.get(adapter.type), "mReceiver", Modifier.FINAL).build() in writeAdapter() 95 val receiverParam = ParameterSpec.builder(ClassName.get(adapter.type), "receiver").build() in writeAdapter() 129 val adapterName = getAdapterName(adapter.type) in writeAdapter() 138 .addOriginatingElement(adapter.type) in writeAdapter() 142 JavaFile.builder(adapter.type.getPackageQName(), adapterTypeSpecBuilder.build()) in writeAdapter() 146 generateKeepRule(adapter.type, processingEnv) in writeAdapter() 164 private fun generateKeepRule(type: TypeElement, processingEnv: ProcessingEnvironment) { in generateKeepRule() 165 val adapterClass = type.getPackageQName() + "." + getAdapterName(type) in generateKeepRule() 166 val observerClass = type.toString() in generateKeepRule() 182 val out = processingEnv.filer.createResource(StandardLocation.CLASS_OUTPUT, "", path, type) in generateKeepRule()
|
| /lifecycle/lifecycle-compiler/src/main/kotlin/androidx/lifecycle/model/ |
| D | AdapterClass.kt | 25 val type: TypeElement, constant in androidx.lifecycle.model.AdapterClass 30 fun getAdapterName(type: TypeElement): String { in getAdapterName() 31 val packageElement = type.getPackage() in getAdapterName() 32 val qName = type.qualifiedName.toString() in getAdapterName()
|
| D | InputModel.kt | 34 fun isRootType(type: TypeElement) = type in rootTypes in <lambda>() 37 val syntheticMethods = generatedAdapters[eventMethod.type] ?: return false in <lambda>()
|
| D | EventMethod.kt | 27 val type: TypeElement constant in androidx.lifecycle.model.EventMethod 30 fun packageName() = type.getPackageQName()
|
| D | LifecycleObserverInfo.kt | 22 val type: TypeElement, constant in androidx.lifecycle.model.LifecycleObserverInfo
|
| /lifecycle/lifecycle-common/src/jvmMain/kotlin/androidx/lifecycle/ |
| D | MethodCallsLogger.jvm.kt | 25 public open fun approveCall(name: String, type: Int): Boolean { in approveCall() 28 val wasCalled = mask and type != 0 in approveCall() 29 calledMethods[name] = mask or type in approveCall()
|
| D | Lifecycling.jvm.kt | 49 val type = getObserverConstructorType(klass) in <lambda>() constant 50 if (type == GENERATED_CALLBACK) { in <lambda>() 111 val type = resolveObserverCallbackType(klass) in <lambda>() constant 112 this.callbackCache[klass] = type in <lambda>() 113 return type in <lambda>()
|
| /lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/ |
| D | SimpleAppLifecycleTestActivity.java | 50 TestObserver(TestEventType type) { in TestObserver() argument 51 mType = type; in TestObserver()
|
| /lifecycle/lifecycle-runtime-compose/integration-tests/lifecycle-runtime-compose-demos/ |
| D | build.gradle | 39 type = SoftwareType.TEST_APPLICATION
|
| /lifecycle/lifecycle-service/ |
| D | build.gradle | 44 type = SoftwareType.PUBLISHED_LIBRARY
|
| /lifecycle/lifecycle-livedata-core-lint/ |
| D | build.gradle | 43 type = SoftwareType.LINT
|
| /lifecycle/lifecycle-viewmodel-ktx/ |
| D | build.gradle | 40 type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
|
| /lifecycle/lifecycle-livedata-core-ktx/ |
| D | build.gradle | 39 type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
|
| /lifecycle/lifecycle-runtime-lint/ |
| D | build.gradle | 45 type = SoftwareType.LINT
|
| /lifecycle/lifecycle-viewmodel-compose/integration-tests/lifecycle-viewmodel-demos/ |
| D | build.gradle | 39 type = SoftwareType.TEST_APPLICATION
|
| /lifecycle/lifecycle-common-java8/ |
| D | build.gradle | 41 type = SoftwareType.PUBLISHED_LIBRARY
|
| /lifecycle/lifecycle-runtime-compose/samples/ |
| D | build.gradle | 44 type = SoftwareType.SAMPLES
|
| /lifecycle/lifecycle-runtime-ktx/ |
| D | build.gradle | 67 type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
|
| /lifecycle/lifecycle-livedata-core-truth/ |
| D | build.gradle | 44 type = SoftwareType.UNSET
|
| /lifecycle/lifecycle-reactivestreams-ktx/ |
| D | build.gradle | 46 type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
|
| /lifecycle/lifecycle-viewmodel-compose-lint/ |
| D | build.gradle | 51 type = SoftwareType.LINT
|
| /lifecycle/lifecycle-viewmodel-savedstate-samples/ |
| D | build.gradle | 47 type = SoftwareType.SAMPLES
|