Home
last modified time | relevance | path

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

12345678910>>...40

/external/robolectric/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 …]
DRobolectricForMaps.java13 public static ShadowGeoPoint shadowOf(GeoPoint instance) { in shadowOf() argument
14 return (ShadowGeoPoint) Robolectric.shadowOf_(instance); in shadowOf()
17 public static ShadowMapView shadowOf(MapView instance) { in shadowOf() argument
18 return (ShadowMapView) Robolectric.shadowOf_(instance); in shadowOf()
21 public static ShadowMapController shadowOf(MapController instance) { in shadowOf() argument
22 return (ShadowMapController) Robolectric.shadowOf_(instance); in shadowOf()
25 public static ShadowItemizedOverlay shadowOf(ItemizedOverlay instance) { in shadowOf() argument
26 return (ShadowItemizedOverlay) Robolectric.shadowOf_(instance); in shadowOf()
DRobolectricShadowOfLevel9.java13 public static ShadowNdefMessage shadowOf(NdefMessage instance) { in shadowOf() argument
14 return (ShadowNdefMessage) Robolectric.shadowOf_(instance); in shadowOf()
17 public static ShadowNdefRecord shadowOf(NdefRecord instance) { in shadowOf() argument
18 return (ShadowNdefRecord) Robolectric.shadowOf_(instance); in shadowOf()
21 public static ShadowNfcAdapter shadowOf(NfcAdapter instance) { in shadowOf() argument
22 return (ShadowNfcAdapter) Robolectric.shadowOf_(instance); in shadowOf()
/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/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 …]
DSupport_HttpServerSocket.java30 private ServerSocket instance = null; field in Support_HttpServerSocket
45 if (instance == null) { in accept()
48 instance.setSoTimeout(timeout); in accept()
49 Socket s = instance.accept(); in accept()
69 instance = new ServerSocket(port); in open()
76 if (instance != null) { in close()
77 instance.close(); in close()
DSupport_HttpSocket.java30 private final Socket instance; field in Support_HttpSocket
35 instance = socket; in Support_HttpSocket()
40 return instance.getInputStream(); in getInputStream()
45 return instance.getOutputStream(); in getOutputStream()
49 if (!streamOpen && instance != null) { in close()
50 instance.close(); in close()
/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 …]
DInstanceField.java19 private final Object instance; field in InstanceField
29 public InstanceField(Field field, Object instance) { in InstanceField() argument
31 this.instance = Checks.checkNotNull(instance, "instance"); in InstanceField()
51 new FieldSetter(instance, field).set(value); in set()
95 fieldReader = new FieldReader(instance, field); in reader()
117 if (!instance.equals(that.instance)) return false; in equals()
125 result = 31 * result + instance.hashCode(); in hashCode()
/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/robolectric/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/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/lldb/source/Core/
DPluginManager.cpp267 ABIInstance instance; in RegisterPlugin() local
269 instance.name = name; in RegisterPlugin()
271 instance.description = description; in RegisterPlugin()
272 instance.create_callback = create_callback; in RegisterPlugin()
274 GetABIInstances ().push_back (instance); in RegisterPlugin()
373 DisassemblerInstance instance; in RegisterPlugin() local
375 instance.name = name; in RegisterPlugin()
377 instance.description = description; in RegisterPlugin()
378 instance.create_callback = create_callback; in RegisterPlugin()
380 GetDisassemblerInstances ().push_back (instance); in RegisterPlugin()
[all …]
/external/mesa3d/src/gallium/drivers/svga/svgadump/
Dsvga_dump.py52 def __init__(self, instance = '', decl = None): argument
54 self._instance = instance
84 def dump_decl(instance, decl): argument
85 dumper = decl_dumper_t(instance, decl)
91 def __init__(self, instance, type_): argument
93 self.instance = instance
97 return type_dumper_t(self.instance, self.type)
146 dump_type(self.instance + '[%i]' % i, type_traits.base_type(self.type))
154 dump_decl(self.instance, decl)
157 …int ' _debug_printf("\\t\\t%s = %s\\n", %s);' % (self.instance, format, "(*cmd)" + self.instance)
[all …]
/external/chromium-trace/trace-viewer/tracing/tracing/ui/extras/tcmalloc/
Dtcmalloc_instance_view.css6 .tr-ui-e-tcmalloc-instance-view .subhead {
11 .tr-ui-e-tcmalloc-instance-view #args {
15 .tr-ui-e-tcmalloc-instance-view #snapshots > * {
19 .tr-ui-e-tcmalloc-instance-view {
23 .tr-ui-e-tcmalloc-instance-view * {
27 .tr-ui-e-tcmalloc-instance-view .title {
33 .tr-ui-e-tcmalloc-instance-view td,
34 .tr-ui-e-tcmalloc-instance-view th {
/external/mockito/cglib-and-asm/src/org/mockito/cglib/beans/
DBulkBean.java118 BulkBean instance = (BulkBean)ReflectUtils.newInstance(type); in firstInstance() local
119 instance.target = target; in firstInstance()
122 instance.getters = new String[length]; in firstInstance()
123 System.arraycopy(getters, 0, instance.getters, 0, length); in firstInstance()
125 instance.setters = new String[length]; in firstInstance()
126 System.arraycopy(setters, 0, instance.setters, 0, length); in firstInstance()
128 instance.types = new Class[types.length]; in firstInstance()
129 System.arraycopy(types, 0, instance.types, 0, types.length); in firstInstance()
131 return instance; in firstInstance()
134 protected Object nextInstance(Object instance) { in nextInstance() argument
[all …]
/external/clang/test/CodeGenCXX/
Dmicrosoft-abi-methods.cpp17 C instance; in call_simple_method() local
19 instance.simple_method(); in call_simple_method()
30 C instance; in call_cdecl_method() local
31 instance.cdecl_method(); in call_cdecl_method()
42 C instance; in call_vararg_method() local
43 instance.vararg_method("Hello"); in call_vararg_method()
/external/webrtc/src/system_wrappers/interface/
Dstatic_instance.h40 static T* volatile instance = NULL; in GetStaticInstance() local
70 instance = T::CreateInstance(); in GetStaticInstance()
72 T* old_instance = instance; in GetStaticInstance()
73 instance = NULL; in GetStaticInstance()
102 if (instance == NULL) { in GetStaticInstance()
131 InterlockedExchangePointer(reinterpret_cast<void* volatile*>(&instance), in GetStaticInstance()
141 reinterpret_cast<void* volatile*>(&instance), NULL)); in GetStaticInstance()
148 return instance; in GetStaticInstance()
/external/libxml2/
Dcheck-xsddata-test-suite.py61 instance = node.prop("dtd")
62 if instance == None:
63 instance = ""
67 instance = instance + child.serialize()
72 doc = libxml2.parseDoc(instance)
78 log.write(instance)
100 log.write(instance)
114 instance = node.prop("dtd")
115 if instance == None:
116 instance = ""
[all …]
Dcheck-relaxng-test-suite2.py62 instance = node.prop("dtd")
63 if instance == None:
64 instance = ""
68 instance = instance + child.serialize()
73 doc = libxml2.parseDoc(instance)
79 log.write(instance)
101 log.write(instance)
115 instance = node.prop("dtd")
116 if instance == None:
117 instance = ""
[all …]
/external/clang/test/Index/skip-parsed-bodies/
Dcompile_commands.json23 // CHECK: [indexDeclaration]: kind: c++-instance-method | name: method_decl | {{.*}} | isRedec…
24 // CHECK-NEXT: [indexDeclaration]: kind: c++-instance-method | name: method_def1 | {{.*}} | isRedec…
26 // CHECK-NEXT: [indexDeclaration]: kind: c++-instance-method | name: method_def2 | {{.*}} | isRedec…
27 // CHECK-NEXT: [indexDeclaration]: kind: c++-instance-method | name: method_def2 | {{.*}} | isRedec…
38 // CHECK: [indexDeclaration]: kind: c++-instance-method | name: method_decl | {{.*}} | isRedec…
39 // CHECK-NEXT: [indexDeclaration]: kind: c++-instance-method | name: method_def1 | {{.*}} | isRedec…
40 // CHECK-NEXT: [indexDeclaration]: kind: c++-instance-method | name: method_def2 | {{.*}} | isRedec…
41 // CHECK-NEXT: [indexDeclaration]: kind: c++-instance-method | name: method_def2 | {{.*}} | isConta…
48 // CHECK: [indexDeclaration]: kind: c++-instance-method | name: tsmeth | {{.*}} | isRedecl: 0 …
57 // CHECK: [indexDeclaration]: kind: c++-instance-method | name: method_decl | {{.*}} | isRedec…
[all …]
/external/clang/test/SemaObjC/
Divar-lookup.m46 return a + b; // expected-error{{instance variable 'a' accessed in class method}} \
47 // expected-error{{instance variable 'b' accessed in class method}}
60 int IVAR; // expected-error {{instance variable is already declared}}
67 int IVAR; // expected-error {{instance variable is already declared}}
73 int IVAR; // expected-error {{instance variable is already declared}}
74 int PIVAR; // expected-error {{instance variable is already declared}}
80 int IVAR; // expected-error {{instance variable is already declared}}
146 // expected-error {{instance variable is already declared}}
151 int d; // expected-error {{instance variable is already declared}}
152 NSString *e_strong; // expected-error {{instance variable is already declared}}
[all …]
Divar-access-tests.m33 access = s->private; // expected-error {{instance variable 'private' is private}}
36 access = m->private; // expected-error {{instance variable 'private' is private}}
49 access = s->private; // expected-error {{instance variable 'private' is private}}
52 access = m->private; // expected-error {{instance variable 'private' is private}}
64 access = s->private; // expected-error {{instance variable 'private' is private}}
65 access = s->protected; // expected-error {{instance variable 'protected' is protected}}
67 access = m->private; // expected-error {{instance variable 'private' is private}}
68 access = m->protected; // expected-error {{instance variable 'protected' is protected}}
76 access = s->private; // expected-error {{instance variable 'private' is private}}
77 access = s->protected; // expected-error {{instance variable 'protected' is protected}}
/external/robolectric/src/main/java/com/xtremelabs/robolectric/internal/
DAppSingletonizer.java20 T instance = get(shadowApplication); in getInstance() local
21 if (instance == null) { in getInstance()
22 instance = createInstance(applicationContext); in getInstance()
23 set(shadowApplication, instance); in getInstance()
25 return instance; in getInstance()
30 protected abstract void set(ShadowApplication shadowApplication, T instance); in set() argument

12345678910>>...40