Home
last modified time | relevance | path

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

12345678910>>...64

/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/
DRobolectric.java392 public static ShadowAbsListView shadowOf(AbsListView instance) { in shadowOf() argument
393 return (ShadowAbsListView) shadowOf_(instance); in shadowOf()
396 public static ShadowAbsSeekBar shadowOf(AbsSeekBar instance) { in shadowOf() argument
397 return (ShadowAbsSeekBar) shadowOf_(instance); in shadowOf()
400 public static ShadowAccountManager shadowOf(AccountManager instance) { in shadowOf() argument
401 return (ShadowAccountManager) shadowOf_(instance); in shadowOf()
404 public static ShadowActivity shadowOf(Activity instance) { in shadowOf() argument
405 return (ShadowActivity) shadowOf_(instance); in shadowOf()
408 public static ShadowActivityGroup shadowOf(ActivityGroup instance) { in shadowOf() argument
409 return (ShadowActivityGroup) shadowOf_(instance); in shadowOf()
[all …]
/external/v8/test/mjsunit/harmony/
Dsimd.js69 var instance = createInstance(type);
75 assertSame(simdFn, instance.__proto__.constructor)
76 assertSame(simdFn, Object(instance).__proto__.constructor)
77 assertSame(simdFn.prototype, instance.__proto__)
78 assertSame(simdFn.prototype, Object(instance).__proto__)
84 var instance = createInstance(type);
87 assertEquals(typeofString, typeof instance)
88 assertTrue(typeof instance === typeofString)
89 assertTrue(typeof Object(instance) === 'object')
90 assertEquals(null, %_ClassOf(instance))
[all …]
/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/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/libweave/src/commands/
Dcommand_instance_unittest.cc20 CommandInstance instance{"robot.speak", Command::Origin::kCloud, *params}; in TEST() local
23 instance.Complete(*CreateDictionaryValue("{'foo': 239}"), nullptr)); in TEST()
25 EXPECT_EQ("", instance.GetID()); in TEST()
26 EXPECT_EQ("robot.speak", instance.GetName()); in TEST()
27 EXPECT_EQ(Command::Origin::kCloud, instance.GetOrigin()); in TEST()
29 instance.GetParameters()); in TEST()
30 EXPECT_JSON_EQ("{'foo': 239}", instance.GetResults()); in TEST()
37 CommandInstance instance{"base.reboot", Command::Origin::kLocal, {}}; in TEST() local
38 instance.SetID("command_id"); in TEST()
39 EXPECT_EQ("command_id", instance.GetID()); in TEST()
[all …]
/external/guice/extensions/testlib/test/com/google/inject/testing/fieldbinder/
DBoundFieldModuleTest.java46 Object instance = new Object() {}; in testBindingNothing() local
48 BoundFieldModule module = BoundFieldModule.of(instance); in testBindingNothing()
56 Object instance = new Object() { in testBindingOnePrivate() local
60 BoundFieldModule module = BoundFieldModule.of(instance); in testBindingOnePrivate()
68 Object instance = new Object() { in testBindingOnePublic() local
72 BoundFieldModule module = BoundFieldModule.of(instance); in testBindingOnePublic()
93 FieldBindableSubclass instance = new FieldBindableSubclass(1024); in testSuperTypeBinding() local
95 BoundFieldModule module = BoundFieldModule.of(instance); in testSuperTypeBinding()
98 assertEquals(instance.anInt, injector.getInstance(Integer.class)); in testSuperTypeBinding()
104 Object instance = new Object() { in testBindingTwo() 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/autotest/frontend/afe/
Dresources.py13 if self.instance.invalid:
14 raise http.Http404('%s has been deleted' % self.instance)
19 if self.instance.invalid:
20 raise http.Http404('%s has already been deleted' % self.instance)
34 return {'ag_name': self.instance.name}
39 rep['name'] = self.instance.name
46 self.instance.max_number_of_machines,
62 self.instance.update_object(**data)
87 return {'label_name': self.instance.name}
92 rep.update({'name': self.instance.name,
[all …]
/external/valgrind/drd/tests/
Dthread_name.stderr.exp3 thread_func instance 1
5 Thread 2 (thread_func instance 1):
12 thread_func instance 2
14 Thread 3 (thread_func instance 2):
21 thread_func instance 3
23 Thread 4 (thread_func instance 3):
30 thread_func instance 4
32 Thread 5 (thread_func instance 4):
39 thread_func instance 5
41 Thread 6 (thread_func instance 5):
[all …]
/external/guice/core/src/com/google/inject/internal/
DInstanceBindingImpl.java35 final T instance; field in InstanceBindingImpl
41 T instance) { in InstanceBindingImpl() argument
44 this.instance = instance; in InstanceBindingImpl()
45 this.provider = Providers.of(instance); in InstanceBindingImpl()
49 Set<InjectionPoint> injectionPoints, T instance) { in InstanceBindingImpl() argument
52 this.instance = instance; in InstanceBindingImpl()
53 this.provider = Providers.of(instance); in InstanceBindingImpl()
65 return instance; in getInstance()
73 return instance instanceof HasDependencies in getDependencies()
74 ? ImmutableSet.copyOf(((HasDependencies) instance).getDependencies()) in getDependencies()
[all …]
DInitializer.java64 <T> Initializable<T> requestInjection(InjectorImpl injector, T instance, Binding<T> binding, in requestInjection() argument
72 if (instance == null || (injectionPoints.isEmpty() in requestInjection()
75 return Initializables.of(instance); in requestInjection()
79 injector, instance, binding == null ? null : binding.getKey(), provisionCallback, source); in requestInjection()
80 pendingInjection.put(instance, initializable); in requestInjection()
91 pendingMembersInjectors.put(reference.instance, reference.validate(errors)); in validateOustandingInjections()
123 private final T instance; field in Initializer.InjectableReference
128 public InjectableReference(InjectorImpl injector, T instance, Key<T> key, in InjectableReference() argument
133 this.instance = checkNotNull(instance, "instance"); in InjectableReference()
139 TypeLiteral<T> type = TypeLiteral.get((Class<T>) instance.getClass()); in validate()
[all …]
/external/autotest/server/
Dsite_linux_router.py205 self.stop_dhcp_server(instance=None)
324 instance=None,
343 if instance is not None:
344 search_arg = '-f "^%s.*%s"' % (process, instance)
362 '' if instance is None else ' (instance=%s)' % instance))
365 def kill_hostapd_instance(self, instance): argument
373 instance=instance.conf_file,
376 if instance.scenario_name:
377 log_identifier = instance.scenario_name
380 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/org/mockito/internal/configuration/injection/scanner/
DMockScanner.java23 private final Object instance; field in MockScanner
32 public MockScanner(Object instance, Class<?> clazz) { in MockScanner() argument
33 this.instance = instance; in MockScanner()
59 FieldReader fieldReader = new FieldReader(instance, field); in scan()
69 private Object preparedMock(Object instance, Field field) { in preparedMock() argument
71 return instance; in preparedMock()
72 } else if (isMockOrSpy(instance)) { in preparedMock()
73 mockUtil.maybeRedefineMockName(instance, field.getName()); in preparedMock()
74 return instance; in preparedMock()
85 private boolean isMockOrSpy(Object instance) { in isMockOrSpy() argument
[all …]
/external/mockito/src/org/mockito/internal/util/reflection/
DFields.java31 public static InstanceFields allDeclaredFieldsOf(Object instance) { in allDeclaredFieldsOf() argument
33 … for (Class<?> clazz = instance.getClass(); clazz != Object.class; clazz = clazz.getSuperclass()) { in allDeclaredFieldsOf()
34 instanceFields.addAll(instanceFieldsIn(instance, clazz.getDeclaredFields())); in allDeclaredFieldsOf()
36 return new InstanceFields(instance, instanceFields); in allDeclaredFieldsOf()
45 public static InstanceFields declaredFieldsOf(Object instance) { in declaredFieldsOf() argument
47 instanceFields.addAll(instanceFieldsIn(instance, instance.getClass().getDeclaredFields())); in declaredFieldsOf()
48 return new InstanceFields(instance, instanceFields); in declaredFieldsOf()
51 private static List<InstanceField> instanceFieldsIn(Object instance, Field[] fields) { in instanceFieldsIn() argument
54 InstanceField instanceField = new InstanceField(field, instance); in instanceFieldsIn()
95 private final Object instance;
[all …]
/external/deqp/framework/platform/android/
DtcuAndroidNativeActivity.cpp31 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onStart(); in onStartCallback()
36 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onResume(); in onResumeCallback()
41 …return static_cast<tcu::Android::NativeActivity*>(activity->instance)->onSaveInstanceState(outSize… in onSaveInstanceStateCallback()
46 return static_cast<tcu::Android::NativeActivity*>(activity->instance)->onPause(); in onPauseCallback()
51 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onStop(); in onStopCallback()
56 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onDestroy(); in onDestroyCallback()
61 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onWindowFocusChanged(hasFocus); in onWindowFocusChangedCallback()
66 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onNativeWindowCreated(window); in onNativeWindowCreatedCallback()
71 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onNativeWindowResized(window); in onNativeWindowResizedCallback()
76 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onNativeWindowRedrawNeeded(window); in onNativeWindowRedrawNeededCallback()
[all …]
/external/vulkan-validation-layers/libs/vkjson/
Dvkjson_info.cc41 bool instance = false; member
51 options->instance = true; in ParseOptions()
78 if (options->instance && (options->device_index != unsignedNegOne || in ParseOptions()
89 if (options->instance && options->output_file.empty()) { in ParseOptions()
94 if (!options->output_file.empty() && !options->instance && in ParseOptions()
104 bool Dump(const VkJsonInstance& instance, const Options& options) { in Dump() argument
108 instance.devices.size()) { in Dump()
110 << " requested but only " << instance.devices.size() in Dump()
114 out_device = &instance.devices[options.device_index]; in Dump()
116 for (const auto& device : instance.devices) { in Dump()
[all …]
/external/v8/test/mjsunit/harmony/regress/
Dregress-2225.js55 var instance = new F();
58 assertSame(42, instance.x);
59 delete instance.x;
60 assertSame(8, instance.x);
63 assertSame(19, instance.x);
68 instance = new G();
71 assertSame(42, instance.x);
72 delete instance.x;
73 assertSame(8, instance.x);
76 assertSame(19, instance.x);
/external/dagger2/core/src/main/java/dagger/internal/
DInstanceFactory.java31 public static <T> Factory<T> create(T instance) { in create() argument
32 if (instance == null) { in create()
35 return new InstanceFactory<T>(instance); in create()
38 private final T instance; field in InstanceFactory
40 private InstanceFactory(T instance) { in InstanceFactory() argument
41 this.instance = instance; in InstanceFactory()
46 return instance; in get()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DLocalBroadcastManagerTest.java21 LocalBroadcastManager instance = LocalBroadcastManager.getInstance(Robolectric.application); in shouldGetInstance() local
22 assertNotNull(instance); in shouldGetInstance()
23 assertSame(instance, LocalBroadcastManager.getInstance(Robolectric.application)); in shouldGetInstance()
28 LocalBroadcastManager instance = LocalBroadcastManager.getInstance(Robolectric.application); in shouldSendBroadcasts() local
37 instance.registerReceiver(receiver, new IntentFilter("com.foo")); in shouldSendBroadcasts()
39 instance.sendBroadcast(new Intent("com.bar")); in shouldSendBroadcasts()
41 instance.sendBroadcast(new Intent("com.foo")); in shouldSendBroadcasts()
48 LocalBroadcastManager instance = LocalBroadcastManager.getInstance(Robolectric.application); in shouldUnregisterReceiver() local
57 instance.registerReceiver(receiver, new IntentFilter("com.foo")); in shouldUnregisterReceiver()
58 instance.unregisterReceiver(receiver); in shouldUnregisterReceiver()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/bytecode/
DShadowWrangler.java87 …public Object methodInvoked(Class clazz, String methodName, Object instance, String[] paramTypes, … in methodInvoked() argument
88 InvocationPlan invocationPlan = new InvocationPlan(clazz, methodName, instance, paramTypes); in methodInvoked()
157 public Object shadowFor(Object instance) { in shadowFor() argument
158 Field field = getShadowField(instance); in shadowFor()
159 Object shadow = readField(instance, field); in shadowFor()
165 String shadowClassName = getShadowClassName(instance.getClass()); in shadowFor()
168 …System.out.println("creating new " + shadowClassName + " as shadow for " + instance.getClass().get… in shadowFor()
170 Class<?> shadowClass = loadClass(shadowClassName, instance.getClass().getClassLoader()); in shadowFor()
171 Constructor<?> constructor = findConstructor(instance, shadowClass); in shadowFor()
173 shadow = constructor.newInstance(instance); in shadowFor()
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkInstanceDriverImpl.inl5 void InstanceDriver::destroyInstance (VkInstance instance, const VkAllocationCallbacks* pAllocator)… argument
7 m_vk.destroyInstance(instance, pAllocator);
10 VkResult InstanceDriver::enumeratePhysicalDevices (VkInstance instance, deUint32* pPhysicalDeviceCo… argument
12 return m_vk.enumeratePhysicalDevices(instance, pPhysicalDeviceCount, pPhysicalDevices);
70 void InstanceDriver::destroySurfaceKHR (VkInstance instance, VkSurfaceKHR surface, const VkAllocati… argument
72 m_vk.destroySurfaceKHR(instance, surface, pAllocator);
125 VkResult InstanceDriver::createDisplayPlaneSurfaceKHR (VkInstance instance, const VkDisplaySurfaceC… argument
127 return m_vk.createDisplayPlaneSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
130 VkResult InstanceDriver::createXlibSurfaceKHR (VkInstance instance, const VkXlibSurfaceCreateInfoKH… argument
132 return m_vk.createXlibSurfaceKHR(instance, pCreateInfo, pAllocator, pSurface);
[all …]
/external/guice/extensions/grapher/src/com/google/inject/grapher/
DInstanceNode.java29 private final Object instance; field in InstanceNode
32 public InstanceNode(NodeId id, Object source, Object instance, Iterable<Member> members) { in InstanceNode() argument
34 this.instance = instance; in InstanceNode()
39 return instance; in getInstance()
51 return super.equals(other) && Objects.equal(instance, other.instance) in equals()
56 return 31 * super.hashCode() + Objects.hashCode(instance, members); in hashCode()
60 return "InstanceNode{id=" + getId() + " source=" + getSource() + " instance=" + instance in toString()
/external/vulkan-validation-layers/loader/
Ddebug_report.c99 VkInstance instance, VkDebugReportCallbackCreateInfoEXT *pCreateInfo, in debug_report_CreateDebugReportCallback() argument
101 struct loader_instance *inst = loader_get_instance(instance); in debug_report_CreateDebugReportCallback()
104 instance, pCreateInfo, pAllocator, pCallback); in debug_report_CreateDebugReportCallback()
160 debug_report_DestroyDebugReportCallback(VkInstance instance, in debug_report_DestroyDebugReportCallback() argument
163 struct loader_instance *inst = loader_get_instance(instance); in debug_report_DestroyDebugReportCallback()
166 inst->disp->DestroyDebugReportCallbackEXT(instance, callback, pAllocator); in debug_report_DestroyDebugReportCallback()
174 VkInstance instance, VkDebugReportFlagsEXT flags, in debug_report_DebugReportMessage() argument
177 struct loader_instance *inst = loader_get_instance(instance); in debug_report_DebugReportMessage()
179 inst->disp->DebugReportMessageEXT(instance, flags, objType, object, in debug_report_DebugReportMessage()
189 VkInstance instance, const VkDebugReportCallbackCreateInfoEXT *pCreateInfo, in terminator_CreateDebugReportCallback() argument
[all …]
/external/libchrome/base/
Dlazy_instance.h65 static Type* New(void* instance) { in New()
66 DCHECK_EQ(reinterpret_cast<uintptr_t>(instance) & (ALIGNOF(Type) - 1), 0u) in New()
72 return new (instance) Type(); in New()
74 static void Delete(Type* instance) { in Delete()
76 instance->~Type(); in Delete()
99 static Type* New(void* instance) { in New()
100 return DefaultLazyInstanceTraits<Type>::New(instance); in New()
169 return instance(); in Pointer()
179 return p == instance();
192 Type* instance() { in instance() function
[all …]

12345678910>>...64