Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 32 for getProp2 (0.24 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/ObjectExtensionInstantiationIntegrationTest.groovy

        def "extension toString() implementation can use toString() of managed property"() {
            buildFile """
                abstract class DisplayName {
                    abstract Property<String> getProp()
    
                    String toString() { return "<display name> prop=" + prop }
                }
    
                def displayName = extensions.create("name", DisplayName)
                println("display name = \${displayName}")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 16.9K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/services/internal/DefaultBuildServicesRegistryTest.groovy

        }
    
        interface Params extends BuildServiceParameters {
            String getProp()
    
            void setProp(String value)
        }
    
        static abstract class ServiceImpl implements BuildService<Params> {
            static List<ServiceImpl> instances = []
    
            String getProp() {
                return getParameters().prop
            }
    
            static void reset() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratedManagedStateTest.groovy

            def bean = create(InterfacePrimitiveBean)
    
            expect:
            !bean.prop1
            bean.setProp1(true)
            bean.prop1
    
            bean.prop2 == 0
            bean.setProp2(12)
            bean.prop2 == 12
        }
    
        def canConstructInstanceOfInterfaceWithFileCollectionGetter() {
            def projectDir = tmpDir.testDirectory
            def bean = create(InterfaceFileCollectionBean)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionPropertyIntegrationTest.groovy

                    "@OutputFiles"
                ],
                [
                    'final SetProperty<RegularFile> prop = project.objects.setProperty(RegularFile)',
                    'abstract SetProperty<RegularFile> getProp()'
                ]
            ].combinations()
        }
    
        def "task @OutputDirectories directory property is implicitly finalized when task starts execution"() {
            buildFile """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 17.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultIsolatableFactoryTest.groovy

            isolated.coerce(String) == null
    
            def v = isolated.coerce(cl)
            cl.isInstance(v)
            v.name == "value1"
        }
    
        interface BeanInterface {
            String getProp1()
    
            void setProp1(String value)
        }
    
        def "creates isolated managed interface"() {
            def instantiator = instantiatorFactory().inject()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 17K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/dilated_conv.h

      // check values of `paddings` and `crops` to make sure it really stands for
      // a dilated conv.
      auto stb_paddings = stb_op.getPaddings();
      auto bts_crops = bts_op.getCrops();
      ElementsAttr stb_paddings_attr, bts_crops_attr;
      if (!matchPattern(stb_paddings, m_Constant(&stb_paddings_attr)) ||
          !matchPattern(bts_crops, m_Constant(&bts_crops_attr))) {
        return rewriter.notifyMatchFailure(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorDecoratedTest.groovy

            upperCaser(gString)
        }
    
        private upperCaser(String str) {
            str.toUpperCase()
        }
    }
    
    interface WithProperties {
        String getProp()
    }
    
    class ImplementsInterface implements WithProperties {
        String prop
    }
    
    class HasReadOnlyFinalProperty {
        final Property<String> someValue
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22K bytes
    - Viewed (0)
  8. misc/go_android_exec/main.go

    	// it to be ready. adb wait-for-device is not enough, we have to
    	// wait for sys.boot_completed.
    	if err := adb("wait-for-device", "exec-out", "while [[ -z $(getprop sys.boot_completed) ]]; do sleep 1; done;"); err != nil {
    		return 0, err
    	}
    
    	// Done once per make.bash.
    	if err := adbCopyGoroot(); err != nil {
    		return 0, err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy

            snapshotter.snapshot(value) == snapshotter.snapshot(isolated)
            snapshotter.snapshot(other) != snapshotter.snapshot(isolated)
        }
    
        interface BeanInterface {
            String getProp1()
    
            void setProp1(String value)
        }
    
        def "creates snapshot for managed interface"() {
            def instantiator = TestUtil.instantiatorFactory().inject()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 29.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

        }
    
        input_shape.assign(input_type.getShape().begin(),
                           input_type.getShape().end());
      }
    
      auto crops_type = mlir::cast<TensorType>(op.getCrops().getType());
      if (crops_type.hasRank()) {
        if (crops_type.getRank() != 2)
          return op.emitOpError()
                 << "requires crops to be a 2D tensor, but got " << crops_type;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
Back to top