Searched refs:instance (Results 1 - 18 of 18) sorted by relevance

/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
H A DNewsSource.java25 // the instance
26 static NewsSource instance = null; field in class:NewsSource
34 /** Returns the singleton instance of this class. */
36 if (instance == null) {
37 instance = new NewsSource();
39 return instance;
/development/samples/BrowserPlugin/jni/
H A Dmain.cpp44 NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc,
46 NPError NPP_Destroy(NPP instance, NPSavedData** save);
47 NPError NPP_SetWindow(NPP instance, NPWindow* window);
48 NPError NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream,
50 NPError NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason);
51 int32_t NPP_WriteReady(NPP instance, NPStream* stream);
52 int32_t NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len,
54 void NPP_StreamAsFile(NPP instance, NPStream* stream, const char* fname);
55 void NPP_Print(NPP instance, NPPrint* platformPrint);
56 int16_t NPP_HandleEvent(NPP instance, voi
156 NPP_New(NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc, char* argn[], char* argv[], NPSavedData* saved) argument
278 NPP_Destroy(NPP instance, NPSavedData** save) argument
289 NPP_SetWindow(NPP instance, NPWindow* window) argument
303 NPP_NewStream(NPP instance, NPMIMEType type, NPStream* stream, NPBool seekable, uint16_t* stype) argument
309 NPP_DestroyStream(NPP instance, NPStream* stream, NPReason reason) argument
314 NPP_WriteReady(NPP instance, NPStream* stream) argument
319 NPP_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len, void* buffer) argument
324 NPP_StreamAsFile(NPP instance, NPStream* stream, const char* fname) argument
328 NPP_Print(NPP instance, NPPrint* platformPrint) argument
332 NPP_HandleEvent(NPP instance, void* event) argument
407 NPP_URLNotify(NPP instance, const char* url, NPReason reason, void* notifyData) argument
412 NP_GetValue(NPP instance, NPPVariable variable, void *value) argument
429 NPP_GetValue(NPP instance, NPPVariable variable, void* value) argument
464 NPP_SetValue(NPP instance, NPNVariable variable, void *value) argument
[all...]
/development/samples/BrowserPlugin/jni/background/
H A DBackgroundPlugin.cpp223 NPP instance = this->inst(); local
225 //LOG_ERROR(instance, " ------ %p Testing Log Error", instance);
226 gLogI.log(kError_ANPLogType, " ------ %p Testing Log Error", instance);
227 gLogI.log(kWarning_ANPLogType, " ------ %p Testing Log Warning", instance);
228 gLogI.log(kDebug_ANPLogType, " ------ %p Testing Log Debug", instance);
236 static void timer_oneshot(NPP instance, uint32_t timerID);
237 static void timer_repeat(NPP instance, uint32_t timerID);
238 static void timer_neverfires(NPP instance, uint32_t timerID);
239 static void timer_latency(NPP instance, uint32_
242 NPP instance = this->inst(); local
265 timer_oneshot(NPP instance, uint32_t timerID) argument
269 timer_repeat(NPP instance, uint32_t timerID) argument
279 timer_neverfires(NPP instance, uint32_t timerID) argument
283 timer_latency(NPP instance, uint32_t timerID) argument
317 test_formats(NPP instance) argument
348 NPP instance = this->inst(); local
405 NPP instance = this->inst(); local
432 NPP instance = this->inst(); local
[all...]
/development/samples/BrowserPlugin/jni/form/
H A DFormPlugin.cpp42 static void inval(NPP instance) { argument
43 browser->invalidaterect(instance, NULL);
54 static void inval(NPP instance, const ANPRectF& r, bool doAA) { argument
57 PluginObject *obj = reinterpret_cast<PluginObject*>(instance->pdata);
63 browser->invalidaterect(instance, &inval);
132 NPP instance = this->inst(); local
133 PluginObject *obj = (PluginObject*) instance->pdata;
160 //inval(instance);
203 NPP instance = this->inst(); local
218 gLogI.log(kDebug_ANPLogType, "----%p Loosing Focus", instance);
285 NPP instance = this->inst(); local
301 NPP instance = this->inst(); local
332 NPP instance = this->inst(); local
357 NPP instance = this->inst(); local
[all...]
/development/host/windows/usb/winusb/
H A DAdbWinUsbApi.cpp29 extern "C" BOOL WINAPI DllMain(HINSTANCE instance, argument
35 /** \brief Instantiates interface instance that uses WinUsb API to communicate
42 @return AdbInterfaceObject - casted instance of AdbWinUsbInterfaceObject
/development/samples/BrowserPlugin/jni/navigation/
H A DNavigationPlugin.cpp42 static void inval(NPP instance) { argument
43 browser->invalidaterect(instance, NULL);
54 static void inval(NPP instance, const ANPRectF& r, bool doAA) { argument
57 PluginObject *obj = reinterpret_cast<PluginObject*>(instance->pdata);
63 browser->invalidaterect(instance, &inval);
113 NPP instance = this->inst(); local
114 PluginObject *obj = (PluginObject*) instance->pdata;
167 NPP instance = this->inst(); local
182 gLogI.log(kDebug_ANPLogType, "----%p Loosing Focus", instance);
184 inval(instance);
213 NPP instance = this->inst(); local
[all...]
/development/samples/BrowserPlugin/jni/animation/
H A DAnimationPlugin.cpp118 NPP instance = this->inst(); local
119 PluginObject *obj = (PluginObject*) instance->pdata;
123 ANPRectI visibleRect = gWindowI.visibleRect(instance);
134 gWindowI.setVisibleRects(instance, visibleRects, 1);
135 gWindowI.clearVisibleRects(instance);
139 NPP instance = this->inst(); local
/development/ndk/sources/android/native_app_glue/
H A Dandroid_native_app_glue.c339 android_app_free((struct android_app*)activity->instance);
344 android_app_set_activity_state((struct android_app*)activity->instance, APP_CMD_START);
349 android_app_set_activity_state((struct android_app*)activity->instance, APP_CMD_RESUME);
353 struct android_app* android_app = (struct android_app*)activity->instance;
378 android_app_set_activity_state((struct android_app*)activity->instance, APP_CMD_PAUSE);
383 android_app_set_activity_state((struct android_app*)activity->instance, APP_CMD_STOP);
387 struct android_app* android_app = (struct android_app*)activity->instance;
393 struct android_app* android_app = (struct android_app*)activity->instance;
400 android_app_write_cmd((struct android_app*)activity->instance,
406 android_app_set_window((struct android_app*)activity->instance, windo
[all...]
/development/samples/UiAutomator/src/com/android/test/uiautomator/demos/
H A DLogBuildNumber.java134 UiScrollable aboutSettingsList = new UiScrollable(SettingsHelper.LIST_VIEW.instance(1));
136 aboutSettingsList = new UiScrollable(SettingsHelper.LIST_VIEW.instance(0));
146 new UiSelector().className(android.widget.TextView.class.getName()).instance(1));
150 // we're not certain that the instance(1) or second text view inside this layout is
H A DSetTwoMinuteAlarm.java106 android.widget.NumberPicker.class.getName()).instance(1);
108 new UiSelector().className(android.widget.Button.class.getName()).instance(1));
/development/host/windows/usb/api/
H A DAdbWinApi.cpp101 extern "C" BOOL WINAPI DllMain(HINSTANCE instance, argument
/development/samples/BrowserPlugin/jni/audio/
H A DAudioPlugin.h33 NPP instance; member in struct:SoundPlay
H A DAudioPlugin.cpp43 static void inval(NPP instance) { argument
44 browser->invalidaterect(instance, NULL);
55 static void inval(NPP instance, const ANPRectF& r, bool doAA) { argument
58 PluginObject *obj = reinterpret_cast<PluginObject*>(instance->pdata);
64 browser->invalidaterect(instance, &inval);
83 inval(play->instance);
106 m_soundPlay->instance = inst;
276 NPP instance = this->inst(); local
331 NPP instance = this->inst(); local
336 instance);
[all...]
/development/tools/axl/
H A Dsingletonmixin.py15 returns the instance of S. If none exists, it is created.
17 2) The usual idiom to construct an instance by calling the class, i.e.
23 was creating a new instance. So it is felt that it is better to
65 Call this to instantiate an instance or retrieve the existing instance.
75 instance = cls.__new__(cls)
76 instance.__init__(*lstArgs)
77 cls.cInstance = instance
101 # run up the chain of base classes until we find the one that has the instance
115 Demonstrates normal use -- just call getInstance and it returns a singleton instance
[all...]
/development/ndk/platforms/android-9/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
123 * Framework is asking NativeActivity to save its current instance state.
222 * application's native activity. It is called with the activity instance (see
223 * above); if the code is being instantiated from a previously saved instance,
/development/ndk/platforms/android-4/samples/san-angeles/jni/
H A Dapp-win32.c206 int WINAPI WinMain(HINSTANCE instance, HINSTANCE prevInstance, argument
219 sInstance = instance;
235 // init instance
249 NULL, NULL, instance, NULL);
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
H A Ddashboard.py105 ContactForm(instance=contact))
110 data = ContactForm(data=self.request.POST, instance=contact)
/development/samples/BrowserPlugin/jni/paint/
H A DPaintPlugin.cpp142 NPP instance = this->inst(); local
143 PluginObject *obj = (PluginObject*) instance->pdata;

Completed in 310 milliseconds