Home
last modified time | relevance | path

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

1234567

/packages/apps/Camera2/src/android/util/
DCameraPerformanceTracker.java37 private static CameraPerformanceTracker sInstance; field in CameraPerformanceTracker
63 if (sInstance == null) { in onEvent()
64 sInstance = new CameraPerformanceTracker(); in onEvent()
69 sInstance.mAppStartTime = currentTime; in onEvent()
72 sInstance.mFirstPreviewFrameLatencyWarmStart = UNSET; in onEvent()
75 sInstance.mAppResumeTime = currentTime; in onEvent()
79 if (sInstance.mFirstPreviewFrameLatencyColdStart == UNSET) { in onEvent()
81 sInstance.mFirstPreviewFrameLatencyColdStart = in onEvent()
82 currentTime - sInstance.mAppStartTime; in onEvent()
85 sInstance.mFirstPreviewFrameLatencyWarmStart = in onEvent()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/sharedlibrarysupport/
DSharedLibraryFactorySingleton.java50 private static SharedLibraryFactory sInstance; field in SharedLibraryFactorySingleton
75 if (sInstance != null) { in get()
76 return sInstance; in get()
82 sInstance = new SharedLibraryFactoryStub(context); in get()
83 return sInstance; in get()
90 sInstance = new SharedLibraryFactoryStub(context); in get()
91 return sInstance; in get()
101 sInstance = new SharedLibraryFactoryStub(context); in get()
102 return sInstance; in get()
113 sInstance = new SharedLibraryFactoryStub(context); in get()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowUserHelper.java37 private static ProfileHelper sInstance; field in ShadowUserHelper
40 sInstance = profileHelper; in setInstance()
45 sInstance = null; in reset()
50 return sInstance.canCurrentProcessModifyAccounts(); in canCurrentProcessModifyAccounts()
55 return sInstance.getAllProfiles(); in getAllUsers()
60 return sInstance.getAllSwitchableProfiles(); in getAllSwitchableUsers()
66 return sInstance.getAllPersistentProfiles(); in getAllPersistentUsers()
71 return sInstance.isCurrentProcessUser(userInfo); in isCurrentProcessUser()
76 return sInstance.getCurrentProcessUserInfo(); in getCurrentProcessUserInfo()
82 return sInstance.removeProfile(context, userInfo); in removeUser()
[all …]
DShadowTtsEngines.java32 private static TtsEngines sInstance; field in ShadowTtsEngines
35 sInstance = ttsEngines; in setInstance()
40 sInstance = null; in reset()
45 return sInstance.getEngines(); in getEngines()
50 return sInstance.getEngineInfo(packageName); in getEngineInfo()
55 return sInstance.getDefaultEngine(); in getDefaultEngine()
60 return sInstance.getSettingsIntent(engine); in getSettingsIntent()
65 return sInstance.isLocaleSetToDefaultForEngine(engineName); in isLocaleSetToDefaultForEngine()
70 return sInstance.getLocalePrefForEngine(engineName); in getLocalePrefForEngine()
75 sInstance.updateLocalePrefForEngine(engineName, newLocale); in updateLocalePrefForEngine()
[all …]
DShadowTextToSpeech.java33 private static TextToSpeech sInstance; field in ShadowTextToSpeech
38 sInstance = textToSpeech; in setInstance()
63 return sInstance.getCurrentEngine(); in getCurrentEngine()
68 return sInstance.setLanguage(loc); in setLanguage()
73 sInstance.shutdown(); in shutdown()
78 return sInstance.setSpeechRate(speechRate); in setSpeechRate()
83 return sInstance.setPitch(pitch); in setPitch()
88 return sInstance.getVoice(); in getVoice()
93 return sInstance.isLanguageAvailable(loc); in isLanguageAvailable()
101 return sInstance.speak(text, queueMode, params, utteranceId); in speak()
[all …]
DShadowCarWifiManager.java41 private static CarWifiManager sInstance; field in ShadowCarWifiManager
49 sInstance = wifiManager; in setInstance()
54 sInstance = null; in reset()
92 return sInstance.isWifiEnabled(); in isWifiEnabled()
106 return sInstance.isWifiApEnabled(); in isWifiApEnabled()
111 return sInstance.getAllWifiEntries(); in getAllWifiEntries()
116 return sInstance.getSavedWifiEntries(); in getSavedWifiEntries()
131 return sInstance.addListener(listener); in addListener()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowTtsEngines.java32 private static TtsEngines sInstance; field in ShadowTtsEngines
35 sInstance = ttsEngines; in setInstance()
40 sInstance = null; in reset()
45 return sInstance.getEngines(); in getEngines()
50 return sInstance.getEngineInfo(packageName); in getEngineInfo()
55 return sInstance.getDefaultEngine(); in getDefaultEngine()
60 return sInstance.getSettingsIntent(engine); in getSettingsIntent()
65 return sInstance.isEngineInstalled(engine); in isEngineInstalled()
70 return sInstance.isLocaleSetToDefaultForEngine(engineName); in isLocaleSetToDefaultForEngine()
75 return sInstance.getLocalePrefForEngine(engineName); in getLocalePrefForEngine()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DConfig.java28 private static AlbumSetPage sInstance; field in Config.AlbumSetPage
37 if (sInstance == null) { in get()
38 sInstance = new AlbumSetPage(context); in get()
40 return sInstance; in get()
82 private static AlbumPage sInstance; field in Config.AlbumPage
88 if (sInstance == null) { in get()
89 sInstance = new AlbumPage(context); in get()
91 return sInstance; in get()
107 private static ManageCachePage sInstance; field in Config.ManageCachePage
113 if (sInstance == null) { in get()
[all …]
/packages/apps/Messaging/src/com/android/messaging/util/
DImeUtil.java37 private static volatile ImeUtil sInstance; field in ImeUtil
42 sInstance = null; in clearInstance()
45 if (sInstance == null) { in get()
47 if (sInstance == null) { in get()
48 sInstance = new ImeUtil(); in get()
52 return sInstance; in get()
57 sInstance = imeUtil; in set()
/packages/modules/Permission/service/java/com/android/permission/util/
DForegroundThread.java35 private static ForegroundThread sInstance; field in ForegroundThread
47 if (sInstance == null) { in ensureInstanceLocked()
48 sInstance = new ForegroundThread(); in ensureInstanceLocked()
49 sInstance.start(); in ensureInstanceLocked()
50 sHandler = new Handler(sInstance.getLooper()); in ensureInstanceLocked()
64 return sInstance; in get()
DBackgroundThread.java35 private static BackgroundThread sInstance; field in BackgroundThread
47 if (sInstance == null) { in ensureInstanceLocked()
48 sInstance = new BackgroundThread(); in ensureInstanceLocked()
49 sInstance.start(); in ensureInstanceLocked()
50 sHandler = new Handler(sInstance.getLooper()); in ensureInstanceLocked()
64 return sInstance; in get()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DBackgroundThread.java38 private static BackgroundThread sInstance; field in BackgroundThread
47 if (sInstance == null) { in ensureThreadLocked()
48 sInstance = new BackgroundThread(); in ensureThreadLocked()
49 sInstance.start(); in ensureThreadLocked()
50 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
58 return sInstance; in get()
DForegroundThread.java38 private static ForegroundThread sInstance; field in ForegroundThread
47 if (sInstance == null) { in ensureThreadLocked()
48 sInstance = new ForegroundThread(); in ensureThreadLocked()
49 sInstance.start(); in ensureThreadLocked()
50 sHandler = new Handler(sInstance.getLooper()); in ensureThreadLocked()
58 return sInstance; in get()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/compat/
DWallpaperManagerCompat.java39 private static WallpaperManagerCompat sInstance; field in WallpaperManagerCompat
43 if (sInstance == null) { in getInstance()
45 sInstance = new WallpaperManagerCompatVN(context.getApplicationContext()); in getInstance()
47 sInstance = new WallpaperManagerCompatV16(context.getApplicationContext()); in getInstance()
50 return sInstance; in getInstance()
60 sInstance = wallpaperManagerCompat; in setInstance()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/networkstack/
DModuleNetworkStackClient.java39 private static ModuleNetworkStackClient sInstance; field in ModuleNetworkStackClient
55 if (sInstance == null) { in getInstance()
56 sInstance = new ModuleNetworkStackClient(); in getInstance()
57 sInstance.startPolling(); in getInstance()
59 return sInstance; in getInstance()
64 sInstance = null; in resetInstanceForTest()
/packages/apps/Stk/src/com/android/stk/
DStkDigitsKeyListener.java37 if (sInstance != null) { in getInstance()
38 return sInstance; in getInstance()
40 sInstance = new StkDigitsKeyListener(); in getInstance()
41 return sInstance; in getInstance()
53 private static StkDigitsKeyListener sInstance; field in StkDigitsKeyListener
/packages/apps/Camera2/src/com/android/camera/util/
DAndroidContext.java27 private static AndroidContext sInstance; field in AndroidContext
35 if (sInstance == null) { in initialize()
36 sInstance = new AndroidContext(context); in initialize()
45 if (sInstance == null) { in instance()
48 return sInstance; in instance()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/
DWallpaperManagerCompat.java13 private static WallpaperManagerCompat sInstance; field in WallpaperManagerCompat
18 if (sInstance == null) { in getInstance()
20 sInstance = new WallpaperManagerCompatVN(context.getApplicationContext()); in getInstance()
22 sInstance = new WallpaperManagerCompatV16(context.getApplicationContext()); in getInstance()
25 return sInstance; in getInstance()
/packages/apps/Car/Radio/src/com/android/car/radio/storage/
DRadioStorage.java50 private static RadioStorage sInstance; field in RadioStorage
67 if (sInstance != null) return sInstance; in getInstance()
69 if (sInstance != null) return sInstance; in getInstance()
70 sInstance = new RadioStorage(context.getApplicationContext()); in getInstance()
71 return sInstance; in getInstance()
/packages/apps/Gallery2/src_pd/com/android/gallery3d/filtershow/filters/
DFiltersManager.java30 private static FiltersManager sInstance = null; field in FiltersManager
46 if (sInstance == null) { in getManager()
47 sInstance = new FiltersManager(); in getManager()
49 return sInstance; in getManager()
60 sInstance = null; in reset()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetObjectsFactory.java30 private static HeadsetObjectsFactory sInstance; field in HeadsetObjectsFactory
42 if (sInstance == null) { in getInstance()
43 sInstance = new HeadsetObjectsFactory(); in getInstance()
46 return sInstance; in getInstance()
58 sInstance = objectsFactory; in setInstanceForTesting()
/packages/apps/TV/src/com/android/tv/dvr/recorder/
DDvrRecordingService.java60 private static DvrRecordingService sInstance; field in DvrRecordingService
75 if (sInstance == null) { in startForegroundService()
84 sInstance.startForeground(startForRecording); in startForegroundService()
90 if (sInstance != null) { in stopForegroundIfNotRecording()
91 sInstance.stopForegroundIfNotRecordingInternal(); in stopForegroundIfNotRecording()
121 sInstance = this; in onCreate()
154 sInstance = null; in onDestroy()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/
DDisplayMetricsRetriever.java33 private static DisplayMetricsRetriever sInstance; field in DisplayMetricsRetriever
39 if (sInstance == null) { in getInstance()
40 sInstance = new DisplayMetricsRetriever(); in getInstance()
42 return sInstance; in getInstance()
50 sInstance = null; in clearInstance()
/packages/services/Car/service/src/com/android/car/admin/
DPerUserCarDevicePolicyService.java69 private static PerUserCarDevicePolicyService sInstance; field in PerUserCarDevicePolicyService
101 if (sInstance == null) { in getInstance()
102 sInstance = new PerUserCarDevicePolicyService(context.getApplicationContext()); in getInstance()
103 if (DEBUG) Slog.d(TAG, "Created instance: " + sInstance); in getInstance()
106 return sInstance; in getInstance()
130 sInstance = null; in onDestroy()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpTargetService.java83 private static AvrcpTargetService sInstance = null; field in AvrcpTargetService
154 sInstance = instance; in set()
161 return sInstance; in get()
184 sInstance = null; in setUserUnlocked()
195 if (sInstance != null) { in start()
205 sInstance = null; in start()
247 sInstance = this; in start()
256 if (sInstance == null) { in stop()
266 sInstance = null; in stop()
467 if (sInstance == null) { in dump()

1234567