Home
last modified time | relevance | path

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

12345

/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/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.java186 .getInstance(SecurityConstants.TYPE_RSA, in createKeys()
205 KeyStore ks = KeyStore.getInstance(SecurityConstants.KEYSTORE_PROVIDER_ANDROID_KEYSTORE); in signData()
243 Signature s = Signature.getInstance(SecurityConstants.SIGNATURE_SHA256withRSA); in signData()
290 KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); in verifyData()
313 Signature s = Signature.getInstance(SecurityConstants.SIGNATURE_SHA256withRSA); in verifyData()
/development/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DBackgroundHelper.java113 BackgroundManager backgroundManager = BackgroundManager.getInstance(activity); in applyBackground()
144 BackgroundManager.getInstance(activity).attach(activity.getWindow()); in attach()
152 BackgroundManager.getInstance(activity).release(); in release()
/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/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/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarmUtil.java51 Calendar alarmTime = Calendar.getInstance(); in scheduleAlarm()
89 Calendar alarmTime = Calendar.getInstance(); in getNextAlarmTime()
DAlarm.java152 Calendar calendar = Calendar.getInstance(); in compareTo()
158 Calendar otherCal = Calendar.getInstance(); in compareTo()
/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/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/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/
DMainActivity.java78 mKeyStore = KeyStore.getInstance("AndroidKeyStore"); in onCreate()
84 .getInstance(KeyProperties.KEY_ALGORITHM_AES, "AndroidKeyStore"); in onCreate()
89 mCipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in onCreate()
/development/samples/BusinessCard/src/com/example/android/businesscard/
DContactAccessor.java39 public static ContactAccessor getInstance() { in getInstance() method in ContactAccessor
/development/samples/training/basic/ActivityLifecycle/src/com/example/android/lifecycle/util/
DUtils.java26 private static StatusTracker mStatusTracker = StatusTracker.getInstance();
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/
DSchedulerFragment.java67 LocalBroadcastManager.getInstance(getActivity()) in onActivityCreated()
106 LocalBroadcastManager.getInstance(getActivity()) in onDestroy()
/development/samples/Support4Demos/src/com/example/android/supportv4/content/
DLocalServiceBroadcaster.java63 mLocalBroadcastManager = LocalBroadcastManager.getInstance(this); in onCreate()
136 mLocalBroadcastManager = LocalBroadcastManager.getInstance(this); in onCreate()
/development/samples/Support4Demos/src/com/example/android/supportv4/text/
DBidiFormatterSupport.java46 String wrappedPhone = BidiFormatter.getInstance(true /* rtlContext */).unicodeWrap(phone); in onCreate()

12345