/development/tools/axl/ |
D | singletonmixin.py | 63 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/ |
D | Link.java | 50 t2.setMovementMethod(LinkMovementMethod.getInstance()); in onCreate() 65 t3.setMovementMethod(LinkMovementMethod.getInstance()); in onCreate() 82 t4.setMovementMethod(LinkMovementMethod.getInstance()); in onCreate()
|
D | LogTextBox.java | 52 return ScrollingMovementMethod.getInstance(); in getDefaultMovementMethod()
|
/development/samples/browseable/TextLinkify/src/com.example.android.textlinkify/ |
D | MainActivity.java | 81 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/ |
D | FingerprintModule.java | 73 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/ |
D | SecretKeyWrapper.java | 55 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/ |
D | MainActivity.java | 100 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/ |
D | SecureWebServer.java | 60 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/ |
D | DisplayActivity.java | 188 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);
|
D | BroadcastNotifier.java | 37 mBroadcaster = LocalBroadcastManager.getInstance(context); in BroadcastNotifier()
|
/development/samples/browseable/BasicAndroidKeyStore/src/com.example.android.basicandroidkeystore/ |
D | BasicAndroidKeyStoreFragment.java | 186 .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/ |
D | BackgroundHelper.java | 113 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/ |
D | MainActivity.java | 70 LocalBroadcastManager.getInstance(this).registerReceiver(mReceiver, in onResume() 78 LocalBroadcastManager.getInstance(this).unregisterReceiver(mReceiver); in onPause()
|
/development/samples/ApiDemos/src/com/example/android/apis/security/ |
D | KeyStoreUsage.java | 270 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/ |
D | AlarmUtil.java | 51 Calendar alarmTime = Calendar.getInstance(); in scheduleAlarm() 89 Calendar alarmTime = Calendar.getInstance(); in getNextAlarmTime()
|
D | Alarm.java | 152 Calendar calendar = Calendar.getInstance(); in compareTo() 158 Calendar otherCal = Calendar.getInstance(); in compareTo()
|
/development/apps/WidgetPreview/src/com/android/widgetpreview/ |
D | WidgetPreviewActivity.java | 82 … 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/ |
D | NewsSource.java | 35 public static NewsSource getInstance() { in getInstance() method in NewsSource
|
D | ArticleActivity.java | 61 NewsArticle article = NewsSource.getInstance().getCategory(mCatIndex).getArticle(mArtIndex); in onCreate()
|
/development/samples/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/ |
D | MainActivity.java | 78 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/ |
D | ContactAccessor.java | 39 public static ContactAccessor getInstance() { in getInstance() method in ContactAccessor
|
/development/samples/training/basic/ActivityLifecycle/src/com/example/android/lifecycle/util/ |
D | Utils.java | 26 private static StatusTracker mStatusTracker = StatusTracker.getInstance();
|
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/ |
D | SchedulerFragment.java | 67 LocalBroadcastManager.getInstance(getActivity()) in onActivityCreated() 106 LocalBroadcastManager.getInstance(getActivity()) in onDestroy()
|
/development/samples/Support4Demos/src/com/example/android/supportv4/content/ |
D | LocalServiceBroadcaster.java | 63 mLocalBroadcastManager = LocalBroadcastManager.getInstance(this); in onCreate() 136 mLocalBroadcastManager = LocalBroadcastManager.getInstance(this); in onCreate()
|
/development/samples/Support4Demos/src/com/example/android/supportv4/text/ |
D | BidiFormatterSupport.java | 46 String wrappedPhone = BidiFormatter.getInstance(true /* rtlContext */).unicodeWrap(phone); in onCreate()
|