| /external/kernel-headers/original/uapi/linux/ |
| qrtr.h | 37 __le32 instance; member in struct:qrtr_ctrl_pkt::__anon25938::__anon25939
|
| /external/libchrome/base/ |
| lazy_instance.h | 10 // static base::NoDestructor<Factory> instance; 11 // return *instance; 15 // The LazyInstance<Type, Traits> class manages a single instance of Type, 20 // and Pointer() will always return the same, completely initialized instance. 21 // When the instance is constructed it is registered with AtExitManager. The 31 // will manage a unique instance. It also preallocates the space for Type, as 32 // to avoid allocating the Type instance on the heap. This may help with the 33 // performance of creating the instance, and reducing heap fragmentation. This 64 static Type* New(void* instance) { 65 DCHECK_EQ(reinterpret_cast<uintptr_t>(instance) & (alignof(Type) - 1), 0u) 193 Type* instance() { function in class:base::LazyInstance [all...] |
| /external/libchrome/mojo/public/cpp/bindings/lib/ |
| associated_interface_ptr_state.h | 105 Proxy* instance() { function in class:mojo::internal::AssociatedInterfacePtrState
|
| /external/libphonenumber/geocoder/src/com/google/i18n/phonenumbers/geocoding/ |
| PhoneNumberOfflineGeocoder.java | 34 private static PhoneNumberOfflineGeocoder instance = null; field in class:PhoneNumberOfflineGeocoder 47 * Gets a {@link PhoneNumberOfflineGeocoder} instance to carry out international phone number 51 * this method multiple times will only result in one instance being created. 53 * @return a {@link PhoneNumberOfflineGeocoder} instance 56 if (instance == null) { 57 instance = new PhoneNumberOfflineGeocoder(MAPPING_DATA_DIRECTORY); 59 return instance;
|
| /external/libphonenumber/repackaged/geocoder/src/com/android/i18n/phonenumbers/geocoding/ |
| PhoneNumberOfflineGeocoder.java | 36 private static PhoneNumberOfflineGeocoder instance = null; field in class:PhoneNumberOfflineGeocoder 49 * Gets a {@link PhoneNumberOfflineGeocoder} instance to carry out international phone number 53 * this method multiple times will only result in one instance being created. 55 * @return a {@link PhoneNumberOfflineGeocoder} instance 59 if (instance == null) { 60 instance = new PhoneNumberOfflineGeocoder(MAPPING_DATA_DIRECTORY); 62 return instance;
|
| /external/libxcam/modules/ocl/ |
| cl_device.cpp | 33 CLDevice::instance () function in class:XCam::CLDevice
|
| /external/mesa3d/src/intel/vulkan/tests/ |
| block_pool_no_free.c | 112 struct anv_instance instance; local 114 .instance = &instance,
|
| state_pool_no_free.c | 57 struct anv_instance instance; local 59 .instance = &instance,
|
| /external/mockito/src/main/java/org/mockito/internal/configuration/ |
| SpyAnnotationEngine.java | 55 Object instance; local 57 instance = field.get(testInstance); 58 if (MockUtil.isMock(instance)) { 59 // instance has been spied earlier 61 Mockito.reset(instance); 62 } else if (instance != null) { 63 field.set(testInstance, spyInstance(field, instance)); 74 private static Object spyInstance(Field field, Object instance) { 75 return Mockito.mock(instance.getClass(), 76 withSettings().spiedInstance(instance) [all...] |
| /external/mockito/src/main/java/org/mockito/internal/util/reflection/ |
| InstanceField.java | 15 * Represents an accessible instance field. 17 * Contains the instance reference on which the field can be read adn write. 21 private final Object instance; field in class:InstanceField 28 * the field belong to this instance class. 29 * @param instance The instance from which the field shall be accessed. 31 public InstanceField(Field field, Object instance) { 33 this.instance = Checks.checkNotNull(instance, "instance"); [all...] |
| /external/mockito/src/test/java/org/mockito/internal/creation/instance/ |
| ConstructorInstantiatorTest.java | 5 package org.mockito.internal.creation.instance; 68 @Test(expected = org.mockito.creation.instance.InstantiationException.class) 78 } catch (org.mockito.creation.instance.InstantiationException e) { 79 assertThat(e).hasMessageContaining("Unable to create instance of 'SomeClass2'.\n" +
|
| /external/mockito/src/test/java/org/mockito/internal/util/reflection/ |
| FieldsTest.java | 43 ValuedFields instance = new ValuedFields(); local 45 assertThat(Fields.declaredFieldsOf(instance).filter(syntheticField()).instanceFields()) 46 .containsOnly(new InstanceField(field("a", instance), instance), 47 new InstanceField(field("b", instance), instance) 51 private Field field(String name, Object instance) throws NoSuchFieldException { 52 return instance.getClass().getDeclaredField(name);
|
| /external/mockito/src/test/java/org/mockitoutil/ |
| SimplePerRealmReloadingClassLoader.java | 90 Object instance = this.loadClass(callableCalledInClassLoaderRealm).getConstructor().newInstance(); local 91 if (instance instanceof Callable) { 92 Callable<?> callableInRealm = (Callable<?>) instance; 106 Object instance = this.loadClass(callableCalledInClassLoaderRealm).getConstructor(argTypes).newInstance(args); local 107 if (instance instanceof Callable) { 108 Callable<?> callableInRealm = (Callable<?>) instance;
|
| /external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/internal/huc/ |
| URLEncodingTest.java | 132 Internal.instance.setCache(client, new InternalCache() {
|
| /external/perfetto/src/ipc/ |
| host_impl.h | 71 std::unique_ptr<Service> instance; member in struct:perfetto::ipc::HostImpl::ExposedService
|
| /external/protobuf/javanano/src/device/main/java/com/google/protobuf/nano/android/ |
| ParcelableMessageNanoCreator.java | 66 Object instance = clazz.getConstructor().newInstance(); local 67 proto = (T) instance;
|
| /external/python/cpython3/Lib/unittest/test/testmock/ |
| testcallable.py | 62 instance = mock() 65 self.assertNotCallable(instance) 66 self.assertRaises(TypeError, instance) 74 instance = mock() 77 self.assertNotCallable(instance) 78 self.assertRaises(TypeError, instance) 113 instance = mock() variable in class:TestCallable.test_patch_spec_callable_class.Multi 116 self.assertTrue(is_instance(instance, MagicMock)) 118 self.assertRaises(AttributeError, getattr, instance, 121 result = instance() [all...] |
| /external/python/mock/mock/tests/ |
| testcallable.py | 62 instance = mock() 65 self.assertNotCallable(instance) 66 self.assertRaises(TypeError, instance) 74 instance = mock() 77 self.assertNotCallable(instance) 78 self.assertRaises(TypeError, instance) 120 instance = mock() variable in class:TestCallable.test_patch_spec_callable_class.OldStyleSub 123 self.assertTrue(is_instance(instance, MagicMock)) 125 self.assertRaises(AttributeError, getattr, instance, 128 result = instance() [all...] |
| /external/robolectric-shadows/shadows/httpclient/src/main/java/org/robolectric/shadows/httpclient/ |
| FakeHttp.java | 12 private static FakeHttpLayer instance = new FakeHttpLayer(); field in class:FakeHttp 167 return instance; 187 instance = new FakeHttpLayer();
|
| /external/sfntly/cpp/src/sfntly/ |
| font_factory.cc | 29 FontFactoryPtr instance = new FontFactory(); local 30 return instance.Detach();
|
| /external/syzkaller/pkg/repro/ |
| repro.go | 15 instancePkg "github.com/google/syzkaller/pkg/instance" 47 instances chan *instance 53 type instance struct { type 54 *vm.Instance 84 instances: make(chan *instance, len(vmIndexes)), 96 var inst *instance 126 inst = &instance{ 127 Instance: vmInst, 550 return ctx.testImpl(inst.Instance, command, duration) 582 return ctx.testImpl(inst.Instance, bin, duration [all...] |
| /external/syzkaller/vm/adb/ |
| adb.go | 47 type instance struct { type 89 func (pool *Pool) Create(workdir string, index int) (vmimpl.Instance, error) { 90 inst := &instance{ 232 func (inst *instance) Forward(port int) (string, error) { 244 func (inst *instance) adb(args ...string) ([]byte, error) { 256 func (inst *instance) repair() error { 280 func (inst *instance) waitForSSH() error { 290 return fmt.Errorf("instance is dead and unrepairable: %v", err) 293 func (inst *instance) checkBatteryLevel() error { 322 func (inst *instance) getBatteryLevel(numRetry int) (int, error) [all...] |
| /external/tensorflow/tensorflow/compiler/xla/client/ |
| client_library.cc | 112 auto instance = absl::make_unique<LocalInstance>(); local 113 TF_ASSIGN_OR_RETURN(instance->service, 115 instance->client = absl::make_unique<LocalClient>(instance->service.get()); 116 LocalClient* cl = instance->client.get(); 119 std::make_pair(platform->id(), std::move(instance))); 152 auto instance = absl::make_unique<CompileOnlyInstance>(); local 153 TF_ASSIGN_OR_RETURN(instance->service, 155 instance->client = 156 absl::make_unique<CompileOnlyClient>(instance->service.get()) [all...] |
| /external/tensorflow/tensorflow/core/common_runtime/ |
| process_state.cc | 36 static ProcessState* instance = new ProcessState; local 39 AllocatorFactoryRegistry::singleton()->process_state_ = instance; 42 return instance;
|
| /external/tensorflow/tensorflow/core/kernels/ |
| gpu_utils.h | 160 static AutoTuneType* instance = new AutoTuneType(Group::name()); local 161 return instance;
|