Home
last modified time | relevance | path

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

/external/chromium_org/components/gcm_driver/android/java/src/org/chromium/components/gcm_driver/
DGCMDriver.java35 private static GCMDriver sInstance = null; field in GCMDriver
55 if (sInstance != null) { in create()
58 sInstance = new GCMDriver(nativeGCMDriverAndroid, context); in create()
59 return sInstance; in create()
68 assert sInstance == this; in destroy()
69 sInstance = null; in destroy()
143 if (sInstance != null) { in onRegisterFinished()
144 sInstance.nativeOnRegisterFinished(sInstance.mNativeGCMDriverAndroid, appId, in onRegisterFinished()
153 if (sInstance != null) { in onUnregisterFinished()
154 sInstance.nativeOnUnregisterFinished(sInstance.mNativeGCMDriverAndroid, appId, true); in onUnregisterFinished()
[all …]
/external/chromium_org/base/android/java/src/org/chromium/base/
DPowerMonitor.java24 private static PowerMonitor sInstance; field in PowerMonitor
44 sInstance = LazyHolder.INSTANCE; in createForTests()
54 if (sInstance == null) { in create()
55 sInstance = LazyHolder.INSTANCE; in create()
56 ApplicationStatus.registerApplicationStateListener(sInstance); in create()
67 if (sInstance == null) { in onBatteryChargingChanged()
74 sInstance.mIsBatteryPower = chargePlug != BatteryManager.BATTERY_PLUGGED_USB && in onBatteryChargingChanged()
92 return sInstance.mIsBatteryPower; in isBatteryPower()
DTraceEvent.java160 private static final BasicLooperMonitor sInstance = field in TraceEvent.LooperMonitorHolder
180 enabled ? LooperMonitorHolder.sInstance : null); in setEnabled()
/external/chromium_org/net/android/java/src/org/chromium/net/
DNetworkChangeNotifier.java52 private static NetworkChangeNotifier sInstance; field in NetworkChangeNotifier
65 if (sInstance == null) { in init()
66 sInstance = new NetworkChangeNotifier(context); in init()
68 return sInstance; in init()
72 return sInstance != null; in isInitialized()
76 sInstance = new NetworkChangeNotifier(context); in resetInstanceForTests()
104 assert sInstance != null; in getInstance()
105 return sInstance; in getInstance()
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DBrowserStartupController.java60 private static BrowserStartupController sInstance; field in BrowserStartupController
77 if (sInstance != null) { in browserStartupComplete()
78 sInstance.executeEnqueuedCallbacks(result, NOT_ALREADY_STARTED); in browserStartupComplete()
124 if (sInstance == null) { in get()
125 sInstance = new BrowserStartupController(context.getApplicationContext()); in get()
127 return sInstance; in get()
132 if (sInstance == null) { in overrideInstanceForTest()
133 sInstance = controller; in overrideInstanceForTest()
135 return sInstance; in overrideInstanceForTest()
DResourceExtractor.java236 private static ResourceExtractor sInstance; field in ResourceExtractor
239 if (sInstance == null) { in get()
240 sInstance = new ResourceExtractor(context); in get()
242 return sInstance; in get()
252 assert (sInstance == null || sInstance.mExtractTask == null) in setMandatoryPaksToExtract()
267 assert (sInstance == null || sInstance.mExtractTask == null) in setExtractImplicitLocaleForTesting()
DDownloadController.java20 private static DownloadController sInstance; field in DownloadController
43 if (sInstance == null) { in getInstance()
44 sInstance = new DownloadController(); in getInstance()
46 return sInstance; in getInstance()
DScreenOrientationListener.java159 private static ScreenOrientationListener sInstance; field in ScreenOrientationListener
168 if (sInstance == null) { in getInstance()
169 sInstance = new ScreenOrientationListener(); in getInstance()
172 return sInstance; in getInstance()
/external/chromium_org/sync/android/java/src/org/chromium/sync/notifier/
DInvalidationClientNameProvider.java16 private static InvalidationClientNameProvider sInstance; field in InvalidationClientNameProvider
26 if (sInstance == null) { in get()
27 sInstance = new InvalidationClientNameProvider(); in get()
29 return sInstance; in get()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/invalidation/
DInvalidationController.java33 private static InvalidationController sInstance; field in InvalidationController
110 if (sInstance == null) { in get()
111 sInstance = new InvalidationController(context); in get()
113 return sInstance; in get()
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/
DAwQuotaManagerBridge.java26 private static AwQuotaManagerBridge sInstance; field in AwQuotaManagerBridge
29 if (sInstance == null) { in getInstance()
30 sInstance = new AwQuotaManagerBridge(nativeGetDefaultNativeAwQuotaManagerBridge()); in getInstance()
32 return sInstance; in getInstance()
DAwSettings.java123 private static final String sInstance = nativeGetDefaultUserAgent(); field in AwSettings.LazyDefaultUserAgent
232 mUserAgent = LazyDefaultUserAgent.sInstance; in AwSettings()
550 return LazyDefaultUserAgent.sInstance; in getDefaultUserAgent()
560 mUserAgent = LazyDefaultUserAgent.sInstance; in setUserAgentString()
/external/chromium_org/chrome/android/shell/java/src/org/chromium/chrome/shell/sync/
DSyncController.java35 private static SyncController sInstance; field in SyncController
62 if (sInstance == null) { in get()
63 sInstance = new SyncController(context.getApplicationContext()); in get()
65 return sInstance; in get()
/external/chromium_org/printing/android/java/src/org/chromium/printing/
DPrintingControllerImpl.java44 private static PrintingController sInstance; field in PrintingControllerImpl
112 if (sInstance == null) { in create()
113 sInstance = new PrintingControllerImpl(printDocumentAdapterWrapper, errorText); in create()
115 return sInstance; in create()
127 return sInstance; in getInstance()
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/crypto/
DCipherFactory.java66 private static CipherFactory sInstance = new CipherFactory(); field in CipherFactory.LazyHolder
86 return LazyHolder.sInstance; in getInstance()
/external/chromium_org/net/test/android/javatests/src/org/chromium/net/test/util/
DTestWebServer.java70 private static TestWebServer sInstance; field in TestWebServer
116 if (sInstance != null) { in TestWebServer()
117 sInstance.shutdown(); in TestWebServer()
165 sInstance = instance; in setInstance()