Home
last modified time | relevance | path

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

12345

/developers/build/prebuilts/gradle/WearNotifications/Shared/src/main/java/com/example/android/wearable/wear/common/mock/
DMockDatabase.java32 return BigTextStyleReminderAppData.getInstance(); in getBigTextStyleData()
36 return BigPictureStyleSocialAppData.getInstance(); in getBigPictureStyleData()
40 return InboxStyleEmailAppData.getInstance(); in getInboxStyleData()
44 return MessagingStyleCommsAppData.getInstance(); in getMessagingStyleData()
59 public static BigTextStyleReminderAppData getInstance() { in getInstance() method in MockDatabase.BigTextStyleReminderAppData
136 public static BigPictureStyleSocialAppData getInstance() { in getInstance() method in MockDatabase.BigPictureStyleSocialAppData
221 public static InboxStyleEmailAppData getInstance() { in getInstance() method in MockDatabase.InboxStyleEmailAppData
320 public static MessagingStyleCommsAppData getInstance() { in getInstance() method in MockDatabase.MessagingStyleCommsAppData
/developers/build/prebuilts/gradle/TextLinkify/Application/src/main/java/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()
/developers/samples/android/views/TextLinkify/Application/src/main/java/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()
/developers/samples/android/wearable/wear/WearNotifications/Shared/src/main/java/com/example/android/wearable/wear/common/mock/
DMockDatabase.java37 return BigTextStyleReminderAppData.getInstance(); in getBigTextStyleData()
41 return BigPictureStyleSocialAppData.getInstance(); in getBigPictureStyleData()
45 return InboxStyleEmailAppData.getInstance(); in getInboxStyleData()
49 return MessagingStyleCommsAppData.getInstance(context); in getMessagingStyleData()
62 public static BigTextStyleReminderAppData getInstance() { in getInstance() method in MockDatabase.BigTextStyleReminderAppData
137 public static BigPictureStyleSocialAppData getInstance() { in getInstance() method in MockDatabase.BigPictureStyleSocialAppData
220 public static InboxStyleEmailAppData getInstance() { in getInstance() method in MockDatabase.InboxStyleEmailAppData
316 public static MessagingStyleCommsAppData getInstance(Context context) { in getInstance() method in MockDatabase.MessagingStyleCommsAppData
/developers/build/prebuilts/gradle/AsymmetricFingerprintDialog/Application/src/main/java/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()
/developers/samples/android/security/AsymmetricFingerprintDialog/Application/src/main/java/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()
/developers/build/prebuilts/gradle/ConfirmCredential/Application/src/main/java/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()
/developers/samples/android/security/ConfirmCredential/Application/src/main/java/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()
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
DCreditCardExpirationDateView.kt39 private val startYear = Calendar.getInstance().get(Calendar.YEAR)
74 AutofillValue.forDate(Calendar.getInstance().apply { in getAutofillValue()
89 val calendar = Calendar.getInstance().apply { in autofill()
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/app/
DCreditCardExpirationDateView.kt39 private val startYear = Calendar.getInstance().get(Calendar.YEAR)
74 AutofillValue.forDate(Calendar.getInstance().apply { in getAutofillValue()
89 val calendar = Calendar.getInstance().apply { in autofill()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DAuthActivity.java103 DefaultFieldTypesLocalJsonSource.getInstance(getResources(), in onCreate()
105 AutofillDao autofillDao = AutofillDatabase.getInstance(this, in onCreate()
107 mLocalAutofillDataSource = LocalAutofillDataSource.getInstance(sharedPreferences, in onCreate()
109 mDalRepository = DigitalAssetLinksRepository.getInstance(getPackageManager()); in onCreate()
112 mPreferences = MyPreferences.getInstance(this); in onCreate()
122 String correctPassword = MyPreferences.getInstance(AuthActivity.this).getMasterPassword(); in login()
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DAuthActivity.java103 DefaultFieldTypesLocalJsonSource.getInstance(getResources(), in onCreate()
105 AutofillDao autofillDao = AutofillDatabase.getInstance(this, in onCreate()
107 mLocalAutofillDataSource = LocalAutofillDataSource.getInstance(sharedPreferences, in onCreate()
109 mDalRepository = DigitalAssetLinksRepository.getInstance(getPackageManager()); in onCreate()
112 mPreferences = MyPreferences.getInstance(this); in onCreate()
122 String correctPassword = MyPreferences.getInstance(AuthActivity.this).getMasterPassword(); in login()
DMyAutofillService.java85 mPreferences = MyPreferences.getInstance(this); in onCreate()
90 DefaultFieldTypesLocalJsonSource.getInstance(getResources(), in onCreate()
92 AutofillDao autofillDao = AutofillDatabase.getInstance(this, in onCreate()
94 mLocalAutofillDataSource = LocalAutofillDataSource.getInstance(localAfDataSourceSharedPrefs, in onCreate()
96 mDalRepository = DigitalAssetLinksRepository.getInstance(getPackageManager()); in onCreate()
97 mPackageVerificationRepository = SharedPrefsPackageVerificationRepository.getInstance(this); in onCreate()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/
DSecurityHelper.java52 CertificateFactory factory = CertificateFactory.getInstance("X509"); in getFingerprint()
54 MessageDigest md = MessageDigest.getInstance("SHA256"); in getFingerprint()
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/util/
DSecurityHelper.java52 CertificateFactory factory = CertificateFactory.getInstance("X509"); in getFingerprint()
54 MessageDigest md = MessageDigest.getInstance("SHA256"); in getFingerprint()
/developers/samples/android/deprecated/wearable/wear/ElizaChat/Application/src/main/java/com/example/android/wearable/elizachat/
DMainActivity.java70 LocalBroadcastManager.getInstance(this).registerReceiver(mReceiver, in onResume()
78 LocalBroadcastManager.getInstance(this).unregisterReceiver(mReceiver); in onPause()
/developers/build/prebuilts/gradle/ElizaChat/Application/src/main/java/com/example/android/wearable/elizachat/
DMainActivity.java70 LocalBroadcastManager.getInstance(this).registerReceiver(mReceiver, in onResume()
78 LocalBroadcastManager.getInstance(this).unregisterReceiver(mReceiver); in onPause()
/developers/samples/android/notification/Bubbles/app/src/main/java/com/example/android/bubbles/ui/main/
DMainViewModel.kt25 repository: ChatRepository = DefaultChatRepository.getInstance(application)
/developers/samples/android/security/keystore/BasicAndroidKeyStore/Application/src/main/java/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()
/developers/build/prebuilts/gradle/BasicAndroidKeyStore/Application/src/main/java/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()
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCreditCardExpirationDateCompoundView.java76 int year = Calendar.getInstance().get(Calendar.YEAR); in CreditCardExpirationDateCompoundView()
100 Calendar calendar = Calendar.getInstance(); in getAutofillValue()
118 Calendar calendar = Calendar.getInstance(); in autofill()
/developers/build/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/
DCreditCardExpirationDateCompoundView.java76 int year = Calendar.getInstance().get(Calendar.YEAR); in CreditCardExpirationDateCompoundView()
100 Calendar calendar = Calendar.getInstance(); in getAutofillValue()
118 Calendar calendar = Calendar.getInstance(); in autofill()
/developers/build/prebuilts/gradle/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DMockDatabase.java28 return MessagingStyleCommsAppData.getInstance(); in getMessagingStyleData()
58 public static MessagingStyleCommsAppData getInstance() { in getInstance() method in MockDatabase.MessagingStyleCommsAppData
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/
DPackageVerifier.kt54 val factory = CertificateFactory.getInstance("X509") in <lambda>()
56 val md = MessageDigest.getInstance("SHA256") in <lambda>()
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/
DPackageVerifier.kt54 val factory = CertificateFactory.getInstance("X509") in <lambda>()
56 val md = MessageDigest.getInstance("SHA256") in <lambda>()

12345