Home
last modified time | relevance | path

Searched refs:sInstance (Results 1 – 25 of 152) 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/Settings/tests/robotests/src/com/android/car/settings/testutils/
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()
93 return sInstance.setWifiEnabled(enabled); in setWifiEnabled()
98 return sInstance.isWifiEnabled(); in isWifiEnabled()
112 return sInstance.isWifiApEnabled(); in isWifiApEnabled()
117 return sInstance.getAllAccessPoints(); in getAllAccessPoints()
122 return sInstance.getSavedAccessPoints(); in getSavedAccessPoints()
127 sInstance.connectToPublicWifi(accessPoint, listener); in connectToPublicWifi()
133 sInstance.connectToSavedWifi(accessPoint, listener); in connectToSavedWifi()
/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/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/dynamicui/
DWallpaperManagerCompat.java28 private static WallpaperManagerCompat sInstance; field in WallpaperManagerCompat
32 if (sInstance == null) { in getInstance()
37 sInstance = new WallpaperManagerCompatVOMR1(context); in getInstance()
42 if (sInstance == null) { in getInstance()
43 sInstance = new WallpaperManagerCompatVL(context); in getInstance()
46 return sInstance; in getInstance()
/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/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/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/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompat.java58 private static LauncherAppsCompat sInstance; field in LauncherAppsCompat
63 if (sInstance == null) { in getInstance()
65 sInstance = new LauncherAppsCompatVQ(context.getApplicationContext()); in getInstance()
67 sInstance = new LauncherAppsCompatVO(context.getApplicationContext()); in getInstance()
69 sInstance = new LauncherAppsCompatVL(context.getApplicationContext()); in getInstance()
72 return sInstance; in getInstance()
DUserManagerCompat.java31 private static UserManagerCompat sInstance; field in UserManagerCompat
35 if (sInstance == null) { in getInstance()
37 sInstance = new UserManagerCompatVP(context.getApplicationContext()); in getInstance()
39 sInstance = new UserManagerCompatVNMr1(context.getApplicationContext()); in getInstance()
42 return sInstance; in getInstance()
DAppWidgetManagerCompat.java41 private static AppWidgetManagerCompat sInstance; field in AppWidgetManagerCompat
45 if (sInstance == null) { in getInstance()
47 sInstance = new AppWidgetManagerCompatVO(context.getApplicationContext()); in getInstance()
49 sInstance = new AppWidgetManagerCompatVL(context.getApplicationContext()); in getInstance()
52 return sInstance; in getInstance()
/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/Bluetooth/src/com/android/bluetooth/avrcp/
DAvrcpTargetService.java69 private static AvrcpTargetService sInstance = null; field in AvrcpTargetService
140 return sInstance; in get()
159 sInstance = null; in setUserUnlocked()
170 if (sInstance != null) { in start()
180 sInstance = null; in start()
207 sInstance = this; in start()
216 if (sInstance == null) { in stop()
221 sInstance = null; in stop()
393 if (sInstance == null) { in dump()
/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/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()
DScreenSizeCalculator.java33 private static ScreenSizeCalculator sInstance; field in ScreenSizeCalculator
39 if (sInstance == null) { in getInstance()
40 sInstance = new ScreenSizeCalculator(); in getInstance()
42 return sInstance; in getInstance()
50 sInstance = null; in clearInstance()
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/
DCarModeInCallUI.java58 public static com.android.server.telecom.carmodedialer.CarModeInCallUI sInstance; field in CarModeInCallUI
69 sInstance = this; in onCreate()
162 … CarModeInCallServiceImpl.sInstance.setAudioRoute(CallAudioState.ROUTE_WIRED_OR_EARPIECE); in onCreate()
166 CarModeInCallServiceImpl.sInstance.setAudioRoute(CallAudioState.ROUTE_SPEAKER); in onCreate()
171 && CarModeInCallServiceImpl.sInstance != null) { in onCreate()
172 CarModeInCallServiceImpl.sInstance.requestBluetoothAudio( in onCreate()
205 sInstance = null; in onDestroy()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DResolveCache.java67 private static ResolveCache sInstance; field in ResolveCache
74 if (sInstance == null) { in getInstance()
76 sInstance = new ResolveCache(applicationContext); in getInstance()
84 applicationContext.registerReceiver(sInstance.mPackageIntentReceiver, filter); in getInstance()
86 return sInstance; in getInstance()
90 sInstance = null; in flush()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestInCallServiceImpl.java32 public static TestInCallServiceImpl sInstance; field in TestInCallServiceImpl
69 sInstance = null; in onUnbind()
75 if (TestInCallUI.sInstance != null) { in onCallAudioStateChanged()
76 TestInCallUI.sInstance.updateCallAudioState(cas); in onCallAudioStateChanged()
81 sInstance = this; in startInCallUI()

1234567