Home
last modified time | relevance | path

Searched refs:getInstance (Results 1 – 25 of 98) sorted by relevance

1234

/development/tools/axl/
Dsingletonmixin.py63 def getInstance(cls, *lstArgs): member in Singleton
79 getInstance = classmethod(getInstance) variable in Singleton
122 a1 = A.getInstance()
123 a2 = A.getInstance()
139 b1 = B.getInstance('arg1 value', 'arg2 value')
140 b2 = B.getInstance()
155 self.assertRaises(SingletonException, B.getInstance)
192 b1 = B.getInstance('arg1 value', 'arg2 value')
205 a = A.getInstance()
208 b = B.getInstance()
[all …]
/development/samples/browseable/WearNotifications/Wearable/src/com.example.android.wearable.wear.wearnotifications/mock/
DMockDatabase.java15 return BigTextStyleReminderAppData.getInstance(); in getBigTextStyleData()
19 return BigPictureStyleSocialAppData.getInstance(); in getBigPictureStyleData()
23 return InboxStyleEmailAppData.getInstance(); in getInboxStyleData()
27 return MessagingStyleCommsAppData.getInstance(); in getMessagingStyleData()
47 public static BigTextStyleReminderAppData getInstance() { in getInstance() method in MockDatabase.BigTextStyleReminderAppData
122 public static BigPictureStyleSocialAppData getInstance() { in getInstance() method in MockDatabase.BigPictureStyleSocialAppData
207 public static InboxStyleEmailAppData getInstance() { in getInstance() method in MockDatabase.InboxStyleEmailAppData
305 public static MessagingStyleCommsAppData getInstance() { in getInstance() method in MockDatabase.MessagingStyleCommsAppData
/development/samples/browseable/WearNotifications/Application/src/com.example.android.wearable.wear.wearnotifications/mock/
DMockDatabase.java15 return BigTextStyleReminderAppData.getInstance(); in getBigTextStyleData()
19 return BigPictureStyleSocialAppData.getInstance(); in getBigPictureStyleData()
23 return InboxStyleEmailAppData.getInstance(); in getInboxStyleData()
27 return MessagingStyleCommsAppData.getInstance(); in getMessagingStyleData()
47 public static BigTextStyleReminderAppData getInstance() { in getInstance() method in MockDatabase.BigTextStyleReminderAppData
122 public static BigPictureStyleSocialAppData getInstance() { in getInstance() method in MockDatabase.BigPictureStyleSocialAppData
207 public static InboxStyleEmailAppData getInstance() { in getInstance() method in MockDatabase.InboxStyleEmailAppData
305 public static MessagingStyleCommsAppData getInstance() { in getInstance() method in MockDatabase.MessagingStyleCommsAppData
/development/samples/ApiDemos/src/com/example/android/apis/text/
DLink.java50 t2.setMovementMethod(LinkMovementMethod.getInstance()); in onCreate()
65 t3.setMovementMethod(LinkMovementMethod.getInstance()); in onCreate()
82 t4.setMovementMethod(LinkMovementMethod.getInstance()); in onCreate()
DLogTextBox.java52 return ScrollingMovementMethod.getInstance(); in getDefaultMovementMethod()
/development/samples/browseable/TextLinkify/src/com.example.android.textlinkify/
DMainActivity.java81 textViewResource.setMovementMethod(LinkMovementMethod.getInstance()); in onCreate()
99 textViewHtml.setMovementMethod(LinkMovementMethod.getInstance()); in onCreate()
134 textViewSpan.setMovementMethod(LinkMovementMethod.getInstance()); in onCreate()
/development/samples/browseable/AsymmetricFingerprintDialog/src/com.example.android.asymmetricfingerprintdialog/
DFingerprintModule.java73 return KeyStore.getInstance("AndroidKeyStore"); in providesKeystore()
82 return KeyPairGenerator.getInstance(KeyProperties.KEY_ALGORITHM_EC, "AndroidKeyStore"); in providesKeyPairGenerator()
91 return Signature.getInstance("SHA256withECDSA"); in providesSignature()
/development/samples/Vault/src/com/example/android/vault/
DSecretKeyWrapper.java55 mCipher = Cipher.getInstance("RSA/ECB/PKCS1Padding"); in SecretKeyWrapper()
57 final KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in SecretKeyWrapper()
85 final KeyPairGenerator gen = KeyPairGenerator.getInstance("RSA", "AndroidKeyStore"); in generateKeyPair()
/development/samples/browseable/ConfirmCredential/src/com.example.android.confirmcredential/
DMainActivity.java100 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in tryEncrypt()
103 Cipher cipher = Cipher.getInstance( in tryEncrypt()
141 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createKey()
143 KeyGenerator keyGenerator = KeyGenerator.getInstance( in createKey()
/development/samples/KeyChainDemo/src/com/example/android/keychain/
DSecureWebServer.java60 SSLContext sslContext = SSLContext.getInstance("TLS"); in SecureWebServer()
64 .getInstance(KeyManagerFactory.getDefaultAlgorithm()); in SecureWebServer()
67 KeyStore ks = KeyStore.getInstance("PKCS12"); in SecureWebServer()
/development/samples/training/threadsample/src/com/example/android/threadsample/
DDisplayActivity.java188 LocalBroadcastManager.getInstance(this).registerReceiver(
204 LocalBroadcastManager.getInstance(this).registerReceiver(
212 LocalBroadcastManager.getInstance(this).registerReceiver(
274 LocalBroadcastManager.getInstance(this).unregisterReceiver(mDownloadStateReceiver);
279 LocalBroadcastManager.getInstance(this).unregisterReceiver(this.mFragmentDisplayer);
DBroadcastNotifier.java37 mBroadcaster = LocalBroadcastManager.getInstance(context); in BroadcastNotifier()
/development/samples/browseable/BasicAndroidKeyStore/src/com.example.android.basicandroidkeystore/
DBasicAndroidKeyStoreFragment.java170 .getInstance(SecurityConstants.TYPE_RSA, in createKeys()
227 KeyStore ks = KeyStore.getInstance(SecurityConstants.KEYSTORE_PROVIDER_ANDROID_KEYSTORE); in signData()
265 Signature s = Signature.getInstance(SecurityConstants.SIGNATURE_SHA256withRSA); in signData()
312 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in verifyData()
335 Signature s = Signature.getInstance(SecurityConstants.SIGNATURE_SHA256withRSA); in verifyData()
/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/
DMainActivity.java70 LocalBroadcastManager.getInstance(this).registerReceiver(mReceiver, in onResume()
78 LocalBroadcastManager.getInstance(this).unregisterReceiver(mReceiver); in onPause()
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
DNewsSource.java35 public static NewsSource getInstance() { in getInstance() method in NewsSource
DArticleActivity.java61 NewsArticle article = NewsSource.getInstance().getCategory(mCatIndex).getArticle(mArtIndex); in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/security/
DKeyStoreUsage.java270 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in doInBackground()
312 KeyPairGenerator kpg = KeyPairGenerator.getInstance( in doInBackground()
360 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in doInBackground()
367 Signature s = Signature.getInstance("SHA256withECDSA"); in doInBackground()
431 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in doInBackground()
438 Signature s = Signature.getInstance("SHA256withECDSA"); in doInBackground()
496 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in doInBackground()
/development/apps/WidgetPreview/src/com/android/widgetpreview/
DWidgetPreviewActivity.java82 … AppWidgetManager.getInstance(getBaseContext()).bindAppWidgetIdIfAllowed(id, info.provider); in onCreate()
97 AppWidgetProviderInfo info = AppWidgetManager.getInstance( in onRetainNonConfigurationInstance()
147 AppWidgetManager.getInstance(getBaseContext()).getAppWidgetInfo(appWidgetId); in setAppWidget()
171 AppWidgetManager.getInstance(getBaseContext()).getAppWidgetInfo(appWidgetId); in finishSetAppWidget()
183 AppWidgetManager.getInstance(getBaseContext()).getAppWidgetInfo(appWidgetId).label; in finishSetAppWidget()
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarm.java130 Calendar calendar = Calendar.getInstance(); in compareTo()
136 Calendar otherCal = Calendar.getInstance(); in compareTo()
DAlarmUtil.java54 Calendar alarmTime = Calendar.getInstance(); in scheduleAlarm()
91 Calendar alarmTime = Calendar.getInstance(); in getNextAlarmTime()
/development/samples/BusinessCard/src/com/example/android/businesscard/
DContactAccessor.java39 public static ContactAccessor getInstance() { in getInstance() method in ContactAccessor
/development/samples/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/
DMainActivity.java79 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in onCreate()
85 .getInstance(KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore"); in onCreate()
92 defaultCipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in onCreate()
95 cipherNotInvalidated = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in onCreate()
/development/samples/training/basic/ActivityLifecycle/src/com/example/android/lifecycle/util/
DUtils.java26 private static StatusTracker mStatusTracker = StatusTracker.getInstance();
/development/apps/Development/src/com/android/development/
DLogTextBox.java60 return ScrollingMovementMethod.getInstance(); in getDefaultMovementMethod()
/development/samples/ApiDemos/src/com/example/android/apis/appwidget/
DExampleBroadcastReceiver.java43 AppWidgetManager gm = AppWidgetManager.getInstance(context); in onReceive()

1234