Searched defs:instance (Results 1 - 22 of 22) sorted by relevance

/frameworks/wilhelm/src/
H A Dsync.c64 IObject *instance = (IObject *) thiz->mEngine.mInstances[i]; local
66 if (NULL == instance) {
70 object_lock_exclusive(instance);
71 unsigned attributesMask = instance->mAttributesMask;
72 instance->mAttributesMask = 0;
74 switch (IObjectToObjectID(instance)) {
77 object_unlock_exclusive(instance);
80 CAudioPlayer *audioPlayer = (CAudioPlayer *) instance;
87 object_unlock_exclusive(instance);
/frameworks/base/core/java/android/gesture/
H A DLearner.java28 * Add an instance to the learner
30 * @param instance
32 void addInstance(Instance instance) { argument
33 mInstances.add(instance);
46 * Remove an instance based on its id
54 Instance instance = instances.get(i);
55 if (id == instance.id) {
56 instances.remove(instance);
73 final Instance instance = instances.get(i);
75 if ((instance
[all...]
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/dataclass/
H A DClassWithNative_Delegate.java27 public static int native_instance(ClassWithNative instance, int a, double d, Object[] o) { argument
29 o[0] = instance;
H A DOuterClass_Delegate.java26 public static int get(OuterClass instance, int a, long b) { argument
30 public static String privateMethod(OuterClass instance) { argument
/frameworks/native/include/utils/
H A DSingleton.h34 TYPE* instance = sInstance; local
35 if (instance == 0) {
36 instance = new TYPE();
37 sInstance = instance;
39 return *instance;
60 * (eg: <TYPE>.cpp) to create the static instance of Singleton<>'s attributes,
/frameworks/testing/uiautomator/library/src/com/android/uiautomator/core/
H A DUiCollection.java34 * The returned UiObject will point at the <code>childPattern</code> instance that matched the
39 * @return {@link UiObject} pointing at and instance of <code>childPattern</code>
66 * a child UI element anywhere within its sub hierarchy that is at the <code>instance</code>
71 * @param instance int the desired matched instance of this <code>childPattern</code>
72 * @return {@link UiObject} pointing at and instance of <code>childPattern</code>
74 public UiObject getChildByInstance(UiSelector childPattern, int instance) argument
77 UiSelector.patternBuilder(childPattern).instance(instance));
88 * instance tha
[all...]
H A DUiScrollable.java101 * @return {@link UiObject} pointing at and instance of <code>childPattern</code>
116 * @return {@link UiObject} pointing at and instance of <code>childPattern</code>
133 * return the <code>instance</code> specified. The operation is performed only on the visible
137 * @param instance int the desired matched instance of this <code>childPattern</code>
138 * @return {@link UiObject} pointing at and instance of <code>childPattern</code>
141 public UiObject getChildByInstance(UiSelector childPattern, int instance) argument
144 UiSelector.patternBuilder(childPattern).instance(instance));
153 * instance tha
[all...]
H A DUiSelector.java271 * consider using the {@link #instance(int)} method.
282 * widget by its instance number.
284 * The instance value must be 0 or greater, where
285 * the first instance is 0.
289 * could specify a a search criteria where the instance is
295 * .enabled(true).instance(2);
298 * @param instance Value to match
301 public UiSelector instance(final int instance) { argument
302 return buildSelector(SELECTOR_INSTANCE, instance);
[all...]
/frameworks/base/core/java/android/util/
H A DXml.java106 return XmlSerializerFactory.instance.newSerializer();
116 static final XmlPullParserFactory instance; field in class:Xml.XmlSerializerFactory
119 instance = XmlPullParserFactory.newInstance(TYPE, null);
/frameworks/base/services/java/com/android/server/
H A DAttributeCache.java69 public static AttributeCache instance() { method in class:AttributeCache
/frameworks/base/media/java/android/media/
H A DMiniThumbFile.java69 public static synchronized MiniThumbFile instance(Uri uri) { method in class:MiniThumbFile
/frameworks/base/services/java/com/android/server/am/
H A DDeviceMonitor.java226 private static DeviceMonitor instance = new DeviceMonitor(); field in class:DeviceMonitor
232 instance.startMonitoring();
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
H A DDelegateClassAdapterTest.java72 // create an instance of the class that will be modified
291 * instance methods via reflection.
345 public int callGet(Object instance, int a, long b) throws Exception { argument
346 Method m = instance.getClass().getMethod("get",
349 Object result = m.invoke(instance, new Object[] { a, b });
357 public int callGet_Original(Object instance, int a, long b) throws Exception { argument
358 Method m = instance.getClass().getMethod("get_Original",
361 Object result = m.invoke(instance, new Object[] { a, b });
369 public <T> T callMethod(Object instance, String methodName, boolean makePublic) throws Exception { argument
370 Method m = instance
389 callAdd(Object instance, int a, int b) argument
401 callCallNativeInstance(Object instance, int a, double d, Object[] o) argument
[all...]
/frameworks/native/include/android/
H A Dnative_activity.h67 * NativeActivity instance created by the system for you.
90 * This is the native instance of the application. It is not used by
91 * the framework, but can be set by the application to its own instance
94 void* instance; member in struct:ANativeActivity
97 * Pointer to the Asset Manager instance for the application. The application
130 * Framework is asking NativeActivity to save its current instance state.
229 * application's native activity. It is called with the activity instance (see
230 * above); if the code is being instantiated from a previously saved instance,
/frameworks/base/tests/BrowserTestPlugin/jni/
H A Dmain.cpp37 NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc,
39 NPError NPP_Destroy(NPP instance, NPSavedData** save);
40 NPError NPP_SetWindow(NPP instance, NPWindow* window);
41 NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream,
43 NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason);
44 int32_t NPP_WriteReady(NPP instance, NPStream* stream);
45 int32_t NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len,
47 void NPP_StreamAsFile(NPP instance, NPStream* stream, const char* fname);
48 void NPP_Print(NPP instance, NPPrint* platformPrint);
49 int16_t NPP_HandleEvent(NPP instance, voi
132 NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* argn[], char* argv[], NPSavedData* saved) argument
168 NPP_Destroy(NPP instance, NPSavedData** save) argument
179 NPP_SetWindow(NPP instance, NPWindow* window) argument
191 NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype) argument
197 NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason) argument
202 NPP_WriteReady(NPP instance, NPStream* stream) argument
207 NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len, void* buffer) argument
212 NPP_StreamAsFile(NPP instance, NPStream* stream, const char* fname) argument
216 NPP_Print(NPP instance, NPPrint* platformPrint) argument
220 NPP_HandleEvent(NPP instance, void* event) argument
234 NPP_URLNotify(NPP instance, const char* url, NPReason reason, void* notifyData) argument
238 NP_GetValue(NPP instance, NPPVariable variable, void *value) argument
255 NPP_GetValue(NPP instance, NPPVariable variable, void *value) argument
271 NPP_SetValue(NPP instance, NPNVariable variable, void *value) argument
[all...]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DRecurrenceProcessor.java317 * @returns true if this instance should be kept
319 private static boolean filterMonthlySetPos(EventRecurrence r, Time instance) { argument
321 * Compute the day of the week for the first day of the month. "instance" has a
325 * The basic calculation is to take the instance's "day of the week" number, subtract
329 int dotw = (instance.weekDay - instance.monthDay + 36) % 7;
344 int maxDay = instance.getActualMaximum(Time.MONTH_DAY);
362 * Now walk through the BYSETPOS list and see if the instance is equal to any of the
371 if (daySet[index-1] == instance.monthDay) {
378 if (daySet[daySetLength + index] == instance
[all...]
/frameworks/av/media/libstagefright/omx/
H A DOMX.cpp167 OMXNodeInstance *instance; local
175 instance = mLiveNodes.editValueAt(index);
178 index = mDispatchers.indexOfKey(instance->nodeID());
182 invalidateNodeID_l(instance->nodeID());
185 instance->onObserverDied(mMaster);
226 OMXNodeInstance *instance = new OMXNodeInstance(this, observer); local
231 instance, &handle);
236 instance->onGetHandleFailed();
241 *node = makeNodeID(instance);
242 mDispatchers.add(*node, new CallbackDispatcher(instance));
253 OMXNodeInstance *instance = findInstance(node); local
442 makeNodeID(OMXNodeInstance *instance) argument
[all...]
H A DOMXNodeInstance.cpp693 OMXNodeInstance *instance = static_cast<OMXNodeInstance *>(pAppData); local
694 if (instance->mDying) {
697 return instance->owner()->OnEvent(
698 instance->nodeID(), eEvent, nData1, nData2, pEventData);
706 OMXNodeInstance *instance = static_cast<OMXNodeInstance *>(pAppData); local
707 if (instance->mDying) {
710 return instance->owner()->OnEmptyBufferDone(instance->nodeID(), pBuffer);
718 OMXNodeInstance *instance = static_cast<OMXNodeInstance *>(pAppData); local
719 if (instance
[all...]
/frameworks/native/libs/gui/
H A DSurfaceComposerClient.cpp77 ComposerService& instance = ComposerService::getInstance(); local
78 Mutex::Autolock _l(instance.mLock);
79 if (instance.mComposerService == NULL) {
81 assert(instance.mComposerService != NULL);
84 return instance.mComposerService;
/frameworks/base/core/java/android/os/
H A DStrictMode.java505 * Construct the ThreadPolicy instance.
700 * Construct the VmPolicy instance.
953 // and instance counting.
1771 * it) are guarded by the ThreadSpanState object instance. While
1895 public static Object trackActivity(Object instance) { argument
1896 return new InstanceTracker(instance);
1954 // the heap to count instance (30ms). This extra work can make the system feel
2022 * If this is a instance count violation, the number of instances in memory,
2028 * Create an uninitialized instance of ViolationInfo
2036 * Create an instance o
2194 InstanceTracker(Object instance) argument
[all...]
/frameworks/av/libvideoeditor/vss/mcs/src/
H A DM4MCS_API.c161 M4OSA_ERR H264MCS_Getinstance( NSWAVC_MCS_t ** instance )
204 *instance = (NSWAVC_MCS_t *)p_bs;
740 NSWAVC_MCS_t *instance; local
762 instance = (NSWAVC_MCS_t *)ainstance;
843 NSWAVCMCS_initBitstream(&instance->encbs);
845 instance->encbs.streamBuffer = outbuff + outbuffpos + 1;
862 instance->frame_count = 0;
863 instance->POC_lsb = 0;
873 NSWAVCMCS_uExpVLC(&instance->encbs, first_mb_in_slice);
876 NSWAVCMCS_uExpVLC(&instance
1287 H264MCS_ProcessSPS_PPS( NSWAVC_MCS_t *instance, M4OSA_UInt8 *inbuff, M4OSA_Int32 inbuf_size ) argument
1743 NSWAVC_MCS_t *instance; local
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebViewClassic.java937 // Lazily-instantiated instance for injecting accessibility.
1401 // The webview that is bound to this WebViewClassic instance. Primarily needed for supplying
1404 // Callback interface, provides priviledged access into the WebView instance.
1596 * we must synchronize the instance check and the creation of the
4048 * @return the current WebViewClient instance.
4074 * @return the current WebChromeClient instance.
8728 * @param nativeInstance Native WebView instance
8743 private static native void nativeSetPauseDrawing(int instance, boolean pause); argument
8744 private static native void nativeSetTextSelection(int instance, int selection); argument
8745 private static native int nativeGetHandleLayerId(int instance, in argument
8747 nativeMapLayerRect(int instance, int layerId, Rect rect) argument
8750 nativeSetHwAccelerated(int instance, boolean hwAccelerated) argument
8751 nativeFindMaxVisibleRect(int instance, int layerId, Rect visibleContentRect) argument
8753 nativeIsHandleLeft(int instance, int handleId) argument
8754 nativeIsPointVisible(int instance, int layerId, int contentX, int contentY) argument
[all...]

Completed in 1302 milliseconds