/external/libexif/libexif/ |
D | exif-mnote-data.c | 61 if (d->methods.free) d->methods.free (d); in exif_mnote_data_free() 83 if (!d || !d->methods.load) return; in exif_mnote_data_load() 84 d->methods.load (d, buf, buf_size); in exif_mnote_data_load() 91 if (!d || !d->methods.save) return; in exif_mnote_data_save() 92 d->methods.save (d, buf, buf_size); in exif_mnote_data_save() 98 if (!d || !d->methods.set_byte_order) return; in exif_mnote_data_set_byte_order() 99 d->methods.set_byte_order (d, o); in exif_mnote_data_set_byte_order() 105 if (!d || !d->methods.set_offset) return; in exif_mnote_data_set_offset() 106 d->methods.set_offset (d, o); in exif_mnote_data_set_offset() 112 if (!d || !d->methods.count) return 0; in exif_mnote_data_count() [all …]
|
/external/mockito/src/test/java/org/mockitousage/junitrule/ |
D | VerificationCollectorImplTest.java | 26 IMethods methods = mock(IMethods.class); in should_not_throw_any_exceptions_when_verifications_are_successful() local 27 methods.simpleMethod(); in should_not_throw_any_exceptions_when_verifications_are_successful() 29 verify(methods).simpleMethod(); in should_not_throw_any_exceptions_when_verifications_are_successful() 37 IMethods methods = mock(IMethods.class); in should_collect_verification_failures() local 39 verify(methods).simpleMethod(); in should_collect_verification_failures() 47 IMethods methods = mock(IMethods.class); in should_collect_multiple_verification_failures() local 49 verify(methods).simpleMethod(); in should_collect_multiple_verification_failures() 50 verify(methods).byteReturningMethod(); in should_collect_multiple_verification_failures() 64 IMethods methods = mock(IMethods.class); in should_only_collect_failures_ignore_successful_verifications() local 66 verify(methods, never()).simpleMethod(); in should_only_collect_failures_ignore_successful_verifications() [all …]
|
/external/testng/src/test/java/org/testng/internal/ |
D | MethodInstanceTest.java | 35 List<MethodInstance> methods = new ArrayList<>(); in sortByIndexSatisfiesContract() local 36 methods.add(buildMethodInstance("unittests", "StateTest", 1, "aCategorization")); in sortByIndexSatisfiesContract() 37 methods.add(buildMethodInstance("unittests", "StateTest", 1, "bCategorization")); in sortByIndexSatisfiesContract() 38 methods.add(buildMethodInstance("unittests", "StateTest", 1, "cCategorization")); in sortByIndexSatisfiesContract() 39 methods.add(buildMethodInstance("unittests", "StateTest", 1, "dCategorization")); in sortByIndexSatisfiesContract() 40 methods.add(buildMethodInstance("unittests", "StateTest", 1, "eCategorization")); in sortByIndexSatisfiesContract() 41 methods.add(buildMethodInstance("unittests", "StateTest", 1, "fCategorization")); in sortByIndexSatisfiesContract() 42 methods.add(buildMethodInstance("unittests", "StatusTest", 2, "aStatus")); in sortByIndexSatisfiesContract() 43 methods.add(buildTestNgFactoryMethodInstance("unittests")); in sortByIndexSatisfiesContract() 44 methods.add(buildTestNgFactoryMethodInstance("unittests")); in sortByIndexSatisfiesContract() [all …]
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/ |
D | ServiceDescriptor.java | 40 private final Collection<MethodDescriptor<?, ?>> methods; field in ServiceDescriptor 51 public ServiceDescriptor(String name, MethodDescriptor<?, ?>... methods) { in ServiceDescriptor() argument 52 this(name, Arrays.asList(methods)); in ServiceDescriptor() 63 public ServiceDescriptor(String name, Collection<MethodDescriptor<?, ?>> methods) { in ServiceDescriptor() argument 64 this(newBuilder(name).addAllMethods(checkNotNull(methods, "methods"))); in ServiceDescriptor() 69 validateMethodNames(name, b.methods); in ServiceDescriptor() 70 this.methods = Collections.unmodifiableList(new ArrayList<MethodDescriptor<?, ?>>(b.methods)); in ServiceDescriptor() 90 return methods; in getMethods() 109 static void validateMethodNames(String serviceName, Collection<MethodDescriptor<?, ?>> methods) { in validateMethodNames() argument 110 Set<String> allNames = new HashSet<String>(methods.size()); in validateMethodNames() [all …]
|
D | ServerServiceDefinition.java | 42 private final Map<String, ServerMethodDefinition<?, ?>> methods; field in ServerServiceDefinition 45 ServiceDescriptor serviceDescriptor, Map<String, ServerMethodDefinition<?, ?>> methods) { in ServerServiceDefinition() argument 47 this.methods = in ServerServiceDefinition() 48 Collections.unmodifiableMap(new HashMap<String, ServerMethodDefinition<?, ?>>(methods)); in ServerServiceDefinition() 62 return methods.values(); in getMethods() 72 return methods.get(methodName); in getMethod() 81 private final Map<String, ServerMethodDefinition<?, ?>> methods = field in ServerServiceDefinition.Builder 116 checkState(!methods.containsKey(name), "Method by same name already registered: %s", name); in addMethod() 117 methods.put(name, def); in addMethod() 128 = new ArrayList<MethodDescriptor<?, ?>>(methods.size()); in build() [all …]
|
/external/proguard/src/proguard/classfile/editor/ |
D | ClassEditor.java | 193 Method[] methods = targetClass.methods; in addMethod() local 196 if (methods.length <= methodsCount) in addMethod() 198 targetClass.methods = new ProgramMethod[methodsCount+1]; in addMethod() 199 System.arraycopy(methods, 0, in addMethod() 200 targetClass.methods, 0, in addMethod() 202 methods = targetClass.methods; in addMethod() 211 methods[targetClass.u2methodsCount++] = method; in addMethod() 222 Method[] methods = targetClass.methods; in removeMethod() local 227 System.arraycopy(methods, methodIndex+1, in removeMethod() 228 methods, methodIndex, in removeMethod() [all …]
|
/external/oj-libjdwp/src/share/back/ |
D | vmDebug.c | 118 JNINativeMethod methods[3]; in vmDebug_initalize() local 121 methods[0].name = "lastDebuggerActivity"; in vmDebug_initalize() 122 methods[0].signature = "()J"; in vmDebug_initalize() 123 methods[0].fnPtr = (void*)VMDebug_lastDebuggerActivity; in vmDebug_initalize() 125 methods[1].name = "isDebuggingEnabled"; in vmDebug_initalize() 126 methods[1].signature = "()Z"; in vmDebug_initalize() 127 methods[1].fnPtr = (void*)VMDebug_isDebuggingEnabled; in vmDebug_initalize() 129 methods[2].name = "isDebuggerConnected"; in vmDebug_initalize() 130 methods[2].signature = "()Z"; in vmDebug_initalize() 131 methods[2].fnPtr = (void*)VMDebug_isDebuggerConnected; in vmDebug_initalize() [all …]
|
/external/mockito/src/test/java/org/mockitousage/basicapi/ |
D | ResetInvocationsTest.java | 19 IMethods methods; field in ResetInvocationsTest 26 when(methods.simpleMethod()).thenReturn("return"); in reset_invocations_should_reset_only_invocations() 28 methods.simpleMethod(); in reset_invocations_should_reset_only_invocations() 29 verify(methods).simpleMethod(); in reset_invocations_should_reset_only_invocations() 31 clearInvocations(methods); in reset_invocations_should_reset_only_invocations() 33 verifyNoMoreInteractions(methods); in reset_invocations_should_reset_only_invocations() 34 assertEquals("return", methods.simpleMethod()); in reset_invocations_should_reset_only_invocations() 39 methods.simpleMethod(); in should_reset_invocations_on_multiple_mocks() 42 clearInvocations(methods, moarMethods); in should_reset_invocations_on_multiple_mocks() 44 verifyNoMoreInteractions(methods, moarMethods); in should_reset_invocations_on_multiple_mocks()
|
/external/grpc-grpc/src/python/grpcio_tests/tests/interop/ |
D | _intraop_test_case.py | 16 from tests.interop import methods 27 methods.TestCase.EMPTY_UNARY.test_interoperability(self.stub, None) 30 methods.TestCase.LARGE_UNARY.test_interoperability(self.stub, None) 33 methods.TestCase.SERVER_STREAMING.test_interoperability(self.stub, None) 36 methods.TestCase.CLIENT_STREAMING.test_interoperability(self.stub, None) 39 methods.TestCase.PING_PONG.test_interoperability(self.stub, None) 42 methods.TestCase.CANCEL_AFTER_BEGIN.test_interoperability( 46 methods.TestCase.CANCEL_AFTER_FIRST_RESPONSE.test_interoperability( 50 methods.TestCase.TIMEOUT_ON_SLEEPING_SERVER.test_interoperability(
|
/external/mockito/src/test/java/org/mockito/exceptions/base/ |
D | StackTraceBuilder.java | 13 private String[] methods; field in StackTraceBuilder 15 public StackTraceBuilder methods(String ... methods) { in methods() method in StackTraceBuilder 16 this.methods = methods; in methods() 21 StackTraceElement[] trace = new StackTraceElement[methods.length]; in toStackTrace() 23 for (int i = 0; i < methods.length; i++) { in toStackTrace() 24 trace[i] = new StackTraceElement("DummyClass", methods[i], "DummyClass.java", 100); in toStackTrace()
|
D | TraceBuilder.java | 14 private String[] methods = {}; field in TraceBuilder 24 assert methods.length == 0 || classes.length == 0; in toTraceList() 27 for (String method : methods) { in toTraceList() 47 public TraceBuilder methods(String ... methods) { in methods() method in TraceBuilder 48 this.methods = methods; in methods()
|
/external/deqp-deps/amber/tools/ |
D | update_vk_wrappers.py | 28 methods = [] 36 methods.append(match.group(1)) 37 return methods 41 methods = {} 61 methods[name] = { 67 return methods 70 def gen_wrappers(methods, xml): argument 72 for method in methods: 138 def gen_headers(methods, xml): argument 140 for method in methods: [all …]
|
/external/grpc-grpc/src/python/grpcio_tests/tests/protoc_plugin/ |
D | beta_python_plugin_test.py | 372 self._service_pb2) as (methods, stub): 375 expected_response = methods.UnaryCall(request, 'not a real context!') 382 self._service_pb2) as (methods, stub): 385 with methods.pause(): 389 expected_response = methods.UnaryCall(request, 'not a real RpcContext!') 396 self._service_pb2) as (methods, stub): 398 with methods.pause(): 408 self._service_pb2) as (methods, stub): 410 with methods.pause(): 419 self._service_pb2) as (methods, stub): [all …]
|
/external/emma/core/java12/com/vladium/emma/data/ |
D | ClassDescriptor.java | 31 final MethodDescriptor [] methods) in ClassDescriptor() argument 37 if (methods == null) in ClassDescriptor() 42 for (int m = 0; m < methods.length; ++ m) in ClassDescriptor() 44 …$assert.ASSERT (methods [m] != null, "methods [" + m + "] = null (length = " + methods.length + ")… in ClassDescriptor() 52 m_methods = methods; // TODO: defensive copy? in ClassDescriptor() 57 final MethodDescriptor method = methods [m]; in ClassDescriptor() 180 final MethodDescriptor [] methods = new MethodDescriptor [length]; in readExternal() local 183 methods [i] = MethodDescriptor.readExternal (in); in readExternal() 186 return new ClassDescriptor (packageVMName, name, stamp, srcFileName, methods); in readExternal() 207 final MethodDescriptor [] methods = cls.m_methods; in writeExternal() local [all …]
|
/external/python/cpython2/Mac/Modules/win/ |
D | winedit.py | 7 methods.append(f) 13 methods.append(f) 19 methods.append(f) 25 methods.append(f) 30 methods.append(f) 44 methods.append(f) 49 methods.append(f) 69 methods.append(f)
|
/external/testng/src/main/java/org/testng/internal/ |
D | MethodInheritance.java | 51 public static void fixMethodInheritance(ITestNGMethod[] methods, boolean before) { in fixMethodInheritance() argument 58 for (ITestNGMethod method : methods) { in fixMethodInheritance() 98 if (!equalsEffectiveClass(m1, m2) && !dependencyExists(m1, m2, methods)) { in fixMethodInheritance() 108 …vate static boolean dependencyExists(ITestNGMethod m1, ITestNGMethod m2, ITestNGMethod[] methods) { in dependencyExists() argument 109 return internalDependencyExists(m1, m2, methods) || internalDependencyExists(m2, m1, methods); in dependencyExists() 112 …tic boolean internalDependencyExists(ITestNGMethod m1, ITestNGMethod m2, ITestNGMethod[] methods) { in internalDependencyExists() argument 114 MethodHelper.findDependedUponMethods(m1, methods); in internalDependencyExists() 124 MethodGroupsHelper.findMethodsThatBelongToGroup(m1, methods, group); in internalDependencyExists() 153 private static void sortMethodsByInheritance(List<ITestNGMethod> methods, in sortMethodsByInheritance() argument 156 Collections.sort(methods); in sortMethodsByInheritance() [all …]
|
D | ConfigurationMethod.java | 124 private static ITestNGMethod[] createMethods(ITestNGMethod[] methods, IAnnotationFinder finder, in createMethods() argument 138 for (ITestNGMethod method : methods) { in createMethods() 158 public static ITestNGMethod[] createSuiteConfigurationMethods(ITestNGMethod[] methods, in createSuiteConfigurationMethods() argument 160 return createMethods(methods, annotationFinder, in createSuiteConfigurationMethods() 174 public static ITestNGMethod[] createTestConfigurationMethods(ITestNGMethod[] methods, in createTestConfigurationMethods() argument 176 return createMethods(methods, annotationFinder, in createTestConfigurationMethods() 190 public static ITestNGMethod[] createClassConfigurationMethods(ITestNGMethod[] methods, in createClassConfigurationMethods() argument 192 return createMethods(methods, annotationFinder, in createClassConfigurationMethods() 206 public static ITestNGMethod[] createBeforeConfigurationMethods(ITestNGMethod[] methods, in createBeforeConfigurationMethods() argument 209 ITestNGMethod[] result = new ITestNGMethod[methods.length]; in createBeforeConfigurationMethods() [all …]
|
D | MethodHelper.java | 47 public static ITestNGMethod[] collectAndOrderMethods(List<ITestNGMethod> methods, in collectAndOrderMethods() argument 52 MethodGroupsHelper.collectMethodsByGroup(methods.toArray(new ITestNGMethod[methods.size()]), in collectAndOrderMethods() 70 ITestNGMethod[] methods) in findDependedUponMethods() argument 84 for (ITestNGMethod method : methods) { in findDependedUponMethods() 181 public static List<ITestNGMethod> uniqueMethodList(Collection<List<ITestNGMethod>> methods) { in uniqueMethodList() argument 184 for (List<ITestNGMethod> l : methods) { in uniqueMethodList() 191 private static Graph<ITestNGMethod> topologicalSort(ITestNGMethod[] methods, in topologicalSort() argument 195 if (methods.length == 0) { in topologicalSort() 202 for (ITestNGMethod m : methods) { in topologicalSort() 211 MethodHelper.findDependedUponMethods(m, methods); in topologicalSort() [all …]
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/archivers/sevenz/ |
D | SevenZOutputFileTest.java | 297 final ArrayList<SevenZMethodConfiguration> methods = new ArrayList<>(); in testStackOfContentCompressions() local 298 methods.add(new SevenZMethodConfiguration(SevenZMethod.LZMA2)); in testStackOfContentCompressions() 299 methods.add(new SevenZMethodConfiguration(SevenZMethod.COPY)); in testStackOfContentCompressions() 300 methods.add(new SevenZMethodConfiguration(SevenZMethod.DEFLATE)); in testStackOfContentCompressions() 301 methods.add(new SevenZMethodConfiguration(SevenZMethod.BZIP2)); in testStackOfContentCompressions() 302 createAndReadBack(output, methods); in testStackOfContentCompressions() 307 final ArrayList<SevenZMethodConfiguration> methods = new ArrayList<>(); in testStackOfContentCompressionsInMemory() local 308 methods.add(new SevenZMethodConfiguration(SevenZMethod.LZMA2)); in testStackOfContentCompressionsInMemory() 309 methods.add(new SevenZMethodConfiguration(SevenZMethod.COPY)); in testStackOfContentCompressionsInMemory() 310 methods.add(new SevenZMethodConfiguration(SevenZMethod.DEFLATE)); in testStackOfContentCompressionsInMemory() [all …]
|
/external/testng/src/test/java/test/assertion/ |
D | MyRawAssertion.java | 12 private final List<String> methods = new ArrayList<>(); field in MyRawAssertion 16 methods.add("onAssertSuccess"); in onAssertSuccess() 22 methods.add("deprecated_onAssertFailure"); in onAssertFailure() 28 methods.add("onAssertFailure"); in onAssertFailure() 34 methods.add("onBeforeAssert"); in onBeforeAssert() 40 methods.add("onAfterAssert"); in onAfterAssert() 45 return methods; in getMethods()
|
/external/wpa_supplicant_8/src/ap/ |
D | eap_user_db.c | 23 static void set_user_methods(struct hostapd_eap_user *user, const char *methods) in set_user_methods() argument 28 buf = os_strdup(methods); in set_user_methods() 32 os_memset(&user->methods, 0, sizeof(user->methods)); in set_user_methods() 39 user->methods[num_methods].method = in set_user_methods() 41 &user->methods[num_methods].vendor); in set_user_methods() 42 if (user->methods[num_methods].vendor == EAP_VENDOR_IETF && in set_user_methods() 43 user->methods[num_methods].method == EAP_TYPE_NONE) { in set_user_methods() 106 int i, id = -1, methods = -1; in get_wildcard_cb() local 113 methods = i; in get_wildcard_cb() 116 if (id < 0 || methods < 0) in get_wildcard_cb() [all …]
|
/external/wpa_supplicant_8/wpa_supplicant/dbus/ |
D | dbus_new_handlers_wps.c | 441 char *methods, *new_methods; in wpas_dbus_setter_config_methods() local 444 &methods)) in wpas_dbus_setter_config_methods() 447 new_methods = os_strdup(methods); in wpas_dbus_setter_config_methods() 495 char *methods, *devname; in wpas_dbus_setter_wps_device_name() local 498 &methods)) in wpas_dbus_setter_wps_device_name() 501 if (os_strlen(methods) > WPS_DEV_NAME_MAX_LEN) in wpas_dbus_setter_wps_device_name() 504 devname = os_strdup(methods); in wpas_dbus_setter_wps_device_name() 551 char *methods, *manufacturer; in wpas_dbus_setter_wps_manufacturer() local 554 &methods)) in wpas_dbus_setter_wps_manufacturer() 557 if (os_strlen(methods) > WPS_MANUFACTURER_MAX_LEN) in wpas_dbus_setter_wps_manufacturer() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/ |
D | JavassistClassDeclarationTest.java | 183 Map<String, MethodUsage> methods = new HashMap<>(); in testGetDeclaredMethods() local 185 methods.put(method.getName(), new MethodUsage(method)); in testGetDeclaredMethods() 188 assertTrue(methods.containsKey("pos")); in testGetDeclaredMethods() 189 assertEquals(2, methods.get("pos").getNoParams()); in testGetDeclaredMethods() 190 assertTrue(methods.containsKey("withColumn")); in testGetDeclaredMethods() 191 assertEquals(1, methods.get("withColumn").getNoParams()); in testGetDeclaredMethods() 192 assertTrue(methods.containsKey("withLine")); in testGetDeclaredMethods() 193 assertEquals(1, methods.get("withLine").getNoParams()); in testGetDeclaredMethods() 194 assertTrue(methods.containsKey("valid")); in testGetDeclaredMethods() 195 assertEquals(0, methods.get("valid").getNoParams()); in testGetDeclaredMethods() [all …]
|
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/ |
D | test_support.py | 83 len(interface1.methods) != len(interface2.methods): 85 for i in range(len(interface1.methods)): 86 if not MethodsAreEqual(interface1.methods[i], interface2.methods[i]): 141 errors += EXPECT_EQ(1, len(module.interfaces[0].methods)) 142 errors += EXPECT_EQ('Foo', module.interfaces[0].methods[0].name) 143 errors += EXPECT_EQ(2, len(module.interfaces[0].methods[0].parameters)) 144 errors += EXPECT_EQ('foo', module.interfaces[0].methods[0].parameters[0].name) 146 module.interfaces[0].methods[0].parameters[0].kind) 147 errors += EXPECT_EQ('bar', module.interfaces[0].methods[0].parameters[1].name) 150 module.interfaces[0].methods[0].parameters[1].kind.__class__) [all …]
|
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/ |
D | JavaClass.java | 64 private Method[] methods; // methods defined in the class field in JavaClass 121 Field[] fields, Method[] methods, Attribute[] attributes, final byte source) { in JavaClass() argument 132 if (methods == null) { in JavaClass() 133 methods = new Method[0]; in JavaClass() 143 this.methods = methods; in JavaClass() 198 final Field[] fields, final Method[] methods, final Attribute[] attributes) { in JavaClass() argument 200 constant_pool, interfaces, fields, methods, attributes, HEAP); in JavaClass() 313 file.writeShort(methods.length); in dump() 314 for (final Method method : methods) { in dump() 426 return methods; in getMethods() [all …]
|