Home
last modified time | relevance | path

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

/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/mock/
DMockDatabase.java35 private static BigTextStyleReminderAppData sInstance = null; field in MockDatabase.BigTextStyleReminderAppData
48 if (sInstance == null) { in getInstance()
49 sInstance = getSync(); in getInstance()
52 return sInstance; in getInstance()
56 if (sInstance == null) { in getSync()
57 sInstance = new BigTextStyleReminderAppData(); in getSync()
60 return sInstance; in getSync()
106 private static BigPictureStyleSocialAppData sInstance = null; field in MockDatabase.BigPictureStyleSocialAppData
123 if (sInstance == null) { in getInstance()
124 sInstance = getSync(); in getInstance()
[all …]
/development/samples/browseable/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/mock/
DMockDatabase.java35 private static BigTextStyleReminderAppData sInstance = null; field in MockDatabase.BigTextStyleReminderAppData
48 if (sInstance == null) { in getInstance()
49 sInstance = getSync(); in getInstance()
52 return sInstance; in getInstance()
56 if (sInstance == null) { in getSync()
57 sInstance = new BigTextStyleReminderAppData(); in getSync()
60 return sInstance; in getSync()
106 private static BigPictureStyleSocialAppData sInstance = null; field in MockDatabase.BigPictureStyleSocialAppData
123 if (sInstance == null) { in getInstance()
124 sInstance = getSync(); in getInstance()
[all …]
/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/samples/DeviceAdminWhitelistedAccount/src/com/example/android/app/admin/whitelistedaccount/
DMyAuthenticator.java38 private static Authenticator sInstance; field in MyAuthenticator
42 if (sInstance == null) { in onBind()
43 sInstance = new Authenticator(getApplicationContext()); in onBind()
46 return sInstance.getIBinder(); in onBind()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DAlbumArtCache.java50 private static final AlbumArtCache sInstance = new AlbumArtCache(); field in AlbumArtCache
53 return sInstance; in getInstance()