Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 2773) sorted by relevance

12345678910>>...111

/external/webrtc/webrtc/test/channel_transport/
Dtraffic_control_win.cc20 TrafficControlWindows* TrafficControlWindows::instance = NULL; member in webrtc::test::TrafficControlWindows
30 if(instance != NULL) in GetInstance()
38 return instance; in GetInstance()
43 instance = new TrafficControlWindows(id); in GetInstance()
44 if(instance == NULL) in GetInstance()
51 instance->tcRegister = NULL; in GetInstance()
52 instance->tcDeregister = NULL; in GetInstance()
54 instance->tcEnumerate = NULL; in GetInstance()
55 instance->tcOpenInterface = NULL; in GetInstance()
56 instance->tcCloseInterface = NULL; in GetInstance()
[all …]
/external/python/oauth2client/tests/contrib/
Dtest_locked_file.py33 instance, filename = self._make_one()
34 self.assertFalse(instance._locked)
35 self.assertEqual(instance._filename, filename)
36 self.assertEqual(instance._mode, 'r+')
37 self.assertEqual(instance._fallback_mode, 'r')
38 self.assertIsNone(instance._fh)
39 self.assertIsNone(instance._lock_fd)
42 instance, _ = self._make_one()
43 self.assertFalse(instance.is_locked())
44 instance._locked = True
[all …]
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderStructTests.cpp150 …struct SetUniforms_##NAME { static void setUniforms (ShaderRenderCaseInstance& instance, const tcu… in init()
175 instance.useUniform(0u, UI_ONE); in init()
205 instance.useUniform(0u, UI_ZERO); in init()
206 instance.useUniform(1u, UI_ONE); in init()
235 instance.useUniform(0u, UI_ONE); in init()
266 instance.useUniform(0u, UI_ZERO); in init()
267 instance.useUniform(1u, UI_ONE); in init()
268 instance.useUniform(2u, UI_TWO); in init()
297 instance.useUniform(0u, UI_ZERO); in init()
298 instance.useUniform(1u, UI_ONE); in init()
[all …]
/external/adhd/cras/src/server/
Dcras_dsp_pipeline.c69 struct instance { struct
97 DECLARE_ARRAY_TYPE(struct instance, instance_array) argument
120 struct instance *source_instance;
123 struct instance *sink_instance;
147 static struct instance *find_instance_by_plugin(instance_array *instances, in find_instance_by_plugin()
151 struct instance *instance; in find_instance_by_plugin() local
153 FOR_ARRAY_ELEMENT(instances, i, instance) { in find_instance_by_plugin()
154 if (instance->plugin == plugin) in find_instance_by_plugin()
155 return instance; in find_instance_by_plugin()
233 struct instance *instance; in find_output_audio_port() local
[all …]
/external/guice/extensions/testlib/test/com/google/inject/testing/fieldbinder/
DBoundFieldModuleTest.java43 Object instance = new Object() {}; in testBindingNothing() local
45 BoundFieldModule module = BoundFieldModule.of(instance); in testBindingNothing()
53 Object instance = in testBindingOnePrivate() local
58 BoundFieldModule module = BoundFieldModule.of(instance); in testBindingOnePrivate()
66 Object instance = in testBindingOnePublic() local
71 BoundFieldModule module = BoundFieldModule.of(instance); in testBindingOnePublic()
92 FieldBindableSubclass instance = new FieldBindableSubclass(1024); in testSuperTypeBinding() local
94 BoundFieldModule module = BoundFieldModule.of(instance); in testSuperTypeBinding()
97 assertEquals(instance.anInt, injector.getInstance(Integer.class)); in testSuperTypeBinding()
103 Object instance = in testBindingTwo() local
[all …]
/external/python/cpython3/Modules/_sha3/kcp/
DKeccakHash.c21 HashReturn Keccak_HashInitialize(Keccak_HashInstance *instance, unsigned int rate, unsigned int cap… in Keccak_HashInitialize() argument
27 result = (HashReturn)KeccakWidth1600_SpongeInitialize(&instance->sponge, rate, capacity); in Keccak_HashInitialize()
30 instance->fixedOutputLength = hashbitlen; in Keccak_HashInitialize()
31 instance->delimitedSuffix = delimitedSuffix; in Keccak_HashInitialize()
37 HashReturn Keccak_HashUpdate(Keccak_HashInstance *instance, const BitSequence *data, DataLength dat… in Keccak_HashUpdate() argument
40 return (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, data, databitlen/8); in Keccak_HashUpdate()
42 … HashReturn ret = (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, data, databitlen/8); in Keccak_HashUpdate()
49 …astBytes = (unsigned short)((unsigned short)lastByte | ((unsigned short)instance->delimitedSuffix … in Keccak_HashUpdate()
51 instance->delimitedSuffix = delimitedLastBytes & 0xFF; in Keccak_HashUpdate()
56 ret = (HashReturn)KeccakWidth1600_SpongeAbsorb(&instance->sponge, oneByte, 1); in Keccak_HashUpdate()
[all …]
DKeccakSponge.inc143 int SpongeInitialize(SpongeInstance *instance, unsigned int rate, unsigned int capacity)
150 SnP_Initialize(instance->state);
151 instance->rate = rate;
152 instance->byteIOIndex = 0;
153 instance->squeezing = 0;
160 int SpongeAbsorb(SpongeInstance *instance, const unsigned char *data, size_t dataByteLen)
165 unsigned int rateInBytes = instance->rate/8;
167 if (instance->squeezing)
174 if ((instance->byteIOIndex == 0) && (dataByteLen >= (i + rateInBytes))) {
181 … j = SnP_FastLoop_Absorb(instance->state, rateInBytes/(SnP_width/200), curData, dataByteLen - i);
[all …]
/external/v8/tools/clang/traffic_annotation_extractor/
Dtraffic_annotation_extractor.cpp188 CallInstance instance; in AddFunction() local
190 GetInstanceLocation(result, call_expr, &instance.location); in AddFunction()
191 instance.called_function_name = in AddFunction()
193 instance.has_annotation = in AddFunction()
195 collector_->calls.push_back(instance); in AddFunction()
218 Location instance; in AddConstructor() local
220 GetInstanceLocation(result, constructor_expr, &instance); in AddConstructor()
223 if (!IsAPIFunction(instance.function_name)) in AddConstructor()
224 collector_->assignments.push_back(instance); in AddConstructor()
230 Location instance; in AddAssignment() local
[all …]
/external/webrtc/talk/media/devices/
Dlinuxdeviceinfo.cc49 LibUDevSymbolTable* instance() { return &libudev_; } in instance() function in cricket::ScopedLibUdev
71 udev* instance() { return udev_; } in instance() function in cricket::ScopedUdev
88 udev_enumerate* instance() { return enumerate_; } in instance() function in cricket::ScopedUdevEnumerate
101 ScopedUdev udev_context(libudev_context->instance()); in GetUsbProperty()
102 if (!udev_context.instance()) { in GetUsbProperty()
105 ScopedUdevEnumerate enumerate_context(libudev_context->instance(), in GetUsbProperty()
106 udev_context.instance()); in GetUsbProperty()
107 if (!enumerate_context.instance()) { in GetUsbProperty()
110 libudev_context->instance()->udev_enumerate_add_match_subsystem()( in GetUsbProperty()
111 enumerate_context.instance(), "video4linux"); in GetUsbProperty()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/
Dcollective_param_resolver_local_test.cc54 cp.instance.device_names = shared_cp.instance.device_names; in RunCompleteDefaultRanking()
60 ir.shared.instance = shared_cp.instance; in RunCompleteDefaultRanking()
62 ir.shared.instance.gpu_ring_order = ""; in RunCompleteDefaultRanking()
65 ir.shared.instance.gpu_ring_order = strings::StrCat( in RunCompleteDefaultRanking()
66 ir.shared.instance.gpu_ring_order, gpu_ring_order[i], ","); in RunCompleteDefaultRanking()
68 ir.shared.instance.gpu_ring_order = strings::StrCat( in RunCompleteDefaultRanking()
69 ir.shared.instance.gpu_ring_order, gpu_ring_order.back()); in RunCompleteDefaultRanking()
71 VLOG(2) << "gpu_ring_order " << ir.shared.instance.gpu_ring_order; in RunCompleteDefaultRanking()
73 EXPECT_EQ(ir.shared.instance.device_names, expected_device_order); in RunCompleteDefaultRanking()
90 cp.instance.instance_key = 5; in TEST_F()
[all …]
Dcollective_param_resolver_local.cc295 GlobalDeviceMap gdm = BuildDevRecs(cp->instance, localities); in EstablishGlobalRank()
298 OrderTaskDeviceMap(cp->instance.gpu_ring_order, &tdm); in EstablishGlobalRank()
303 for (int i = 0; i < cp->instance.task_names.size(); ++i) { in EstablishGlobalRank()
304 const string& task_name = cp->instance.task_names[i]; in EstablishGlobalRank()
322 cp->instance.num_devices_per_task.clear(); in SetDevPerTask()
323 const string* last_task_name = &cp->instance.task_names[0]; in SetDevPerTask()
325 for (const string& task_name : cp->instance.task_names) { in SetDevPerTask()
329 cp->instance.num_devices_per_task[*last_task_name] = count; in SetDevPerTask()
334 cp->instance.num_devices_per_task[*last_task_name] = count; in SetDevPerTask()
336 cp->instance.same_num_devices_per_task = false; in SetDevPerTask()
[all …]
/external/mesa3d/src/vulkan/util/
Dvk_debug_report.c29 VkResult vk_debug_report_instance_init(struct vk_debug_report_instance *instance) in vk_debug_report_instance_init() argument
31 if (pthread_mutex_init(&instance->callbacks_mutex, NULL) != 0) { in vk_debug_report_instance_init()
35 list_inithead(&instance->callbacks); in vk_debug_report_instance_init()
40 void vk_debug_report_instance_destroy(struct vk_debug_report_instance *instance) in vk_debug_report_instance_destroy() argument
42 pthread_mutex_destroy(&instance->callbacks_mutex); in vk_debug_report_instance_destroy()
46 vk_create_debug_report_callback(struct vk_debug_report_instance *instance, in vk_create_debug_report_callback() argument
65 pthread_mutex_lock(&instance->callbacks_mutex); in vk_create_debug_report_callback()
66 list_addtail(&cb->link, &instance->callbacks); in vk_create_debug_report_callback()
67 pthread_mutex_unlock(&instance->callbacks_mutex); in vk_create_debug_report_callback()
75 vk_destroy_debug_report_callback(struct vk_debug_report_instance *instance, in vk_destroy_debug_report_callback() argument
[all …]
/external/tensorflow/tensorflow/contrib/labeled_tensor/python/ops/
D_typecheck.py85 def __instancecheck__(self, instance): argument
86 return isinstance(instance, self._types)
95 def __instancecheck__(self, instance): argument
97 return isinstance(instance, (self._type, type(None)))
106 def __instancecheck__(self, instance): argument
107 return (isinstance(instance, list)
108 and all(isinstance(x, self._type) for x in instance))
117 def __instancecheck__(self, instance): argument
118 return (isinstance(instance, collections.Sequence)
119 and all(isinstance(x, self._type) for x in instance))
[all …]
/external/guice/core/src/com/google/inject/internal/
DInitializer.java78 T instance, in requestInjection() argument
89 if (instance == null in requestInjection()
93 return Initializables.of(instance); in requestInjection()
96 if (initializablesCache.containsKey(instance)) { in requestInjection()
98 Initializable<T> cached = (Initializable<T>) initializablesCache.get(instance); in requestInjection()
105 instance, in requestInjection()
109 cycleDetectingLockFactory.create(instance.getClass())); in requestInjection()
110 initializablesCache.put(instance, injectableReference); in requestInjection()
160 private final T instance; field in Initializer.InjectableReference
168 T instance, in InjectableReference() argument
[all …]
DInstanceBindingImpl.java33 final T instance; field in InstanceBindingImpl
42 T instance) { in InstanceBindingImpl() argument
45 this.instance = instance; in InstanceBindingImpl()
49 Object source, Key<T> key, Scoping scoping, Set<InjectionPoint> injectionPoints, T instance) { in InstanceBindingImpl() argument
52 this.instance = instance; in InstanceBindingImpl()
62 return instance; in getInstance()
72 return instance instanceof HasDependencies in getDependencies()
73 ? ImmutableSet.copyOf(((HasDependencies) instance).getDependencies()) in getDependencies()
79 return new InstanceBindingImpl<T>(getSource(), getKey(), scoping, injectionPoints, instance); in withScoping()
84 return new InstanceBindingImpl<T>(getSource(), key, getScoping(), injectionPoints, instance); in withKey()
[all …]
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DMockMethodAdvice.java46 private static Object tryInvoke(Method origin, Object instance, Object[] arguments) in tryInvoke() argument
49 return origin.invoke(instance, arguments); in tryInvoke()
98 public Method getOrigin(Object instance, String methodWithTypeAndSignature) throws Throwable { in getOrigin() argument
99 if (!isMocked(instance)) { in getOrigin()
177 if (isOverridden(instance, origin)) { in getOrigin()
195 public Callable<?> handle(Object instance, Method origin, Object[] arguments) throws Throwable { in handle() argument
196 InvocationHandlerAdapter interceptor = interceptors.get(instance); in handle()
201 return new ReturnValueWrapper(interceptor.interceptEntryHook(instance, origin, arguments, in handle()
202 new SuperMethodCall(selfCallInfo, origin, instance, arguments))); in handle()
212 public boolean isMock(Object instance) { in isMock() argument
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DSharedResourceHolder.java91 public static <T> T release(final Resource<T> resource, final T instance) { in release() argument
92 return holder.releaseInternal(resource, instance); in release()
102 Instance instance = instances.get(resource); in getInternal() local
103 if (instance == null) { in getInternal()
104 instance = new Instance(resource.create()); in getInternal()
105 instances.put(resource, instance); in getInternal()
107 if (instance.destroyTask != null) { in getInternal()
108 instance.destroyTask.cancel(false); in getInternal()
109 instance.destroyTask = null; in getInternal()
111 instance.refcount++; in getInternal()
[all …]
/external/autotest/server/
Dsite_linux_router.py235 self.stop_dhcp_server(instance=None)
369 instance=None,
388 if instance is not None:
389 search_arg = '-f "^%s.*%s"' % (process, instance)
411 '' if instance is None else ' (instance=%s)' % instance))
415 def kill_hostapd_instance(self, instance): argument
423 instance=instance.conf_file,
426 if instance.scenario_name:
427 log_identifier = instance.scenario_name
430 self._total_hostapd_instances, instance.interface)
[all …]
/external/apache-harmony/support/src/test/java/tests/support/
DSupport_URLConnector.java32 private URLConnection instance; field in Support_URLConnector
40 instance = new URL(address).openConnection(); in open()
45 ((HttpURLConnection) instance).disconnect(); in close()
53 if (instance == null) { in getInputStream()
57 return instance.getInputStream(); in getInputStream()
61 if (instance == null) { in getOutputStream()
64 instance.setDoOutput(true); in getOutputStream()
65 ((HttpURLConnection) instance).setRequestMethod("POST"); in getOutputStream()
67 return instance.getOutputStream(); in getOutputStream()
75 instance.setRequestProperty(key, value); in setRequestProperty()
[all …]
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/scanner/
DMockScanner.java21 private final Object instance; field in MockScanner
30 public MockScanner(Object instance, Class<?> clazz) { in MockScanner() argument
31 this.instance = instance; in MockScanner()
57 FieldReader fieldReader = new FieldReader(instance, field); in scan()
67 private Object preparedMock(Object instance, Field field) { in preparedMock() argument
69 return instance; in preparedMock()
71 if (isMockOrSpy(instance)) { in preparedMock()
72 MockUtil.maybeRedefineMockName(instance, field.getName()); in preparedMock()
73 return instance; in preparedMock()
82 private boolean isMockOrSpy(Object instance) { in isMockOrSpy() argument
[all …]
/external/libchrome/base/
Dlazy_instance.h64 static Type* New(void* instance) { in New()
65 DCHECK_EQ(reinterpret_cast<uintptr_t>(instance) & (alignof(Type) - 1), 0u); in New()
68 return new (instance) Type(); in New()
71 static void CallDestructor(Type* instance) { in CallDestructor()
73 instance->~Type(); in CallDestructor()
91 static Type* New(void* instance) { in New()
92 return LazyInstanceTraitsBase<Type>::New(instance); in New()
95 static void Delete(Type* instance) { in Delete()
96 LazyInstanceTraitsBase<Type>::CallDestructor(instance); in Delete()
115 static Type* New(void* instance) { in New()
[all …]
/external/libcxx/utils/google-benchmark/src/
Dbenchmark_register.cc92 static BenchmarkFamilies instance; in GetInstance() local
93 return &instance; in GetInstance()
155 BenchmarkInstance instance; in FindBenchmarks() local
156 instance.name = family->name_; in FindBenchmarks()
157 instance.benchmark = family.get(); in FindBenchmarks()
158 instance.aggregation_report_mode = family->aggregation_report_mode_; in FindBenchmarks()
159 instance.arg = args; in FindBenchmarks()
160 instance.time_unit = family->time_unit_; in FindBenchmarks()
161 instance.range_multiplier = family->range_multiplier_; in FindBenchmarks()
162 instance.min_time = family->min_time_; in FindBenchmarks()
[all …]
/external/google-benchmark/src/
Dbenchmark_register.cc92 static BenchmarkFamilies instance; in GetInstance() local
93 return &instance; in GetInstance()
155 BenchmarkInstance instance; in FindBenchmarks() local
156 instance.name = family->name_; in FindBenchmarks()
157 instance.benchmark = family.get(); in FindBenchmarks()
158 instance.aggregation_report_mode = family->aggregation_report_mode_; in FindBenchmarks()
159 instance.arg = args; in FindBenchmarks()
160 instance.time_unit = family->time_unit_; in FindBenchmarks()
161 instance.range_multiplier = family->range_multiplier_; in FindBenchmarks()
162 instance.min_time = family->min_time_; in FindBenchmarks()
[all …]
/external/mockito/src/main/java/org/mockito/internal/util/reflection/
DFields.java29 public static InstanceFields allDeclaredFieldsOf(Object instance) { in allDeclaredFieldsOf() argument
31 … for (Class<?> clazz = instance.getClass(); clazz != Object.class; clazz = clazz.getSuperclass()) { in allDeclaredFieldsOf()
32 instanceFields.addAll(instanceFieldsIn(instance, clazz.getDeclaredFields())); in allDeclaredFieldsOf()
34 return new InstanceFields(instance, instanceFields); in allDeclaredFieldsOf()
43 public static InstanceFields declaredFieldsOf(Object instance) { in declaredFieldsOf() argument
45 instanceFields.addAll(instanceFieldsIn(instance, instance.getClass().getDeclaredFields())); in declaredFieldsOf()
46 return new InstanceFields(instance, instanceFields); in declaredFieldsOf()
49 private static List<InstanceField> instanceFieldsIn(Object instance, Field[] fields) { in instanceFieldsIn() argument
52 InstanceField instanceField = new InstanceField(field, instance); in instanceFieldsIn()
107 private final Object instance;
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dcollective_ops.cc31 return strings::StrCat(col_params_.instance.instance_key, ":", in GetCollectiveKey()
41 col_params_.instance.device_names.size()) { in CanProceedWithCompute()
49 << col_params_.instance.instance_key; in CanProceedWithCompute()
54 col_params_.instance.impl_details.dependencies = dependencies_; in CanProceedWithCompute()
75 col_params_.instance.type = GATHER_COLLECTIVE; in CollectiveGatherOpKernel()
79 c, c->GetAttr("instance_key", &col_params_.instance.instance_key)); in CollectiveGatherOpKernel()
80 OP_REQUIRES_OK(c, c->GetAttr("T", &col_params_.instance.data_type)); in CollectiveGatherOpKernel()
81 OP_REQUIRES_OK(c, c->GetAttr("shape", &col_params_.instance.shape)); in CollectiveGatherOpKernel()
103 c, c->allocate_output(0, col_params_.instance.shape, &output), done); in ComputeAsync()
126 col_params_.instance.type = REDUCTION_COLLECTIVE; in CollectiveReduceOpKernel()
[all …]

12345678910>>...111