Home
last modified time | relevance | path

Searched refs:sInstance (Results 1 – 3 of 3) sorted by relevance

/development/samples/training/threadsample/src/com/example/android/threadsample/
DPhotoManager.java110 private static PhotoManager sInstance = null; field in PhotoManager
119 sInstance = new PhotoManager();
265 return sInstance; in getInstance()
317 PhotoTask[] taskArray = new PhotoTask[sInstance.mDownloadWorkQueue.size()]; in cancelAll()
320 sInstance.mDownloadWorkQueue.toArray(taskArray); in cancelAll()
329 synchronized (sInstance) { in cancelAll()
359 synchronized (sInstance) { in removeDownload()
372 sInstance.mDownloadThreadPool.remove(downloaderTask.getHTTPDownloadRunnable()); in removeDownload()
390 PhotoTask downloadTask = sInstance.mPhotoTaskWorkQueue.poll(); in startDownload()
398 downloadTask.initializeDownloaderTask(PhotoManager.sInstance, imageView, cacheFlag); in startDownload()
[all …]
/development/samples/BusinessCard/src/com/example/android/businesscard/
DContactAccessor.java37 private static ContactAccessor sInstance; field in ContactAccessor
40 if (sInstance == null) { in getInstance()
68 sInstance = clazz.newInstance(); in getInstance()
74 return sInstance; in getInstance()
/development/ndk/platforms/android-4/samples/san-angeles/jni/
Dapp-win32.c41 static HINSTANCE sInstance; variable
219 sInstance = instance; in WinMain()
226 wc.hInstance = sInstance; in WinMain()