Home
last modified time | relevance | path

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

123456

/frameworks/base/core/java/android/gesture/
DLearner.java32 void addInstance(Instance instance) { in addInstance() argument
33 mInstances.add(instance); in addInstance()
54 Instance instance = instances.get(i); in removeInstance() local
55 if (id == instance.id) { in removeInstance()
56 instances.remove(instance); in removeInstance()
73 final Instance instance = instances.get(i); in removeInstances() local
75 if ((instance.label == null && name == null) in removeInstances()
76 || (instance.label != null && instance.label.equals(name))) { in removeInstances()
77 toDelete.add(instance); in removeInstances()
DInstance.java74 Instance instance; in createInstance() local
77 instance = new Instance(gesture.getID(), pts, label); in createInstance()
78 instance.normalize(); in createInstance()
81 instance = new Instance(gesture.getID(), pts, label); in createInstance()
83 return instance; in createInstance()
/frameworks/av/media/libstagefright/omx/
DOMX.cpp49 sp<OMXNodeInstance> instance; in binderDied() local
62 instance = mLiveNodes.editValueAt(index); in binderDied()
66 instance->onObserverDied(); in binderDied()
108 sp<OMXNodeInstance> instance = new OMXNodeInstance(this, observer, name); in allocateNode() local
113 instance.get(), &handle); in allocateNode()
120 instance->setHandle(handle); in allocateNode()
132 instance->setQuirks(quirks); in allocateNode()
135 mLiveNodes.add(IInterface::asBinder(observer), instance); in allocateNode()
138 *omxNode = instance; in allocateNode()
143 status_t OMX::freeNode(const sp<OMXNodeInstance> &instance) { in freeNode() argument
[all …]
/frameworks/wilhelm/src/
Dsync.cpp64 IObject *instance = (IObject *) thiz->mEngine.mInstances[i]; in sync_start() local
66 if (NULL == instance) { in sync_start()
70 object_lock_exclusive(instance); in sync_start()
71 unsigned attributesMask = instance->mAttributesMask; in sync_start()
72 instance->mAttributesMask = 0; in sync_start()
74 switch (IObjectToObjectID(instance)) { in sync_start()
77 object_unlock_exclusive(instance); in sync_start()
80 CAudioPlayer *audioPlayer = (CAudioPlayer *) instance; in sync_start()
87 object_unlock_exclusive(instance); in sync_start()
/frameworks/native/vulkan/libvulkan/
Ddebug_report.cpp118 VkInstance instance, in CreateDebugReportCallbackEXT() argument
122 const auto& driver = GetData(instance).driver; in CreateDebugReportCallbackEXT()
126 instance, create_info, allocator, &driver_handle); in CreateDebugReportCallbackEXT()
131 auto& callbacks = GetData(instance).debug_report_callbacks; in CreateDebugReportCallbackEXT()
134 (allocator) ? *allocator : GetData(instance).allocator); in CreateDebugReportCallbackEXT()
137 driver.DestroyDebugReportCallbackEXT(instance, driver_handle, in CreateDebugReportCallbackEXT()
149 void DestroyDebugReportCallbackEXT(VkInstance instance, in DestroyDebugReportCallbackEXT() argument
155 auto& callbacks = GetData(instance).debug_report_callbacks; in DestroyDebugReportCallbackEXT()
160 node, (allocator) ? *allocator : GetData(instance).allocator); in DestroyDebugReportCallbackEXT()
163 GetData(instance).driver.DestroyDebugReportCallbackEXT( in DestroyDebugReportCallbackEXT()
[all …]
Ddriver_gen.cpp413 bool InitDriverTable(VkInstance instance, in InitDriverTable() argument
416 auto& data = GetData(instance); in InitDriverTable()
420 INIT_PROC(true, instance, DestroyInstance); in InitDriverTable()
421 INIT_PROC(true, instance, EnumeratePhysicalDevices); in InitDriverTable()
422 INIT_PROC(true, instance, GetInstanceProcAddr); in InitDriverTable()
423 INIT_PROC(true, instance, GetPhysicalDeviceProperties); in InitDriverTable()
424 INIT_PROC(true, instance, CreateDevice); in InitDriverTable()
425 INIT_PROC(true, instance, EnumerateDeviceExtensionProperties); in InitDriverTable()
426 INIT_PROC_EXT(EXT_debug_report, true, instance, CreateDebugReportCallbackEXT); in InitDriverTable()
427 INIT_PROC_EXT(EXT_debug_report, true, instance, DestroyDebugReportCallbackEXT); in InitDriverTable()
[all …]
Ddriver.h117 VKAPI_ATTR PFN_vkVoidFunction GetInstanceProcAddr(VkInstance instance, const char* pName);
124 VKAPI_ATTR void DestroyInstance(VkInstance instance, const VkAllocationCallbacks* pAllocator);
128 VKAPI_ATTR VkResult EnumeratePhysicalDevices(VkInstance instance, uint32_t* pPhysicalDeviceCount, V…
173 inline bool SetData(VkInstance instance, const InstanceData& data) { in SetData() argument
174 return SetDataInternal(instance, &data); in SetData()
202 inline InstanceData& GetData(VkInstance instance) { in GetData() argument
203 return *reinterpret_cast<InstanceData*>(GetDataInternal(instance)); in GetData()
Dstubhal.cpp69 VkInstance* instance) { in CreateInstance() argument
75 *instance = reinterpret_cast<VkInstance>(&g_instances[i]); in CreateInstance()
83 VKAPI_ATTR void DestroyInstance(VkInstance instance, in DestroyInstance() argument
87 reinterpret_cast<hwvulkan_dispatch_t*>(instance) - &g_instances[0]; in DestroyInstance()
/frameworks/av/media/libstagefright/omx/1.0/
DOmx.cpp99 sp<OMXNodeInstance> instance = new OMXNodeInstance( in allocateNode() local
105 instance.get(), &handle); in allocateNode()
115 instance->setHandle(handle); in allocateNode()
127 instance->setQuirks(quirks); in allocateNode()
130 mLiveNodes.add(observer.get(), instance); in allocateNode()
132 mNode2Observer.add(instance.get(), observer.get()); in allocateNode()
134 _hidl_cb(toStatus(OK), new TWOmxNode(instance)); in allocateNode()
159 sp<OMXNodeInstance> instance; in serviceDied() local
171 instance = mLiveNodes.editValueAt(index); in serviceDied()
173 mNode2Observer.removeItem(instance.get()); in serviceDied()
[all …]
/frameworks/support/compat/java/android/support/v4/util/
DPools.java66 public boolean release(T instance); in release() argument
102 T instance = (T) mPool[lastPooledIndex]; in acquire() local
105 return instance; in acquire()
111 public boolean release(T instance) { in release() argument
112 if (isInPool(instance)) { in release()
116 mPool[mPoolSize] = instance; in release()
123 private boolean isInPool(T instance) { in isInPool() argument
125 if (mPool[i] == instance) { in isInPool()
/frameworks/base/core/java/android/util/
DPools.java65 public boolean release(T instance); in release() argument
101 T instance = (T) mPool[lastPooledIndex]; in acquire() local
104 return instance; in acquire()
110 public boolean release(T instance) { in release() argument
111 if (isInPool(instance)) { in release()
115 mPool[mPoolSize] = instance; in release()
122 private boolean isInPool(T instance) { in isInPool() argument
124 if (mPool[i] == instance) { in isInPool()
/frameworks/base/packages/Osu/src/com/android/hotspot2/pps/
DPolicy.java44 for (OMANode instance : rpNode.getChildren()) { in Policy()
45 if (instance.isLeaf()) { in Policy()
49 mPreferredRoamingPartners.add(new PreferredRoamingPartner(instance)); in Policy()
58 for (OMANode instance : bhtNode.getChildren()) { in Policy()
59 if (instance.isLeaf()) { in Policy()
63 mMinBackhaulThresholds.add(new MinBackhaul(instance)); in Policy()
74 for (OMANode instance : sxNode.getChildren()) { in Policy()
75 if (instance.isLeaf()) { in Policy()
78 mSPExclusionList.add(MOManager.getString(instance, TAG_SSID)); in Policy()
87 for (OMANode instance : rptNode.getChildren()) { in Policy()
[all …]
/frameworks/base/core/java/android/text/method/
DDateKeyListener.java95 DateKeyListener instance; in getInstance() local
97 instance = sInstanceCache.get(locale); in getInstance()
98 if (instance == null) { in getInstance()
99 instance = new DateKeyListener(locale); in getInstance()
100 sInstanceCache.put(locale, instance); in getInstance()
103 return instance; in getInstance()
DTimeKeyListener.java107 TimeKeyListener instance; in getInstance() local
109 instance = sInstanceCache.get(locale); in getInstance()
110 if (instance == null) { in getInstance()
111 instance = new TimeKeyListener(locale); in getInstance()
112 sInstanceCache.put(locale, instance); in getInstance()
115 return instance; in getInstance()
DDateTimeKeyListener.java107 DateTimeKeyListener instance; in getInstance() local
109 instance = sInstanceCache.get(locale); in getInstance()
110 if (instance == null) { in getInstance()
111 instance = new DateTimeKeyListener(locale); in getInstance()
112 sInstanceCache.put(locale, instance); in getInstance()
115 return instance; in getInstance()
/frameworks/support/compat/java/android/support/v4/hardware/display/
DDisplayManagerCompat.java58 DisplayManagerCompat instance = sInstances.get(context); in getInstance() local
59 if (instance == null) { in getInstance()
61 instance = new DisplayManagerCompatApi17Impl(context); in getInstance()
63 instance = new DisplayManagerCompatApi14Impl(context); in getInstance()
65 sInstances.put(context, instance); in getInstance()
67 return instance; in getInstance()
/frameworks/base/core/java/android/bluetooth/
DBluetoothGattDescriptor.java140 int instance, int permissions) { in BluetoothGattDescriptor() argument
141 initDescriptor(characteristic, uuid, instance, permissions); in BluetoothGattDescriptor()
147 public BluetoothGattDescriptor(UUID uuid, int instance, int permissions) { in BluetoothGattDescriptor() argument
148 initDescriptor(null, uuid, instance, permissions); in BluetoothGattDescriptor()
152 int instance, int permissions) { in initDescriptor() argument
155 mInstance = instance; in initDescriptor()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtypeArray.java134 InputMethodSubtype[] instance = mInstance; in get() local
135 if (instance == null) { in get()
137 instance = mInstance; in get()
138 if (instance == null) { in get()
145 instance = unmarshall(decompressedData); in get()
148 instance = new InputMethodSubtype[mCount]; in get()
150 mInstance = instance; in get()
154 return instance[index]; in get()
/frameworks/support/compat/java/android/support/v4/os/
DLocaleListCompat.java183 LocaleListCompat instance = new LocaleListCompat(); in wrap() local
185 instance.setLocaleList((LocaleList) object); in wrap()
188 return instance; in wrap()
205 LocaleListCompat instance = new LocaleListCompat(); in create() local
206 instance.setLocaleListArray(localeList); in create()
207 return instance; in create()
298 LocaleListCompat instance = new LocaleListCompat(); in forLanguageTags() local
299 instance.setLocaleListArray(localeArray); in forLanguageTags()
300 return instance; in forLanguageTags()
/frameworks/av/media/libmedia/
DIMediaExtractor.cpp274 ExtractorInstance &instance = sExtractors.editItemAt(i); in registerMediaSource() local
275 sp<IMediaExtractor> extractor = instance.extractor.promote(); in registerMediaSource()
277 if (instance.tracks.size() > 5) { in registerMediaSource()
278 instance.tracks.resize(5); in registerMediaSource()
279 instance.trackDescriptions.resize(5); in registerMediaSource()
281 instance.tracks.push_front(source); in registerMediaSource()
283 instance.trackDescriptions.push_front(source->getFormat()->toString()); in registerMediaSource()
285 instance.trackDescriptions.push_front(String8::empty()); in registerMediaSource()
318 const ExtractorInstance &instance = sExtractors.itemAt(i); in dumpExtractors() local
320 out.append(instance.toString()); in dumpExtractors()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DProgressTransformState.java38 ProgressTransformState instance = sInstancePool.acquire(); in obtain() local
39 if (instance != null) { in obtain()
40 return instance; in obtain()
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
DDelegateClassAdapterTest.java418 public int callGet(Object instance, int a, long b) throws Exception { in callGet() argument
419 Method m = instance.getClass().getMethod("get", in callGet()
422 Object result = m.invoke(instance, a, b); in callGet()
430 public int callGet_Original(Object instance, int a, long b) throws Exception { in callGet_Original() argument
431 Method m = instance.getClass().getMethod("get_Original", in callGet_Original()
434 Object result = m.invoke(instance, a, b); in callGet_Original()
442 … public <T> T callMethod(Object instance, String methodName, boolean makePublic) throws Exception { in callMethod() argument
443 Method m = instance.getClass().getDeclaredMethod(methodName, (Class<?>[])null); in callMethod()
450 Object result = m.invoke(instance, (Object[])null); in callMethod()
462 public int callAdd(Object instance, int a, int b) throws Exception { in callAdd() argument
[all …]
/frameworks/minikin/libs/minikin/
DFontLanguageListCache.cpp144 static FontLanguageListCache* instance = nullptr; in getInstance() local
145 if (instance == nullptr) { in getInstance()
146 instance = new FontLanguageListCache(); in getInstance()
150 instance->mLanguageLists.push_back(FontLanguages()); in getInstance()
151 instance->mLanguageListLookupTable.insert(std::make_pair("", kEmptyListId)); in getInstance()
153 return instance; in getInstance()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiCollection.java87 public UiObject getChildByInstance(UiSelector childPattern, int instance) in getChildByInstance() argument
89 Tracer.trace(childPattern, instance); in getChildByInstance()
91 UiSelector.patternBuilder(childPattern).instance(instance)); in getChildByInstance()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DDisplayModifier.java268 paint.setShader(ResourceModifiers.instance().mRepeatShader);
276 paint.setShader(ResourceModifiers.instance().mTranslatedShader);
282 paint.setShader(ResourceModifiers.instance().mScaledShader);
288 paint.setShader(ResourceModifiers.instance().mHorGradient);
294 paint.setShader(ResourceModifiers.instance().mDiagGradient);
302 paint.setShader(ResourceModifiers.instance().mVertGradient);
308 paint.setShader(ResourceModifiers.instance().mRadGradient);
314 paint.setShader(ResourceModifiers.instance().mSweepGradient);
320 paint.setShader(ResourceModifiers.instance().mComposeShader);
326 paint.setShader(ResourceModifiers.instance().mBadComposeShader);
[all …]

123456