/external/mockito/src/org/mockito/internal/configuration/ |
SpyAnnotationEngine.java | 51 Object instance = null;
local 54 instance = report.fieldInstance();
59 if (new MockUtil().isMock(instance)) {
60 // instance has been spied earlier
62 Mockito.reset(instance);
65 field.set(testInstance, Mockito.mock(instance.getClass(), withSettings()
66 .spiedInstance(instance)
|
/frameworks/base/core/java/android/bluetooth/ |
BluetoothGattDescriptor.java | 97 * Instance ID for this descriptor. 140 int instance, int permissions) { 141 initDescriptor(characteristic, uuid, instance, permissions); 147 public BluetoothGattDescriptor(UUID uuid, int instance, int permissions) { 148 initDescriptor(null, uuid, instance, permissions); 152 int instance, int permissions) { 155 mInstance = instance; 215 * Returns the instance ID for this descriptor. 218 * the instance ID is used to distuinguish between descriptors. 222 * @return Instance ID of this descripto [all...] |
/frameworks/support/compat/java/android/support/v4/hardware/display/ |
DisplayManagerCompat.java | 51 * Gets an instance of the display manager given the context. 55 DisplayManagerCompat instance = sInstances.get(context); local 56 if (instance == null) { 59 instance = new JellybeanMr1Impl(context); 61 instance = new LegacyImpl(context); 63 sInstances.put(context, instance); 65 return instance;
|
/external/autotest/server/site_tests/network_WiFi_VerifyRouter/ |
network_WiFi_VerifyRouter.py | 75 for instance in range(2): 77 (bitmap, instance, channel)) 81 ssid=self.context.router.get_ssid(instance=instance)) 85 instance, bitmap, signal_level) 88 (instance, bitmap, channel): 94 self.context.router.get_ssid(instance=instance))
|
/external/guice/extensions/grapher/src/com/google/inject/grapher/ |
ShortNameFactory.java | 74 public String getInstanceName(Object instance) { 75 if (instance instanceof ProviderMethod) { 76 return getMethodString(((ProviderMethod<?>) instance).getMethod()); 79 if (instance instanceof CharSequence) { 80 return "\"" + instance + "\""; 84 if (instance.getClass().getMethod("toString").getDeclaringClass().equals(Object.class)) { 85 return stripPackages(instance.getClass().getName()); 93 return instance.toString(); 98 * a {@link StackTraceElement} for when the binding is made to the instance,
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/test/validation/java8/ |
LambdaExpressionsTest.java | 29 final Object instance = targetClass.newInstance(); local 30 ((Runnable) instance).run();
|
/external/libxml2/python/tests/ |
dtdvalid.py | 9 instance="""<?xml version="1.0"?> 14 doc = libxml2.parseDoc(instance)
|
tstmem.py | 13 instance="""<?xml version="1.0"?> 19 doc = libxml2.parseDoc(instance)
|
/external/testng/src/main/java/org/testng/internal/ |
PropertyUtils.java | 21 public void setProperty(Object instance, String name, String value) { 22 if (instance == null) { 23 LOGGER.warn("Cannot set property " + name + " with value " + value + ". The target instance is null"); 27 Class propClass = getPropertyType(instance.getClass(), name); 35 setPropertyRealValue(instance, name, realValue); 40 LOGGER.warn("Cannot retrieve property class for " + propertyName + ". Target instance class is null"); 67 public void setPropertyRealValue(Object instance, String name, Object value) { 68 if (instance == null) { 69 LOGGER.warn("Cannot set property " + name + " with value " + value + ". Targe instance is null"); 73 PropertyDescriptor propDesc = getPropertyDescriptor(instance.getClass(), name) [all...] |
MethodInvocationHelper.java | 40 protected static Object invokeMethod(Method thisMethod, Object instance, Object[] parameters)
42 Utils.checkInstanceOrStatic(instance, thisMethod);
45 // If the instance has a different classloader, its class won't match the
47 if (instance == null || !thisMethod.getDeclaringClass().isAssignableFrom(instance.getClass())) {
53 Class<?> clazz = instance.getClass();
70 if (thisMethod.getDeclaringClass().getName().equals(instance.getClass().getName())) {
75 + " on this instance of " + instance.getClass() + " due to class mismatch");
86 return thisMethod.invoke(instance, parameters); [all...] |
/libcore/luni/src/main/java/libcore/net/event/ |
NetworkEventDispatcher.java | 27 private static final NetworkEventDispatcher instance = new NetworkEventDispatcher(); field in class:NetworkEventDispatcher 33 * Returns the shared {@link NetworkEventDispatcher} instance. 36 return instance;
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
ProxyTest.java | 122 ThrowsIOException instance = (ThrowsIOException) Proxy.newProxyInstance(loader, local 126 instance.run(new EOFException()); 131 instance.run(new IOException()); 136 instance.run(new Exception()); 143 ThrowsEOFException instance = (ThrowsEOFException) Proxy.newProxyInstance(loader, local 147 instance.run(new EOFException()); 152 instance.run(new SocketException()); 159 ThrowsEOFException instance = (ThrowsEOFException) Proxy.newProxyInstance(loader, local 163 instance.run(new EOFException()); 168 instance.run(new SocketException()) 180 ThrowsIOException instance = (ThrowsIOException) Proxy.newProxyInstance(loader, local 237 ExtendsExtendsDeclaresFiveMethods instance = (ExtendsExtendsDeclaresFiveMethods) local 253 Echo instance = (Echo) Proxy.newProxyInstance(loader, new Class[]{Echo.class}, handler); local 266 Echo instance = (Echo) Proxy.newProxyInstance(loader, new Class[]{Echo.class}, handler); local 276 Echo instance = (Echo) Proxy.newProxyInstance(loader, new Class[]{Echo.class}, handler); local [all...] |
/libcore/ojluni/src/main/java/java/security/cert/ |
CertPathHelperImpl.java | 53 if (CertPathHelper.instance == null) { 54 CertPathHelper.instance = new CertPathHelperImpl();
|
/external/guice/core/src/com/google/inject/util/ |
Providers.java | 45 * Returns a provider which always provides {@code instance}. This should not 49 * @param instance the instance that should always be provided. This is also 53 public static <T> Provider<T> of(final T instance) { 54 return new ConstantProvider<T>(instance); 58 private final T instance; field in class:Providers.ConstantProvider 60 private ConstantProvider(T instance) { 61 this.instance = instance; 65 return instance; [all...] |
/external/libchrome/base/memory/ |
singleton_unittest.cc | 41 Init5Singleton* instance = new Init5Singleton(); local 42 instance->value_ = 5; 43 return instance; 57 static void Delete(Type* instance) { 58 if (instance->callback_) 59 (instance->callback_)(); 60 DefaultSingletonTraits<Type>::Delete(instance); 107 static void Delete(CallbackSingletonWithStaticTrait* instance) { 108 if (instance->callback_) 109 (instance->callback_)() [all...] |
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/ |
Basic3DSceneTest.java | 75 ModelInstance instance = new ModelInstance(model, id);
local 76 Node node = instance.getNode(id);
78 instance.transform.set(node.globalTransform);
82 instance.calculateTransforms();
85 space = instance;
89 instances.add(instance);
92 ship = instance;
94 blocks.add(instance);
95 else if (id.startsWith("invader")) invaders.add(instance);
110 for (ModelInstance instance : instances) [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/cglib/beans/ |
BulkBean.java | 118 BulkBean instance = (BulkBean)ReflectUtils.newInstance(type); local 119 instance.target = target; 122 instance.getters = new String[length]; 123 System.arraycopy(getters, 0, instance.getters, 0, length); 125 instance.setters = new String[length]; 126 System.arraycopy(setters, 0, instance.setters, 0, length); 128 instance.types = new Class[types.length]; 129 System.arraycopy(types, 0, instance.types, 0, types.length); 131 return instance; 134 protected Object nextInstance(Object instance) { [all...] |
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/ |
interaction_based.hpp | 36 ::boost::itest::manager::instance().exception_point( BOOST_TEST_L(__FILE__), __LINE__, description ) 44 ::boost::itest::manager::instance().decision_point( BOOST_TEST_L(__FILE__), __LINE__ ) 68 ::boost::itest::manager::instance().generic_data_flow( v ) 76 ::boost::itest::manager::instance().generic_return<type>( default_value ) 101 // instance access 102 static manager& instance() { return *instance_ptr(); } function in class:boost::itest::manager 164 m_scope_index = manager::instance().enter_scope( file, line_num, scope_name ); 168 manager::instance().leave_scope( m_scope_index ); 214 ::boost::itest::manager::instance().allocated( l.m_file_name, l.m_line_num, res, s ); 229 ::boost::itest::manager::instance().allocated( l.m_file_name, l.m_line_num, res, s ) [all...] |
/external/v8/src/wasm/ |
wasm-module.cc | 192 void RelocateInstanceCode(WasmModuleInstance* instance) { 193 for (uint32_t i = 0; i < instance->function_code.size(); ++i) { 194 Handle<Code> function = instance->function_code[i]; 200 nullptr, instance->mem_start, GetMinModuleMemSize(instance->module), 201 static_cast<uint32_t>(instance->mem_size)); 206 // Set the memory for a module instance to be the {memory} array buffer. 207 void SetMemory(WasmModuleInstance* instance, Handle<JSArrayBuffer> memory) { 209 instance->mem_start = reinterpret_cast<byte*>(memory->backing_store()); 210 instance->mem_size = memory->byte_length()->Number() [all...] |
/external/deqp/framework/platform/android/ |
tcuAndroidNativeActivity.cpp | 31 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onStart(); 36 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onResume(); 41 return static_cast<tcu::Android::NativeActivity*>(activity->instance)->onSaveInstanceState(outSize); 46 return static_cast<tcu::Android::NativeActivity*>(activity->instance)->onPause(); 51 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onStop(); 56 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onDestroy(); 61 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onWindowFocusChanged(hasFocus); 66 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onNativeWindowCreated(window); 71 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onNativeWindowResized(window); 76 static_cast<tcu::Android::NativeActivity*>(activity->instance)->onNativeWindowRedrawNeeded(window) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/bytecode/ |
ShadowWrangler.java | 87 public Object methodInvoked(Class clazz, String methodName, Object instance, String[] paramTypes, Object[] params) throws Throwable { 88 InvocationPlan invocationPlan = new InvocationPlan(clazz, methodName, instance, paramTypes); 157 public Object shadowFor(Object instance) { 158 Field field = getShadowField(instance); 159 Object shadow = readField(instance, field); 165 String shadowClassName = getShadowClassName(instance.getClass()); 168 System.out.println("creating new " + shadowClassName + " as shadow for " + instance.getClass().getName()); 170 Class<?> shadowClass = loadClass(shadowClassName, instance.getClass().getClassLoader()); 171 Constructor<?> constructor = findConstructor(instance, shadowClass); 173 shadow = constructor.newInstance(instance); 290 private Object instance; field in class:ShadowWrangler.InvocationPlan [all...] |
/packages/apps/Camera2/src/com/android/camera/debug/ |
Log.java | 70 public static void d(Tag tag, Object instance, String msg) { 72 android.util.Log.d(tag.toString(), LogUtil.addTags(instance, msg)); 76 public static void d(Tag tag, Object instance, String msg, String tags) { 78 android.util.Log.d(tag.toString(), LogUtil.addTags(instance, msg, tags)); 94 public static void e(Tag tag, Object instance, String msg) { 96 android.util.Log.e(tag.toString(), LogUtil.addTags(instance, msg)); 100 public static void e(Tag tag, Object instance, String msg, String tags) { 102 android.util.Log.e(tag.toString(), LogUtil.addTags(instance, msg, tags)); 118 public static void i(Tag tag, Object instance, String msg) { 120 android.util.Log.i(tag.toString(), LogUtil.addTags(instance, msg)) [all...] |
/external/autotest/server/site_tests/network_WiFi_RoamSuspendSSID/ |
network_WiFi_RoamSuspendSSID.py | 49 get_client_config(self.context.router.get_ssid(instance=0), 52 get_client_config(self.context.router.get_ssid(instance=1), 59 self.context.router.deconfig_aps(instance=1) 63 self.context.router.get_ssid(instance=0),
|