Home
last modified time | relevance | path

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

123

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/
DTestApis.java36 return Users.sInstance; in users()
41 return Packages.sInstance; in packages()
46 return DevicePolicy.sInstance; in devicePolicy()
51 return Permissions.sInstance; in permissions()
56 return Context.sInstance; in context()
61 return Settings.sInstance; in settings()
66 return SystemProperties.sInstance; in systemProperties()
72 return Activities.sInstance; in activities()
77 return Notifications.sInstance; in notifications()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DSecondaryConditionProviderService.java21 private static PollableConditionProviderService sInstance = null; field in SecondaryConditionProviderService
29 return sInstance; in getInstance()
35 sInstance = this; in onConnected()
40 sInstance = null; in onDestroy()
DLegacyConditionProviderService.java22 private static PollableConditionProviderService sInstance = null; field in LegacyConditionProviderService
30 return sInstance; in getInstance()
36 sInstance = this; in onConnected()
41 sInstance = null; in onDestroy()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DMyDrawable.java34 private static MyDrawable sInstance; field in MyDrawable
39 if (sInstance != null) { in MyDrawable()
42 sInstance = this; in MyDrawable()
47 if (sInstance != null && sAutofilledBounds == null) { in draw()
80 sInstance = null; in initStatus()
86 sInstance = null; in clearStatus()
/cts/tests/tests/content/lib/accountaccess/src/com.android.cts.content/
DNotAlwaysSyncableSyncService.java25 private static SyncAdapter sInstance; field in NotAlwaysSyncableSyncService
29 if (sInstance == null) { in getInstance()
30 sInstance = new SyncAdapter(context.getApplicationContext(), false); in getInstance()
34 return sInstance; in getInstance()
DAlwaysSyncableSyncService.java25 private static SyncAdapter sInstance; field in AlwaysSyncableSyncService
29 if (sInstance == null) { in getInstance()
30 sInstance = new SyncAdapter(context.getApplicationContext(), false); in getInstance()
34 return sInstance; in getInstance()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DOutOfProcessLoginActivity.java37 private static OutOfProcessLoginActivity sInstance; field in OutOfProcessLoginActivity
48 sInstance = this; in onCreate()
93 sInstance = null; in onDestroy()
127 Log.v(TAG, "Finishing " + sInstance); in finishIt()
128 if (sInstance != null) { in finishIt()
129 sInstance.finish(); in finishIt()
134 return sInstance != null; in hasInstance()
DSecondActivity.java36 private static SecondActivity sInstance; field in SecondActivity
43 sInstance = this; in SecondActivity()
61 sInstance = null; in onDestroy()
65 if (sInstance != null) { in finishIt()
66 sInstance.finish(); in finishIt()
DViewActionActivity.java34 private static ViewActionActivity sInstance; field in ViewActionActivity
48 sInstance = this; in ViewActionActivity()
81 sInstance = null; in onDestroy()
100 if (sInstance != null) { in finishIt()
101 sInstance.finish(); in finishIt()
DWelcomeActivity.java39 private static WelcomeActivity sInstance; field in WelcomeActivity
52 sInstance = this; in WelcomeActivity()
78 sInstance = null; in onDestroy()
93 if (sInstance != null) { in finishIt()
94 sInstance.finish(); in finishIt()
DPreSimpleSaveActivity.java34 private static PreSimpleSaveActivity sInstance; field in PreSimpleSaveActivity
41 return sInstance; in getInstance()
45 sInstance = this; in PreSimpleSaveActivity()
/cts/tests/tests/telephony/current/src/android/telephony/gba/cts/
DTestGbaConfig.java33 private static TestGbaConfig sInstance; field in TestGbaConfig
39 if (sInstance == null) { in getInstance()
40 sInstance = new TestGbaConfig(); in getInstance()
42 return sInstance; in getInstance()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/settings/
DSettings.java22 public static final Settings sInstance = new Settings(); field in Settings
30 return SecureSettings.sInstance; in secure()
35 return GlobalSettings.sInstance; in global()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DNestedShellPermission.java30 private static NestedShellPermission sInstance; field in NestedShellPermission
37 if (sInstance == null) { in getInstance()
38 sInstance = new NestedShellPermission(); in getInstance()
40 return sInstance; in getInstance()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNeneNotificationListenerService.java37 private static AtomicReference<NeneNotificationListenerService> sInstance = field in NeneNotificationListenerService
44 sInstance.set(this); in onListenerConnected()
51 sInstance.set(null); in onListenerDisconnected()
57 Notifications.sInstance.onNotificationPosted(sbn); in onNotificationPosted()
/cts/tests/tests/media/src/android/media/cts/
DStubMediaSession2Service.java41 private static StubMediaSession2Service sInstance; field in StubMediaSession2Service
53 return sInstance; in getInstance()
67 sInstance = this; in onCreate()
81 sInstance = null; in onDestroy()
92 sInstance = null; in onUpdateNotification()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DTestAcsClient.java35 private static TestAcsClient sInstance; field in TestAcsClient
40 if (sInstance == null) { in getInstance()
41 sInstance = new TestAcsClient(); in getInstance()
43 return sInstance; in getInstance()
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStoreAudioTestHelper.java85 private static Audio1 sInstance = new Audio1(); field in MediaStoreAudioTestHelper.Audio1
88 return sInstance; in getInstance()
148 private static Audio2 sInstance = new Audio2(); field in MediaStoreAudioTestHelper.Audio2
151 return sInstance; in getInstance()
210 private static Audio3 sInstance = new Audio3(); field in MediaStoreAudioTestHelper.Audio3
213 return sInstance; in getInstance()
228 private static Audio4 sInstance = new Audio4(); field in MediaStoreAudioTestHelper.Audio4
231 return sInstance; in getInstance()
246 private static Audio5 sInstance = new Audio5(); field in MediaStoreAudioTestHelper.Audio5
249 return sInstance; in getInstance()
[all …]
/cts/tests/filesystem/src/android/filesystem/cts/
DCarTestUtil.java44 private static CarTestUtil sInstance; field in CarTestUtil
57 if (sInstance == null) { in getInstance()
58 sInstance = new CarTestUtil(); in getInstance()
60 return sInstance; in getInstance()
/cts/tests/tests/telecom/src/android/telecom/cts/carmodetestapp/
DCtsCarModeInCallService.java37 private static CtsCarModeInCallService sInstance = null; field in CtsCarModeInCallService
47 sInstance = this; in onBind()
57 sInstance = null; in onUnbind()
86 return sInstance; in getInstance()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DNavigationBarInfo.java66 private static NavigationBarInfo sInstance; field in NavigationBarInfo
81 if (sInstance != null) { in getInstance()
82 return sInstance; in getInstance()
117 sInstance = new NavigationBarInfo(false, 0, false, false, false); in getInstance()
118 return sInstance; in getInstance()
140 sInstance = new NavigationBarInfo( in getInstance()
142 return sInstance; in getInstance()
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DStatsdAuthenticator.java40 private static Authenticator sInstance; field in StatsdAuthenticator
44 if (sInstance == null) { in onBind()
45 sInstance = new Authenticator(getApplicationContext()); in onBind()
48 return sInstance.getIBinder(); in onBind()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsAuthenticator.java41 private static Authenticator sInstance; field in BatteryStatsAuthenticator
45 if (sInstance == null) { in onBind()
46 sInstance = new Authenticator(getApplicationContext()); in onBind()
49 return sInstance.getIBinder(); in onBind()
/cts/hostsidetests/devicepolicy/app/AccountCheck/Auth/src/com/android/cts/devicepolicy/accountcheck/
DTestAuthenticator.java38 private static Authenticator sInstance; field in TestAuthenticator
42 if (sInstance == null) { in onBind()
43 sInstance = new Authenticator(getApplicationContext()); in onBind()
46 return sInstance.getIBinder(); in onBind()
/cts/tests/tests/syncmanager/apps/app1/src/android/content/syncmanager/cts/app/
DSyncManagerCtsAuthenticator.java42 private static Authenticator sInstance; field in SyncManagerCtsAuthenticator
46 if (sInstance == null) { in onBind()
47 sInstance = new Authenticator(getApplicationContext()); in onBind()
50 return sInstance.getIBinder(); in onBind()

123