Home
last modified time | relevance | path

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

12345678910>>...35

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DPorterDuffUtility.java64 return AlphaComposite.getInstance(AlphaComposite.CLEAR, alpha1); in getComposite()
66 return AlphaComposite.getInstance(AlphaComposite.SRC, alpha1); in getComposite()
68 return AlphaComposite.getInstance(AlphaComposite.DST, alpha1); in getComposite()
70 return AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha1); in getComposite()
72 return AlphaComposite.getInstance(AlphaComposite.DST_OVER, alpha1); in getComposite()
74 return AlphaComposite.getInstance(AlphaComposite.SRC_IN, alpha1); in getComposite()
76 return AlphaComposite.getInstance(AlphaComposite.DST_IN, alpha1); in getComposite()
78 return AlphaComposite.getInstance(AlphaComposite.SRC_OUT, alpha1); in getComposite()
80 return AlphaComposite.getInstance(AlphaComposite.DST_OUT, alpha1); in getComposite()
82 return AlphaComposite.getInstance(AlphaComposite.SRC_ATOP, alpha1); in getComposite()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCallManagerTest.java94 CallManager.getInstance().registerPhone(mPhone); in registerForPhone()
124 CallManager.getInstance().unregisterPhone(mPhone); in tearDown()
131 assertEquals(mPhone, CallManager.getInstance().getDefaultPhone()); in testSanity()
132 assertFalse(CallManager.getInstance().hasActiveBgCall()); in testSanity()
133 assertFalse(CallManager.getInstance().hasActiveRingingCall()); in testSanity()
134 assertFalse(CallManager.getInstance().hasActiveFgCall()); in testSanity()
136 assertEquals(mPhone, CallManager.getInstance().getRingingPhone()); in testSanity()
137 assertEquals(mPhone, CallManager.getInstance().getBgPhone()); in testSanity()
138 assertEquals(mPhone, CallManager.getInstance().getFgPhone()); in testSanity()
144 CallManager.getInstance().dial(mPhone, in testBasicDial()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationBoundResourceCacheTest.java45 assertNull(mCache.getInstance(-1, res, null)); in testGetEmpty()
52 assertEquals(5f, mCache.getInstance(1, res, null)); in testSetGet()
53 assertNotSame(5f, mCache.getInstance(1, res, null)); in testSetGet()
54 assertEquals(null, mCache.getInstance(1, res, getActivity().getTheme())); in testSetGet()
61 assertEquals(null, mCache.getInstance(1, res, null)); in testSetGetThemed()
62 assertEquals(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testSetGetThemed()
63 assertNotSame(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testSetGetThemed()
71 assertEquals(10f, mCache.getInstance(1, res, null)); in testMultiThreadPutGet()
72 assertNotSame(10f, mCache.getInstance(1, res, null)); in testMultiThreadPutGet()
73 assertEquals(5f, mCache.getInstance(1, res, getActivity().getTheme())); in testMultiThreadPutGet()
[all …]
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DBackgroundManagerTest.java251 BackgroundManager.getInstance(activity).attach(activity.getWindow()); in establishInOnAttachToWindow()
256 BackgroundManager.getInstance(activity).setColor(Color.BLUE); in establishInOnAttachToWindow()
262 BackgroundManager manager = BackgroundManager.getInstance(activity1); in establishInOnAttachToWindow()
274 BackgroundManager.getInstance(activity).attach(activity.getWindow()); in multipleSetBitmaps()
279 BackgroundManager.getInstance(activity).setColor(Color.BLUE); in multipleSetBitmaps()
286 final BackgroundManager manager = BackgroundManager.getInstance(activity1); in multipleSetBitmaps()
312 BackgroundManager.getInstance(activity).attach(activity.getWindow()); in multipleSetBitmapsAndColor()
317 BackgroundManager.getInstance(activity).setColor(Color.BLUE); in multipleSetBitmapsAndColor()
323 final BackgroundManager manager = BackgroundManager.getInstance(activity1); in multipleSetBitmapsAndColor()
355 BackgroundManager.getInstance(activity).attach(activity.getWindow()); in establishInOnCreate()
[all …]
/frameworks/base/core/java/android/webkit/
DCookieSyncManager.java81 public static CookieSyncManager getInstance() { in getInstance() method in CookieSyncManager
102 return getInstance(); in createInstance()
112 CookieManager.getInstance().flush(); in sync()
120 CookieManager.getInstance().flush(); in syncFromRamToFlash()
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/widget/
DEmojiEditableFactoryTest.java46 final Editable.Factory instance = EmojiEditableFactory.getInstance(); in testGetInstance()
49 final Editable.Factory instance2 = EmojiEditableFactory.getInstance(); in testGetInstance()
55 final Editable editable = EmojiEditableFactory.getInstance().newEditable("abc"); in testNewEditable_returnsEditable()
68 final Editable editable = EmojiEditableFactory.getInstance().newEditable(str); in testNewEditable_preservesCharSequenceData()
88 final Editable editable = EmojiEditableFactory.getInstance().newEditable(""); in testNewEditable_returnsEmojiSpannableIfWatcherClassExists()
91 final Editable editable = EmojiEditableFactory.getInstance().newEditable(""); in testNewEditable_returnsEmojiSpannableIfWatcherClassExists()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DShadowOverlayHelper.java282 return StaticShadowHelper.getInstance().supportsShadow(); in supportsShadow()
289 return ShadowHelper.getInstance().supportsDynamicShadow(); in supportsDynamicShadow()
318 StaticShadowHelper.getInstance().prepareParent(parent); in prepareParentForShadow()
361 Drawable d = ForegroundHelper.getInstance().getForeground(view); in setNoneWrapperOverlayColor()
365 ForegroundHelper.getInstance().setForeground(view, new ColorDrawable(color)); in setNoneWrapperOverlayColor()
389 RoundedRectHelper.getInstance().setClipToRoundedOutline(view, in onViewCreated()
394 Object tag = ShadowHelper.getInstance().addDynamicShadow( in onViewCreated()
456 ShadowHelper.getInstance().setShadowFocusLevel(impl, level); in setShadowFocusLevel()
459 StaticShadowHelper.getInstance().setShadowFocusLevel(impl, level); in setShadowFocusLevel()
DShadowOverlayContainer.java121 return StaticShadowHelper.getInstance().supportsShadow(); in supportsShadow()
128 return ShadowHelper.getInstance().supportsDynamicShadow(); in supportsDynamicShadow()
137 StaticShadowHelper.getInstance().prepareParent(parent); in prepareParentForShadow()
224 mShadowImpl = ShadowHelper.getInstance().addDynamicShadow( in initialize()
228 mShadowImpl = StaticShadowHelper.getInstance().addStaticShadow(this); in initialize()
300 RoundedRectHelper.getInstance().setClipToRoundedOutline(view, true); in wrap()
/frameworks/rs/rsov/compiler/unit_tests/
DTestRunner.h35 static TestRunnerContext &getInstance() { in getInstance() function
40 static void addTest(TestCase TC) { getInstance().tests.push_back(TC); } in addTest()
41 static size_t &getCheckSuccessNum() { return getInstance().checkSuccessNum; } in getCheckSuccessNum()
42 static size_t &getTotalCheckNum() { return getInstance().totalCheckNum; } in getTotalCheckNum()
46 for (auto &TC : getInstance().tests) { in runTests()
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityService.java546 return AccessibilityInteractionClient.getInstance().getWindows(mConnectionId); in getWindows()
572 return AccessibilityInteractionClient.getInstance().getRootInActiveWindow(mConnectionId); in getRootInActiveWindow()
581 AccessibilityInteractionClient.getInstance().getConnection(mConnectionId); in disableSelf()
625 AccessibilityInteractionClient.getInstance().getConnection(mConnectionId)); in getFingerprintGestureController()
657 AccessibilityInteractionClient.getInstance().getConnection( in dispatchGesture()
840 AccessibilityInteractionClient.getInstance().getConnection( in setMagnificationCallbackEnabled()
901 AccessibilityInteractionClient.getInstance().getConnection( in getScale()
930 AccessibilityInteractionClient.getInstance().getConnection( in getCenterX()
959 AccessibilityInteractionClient.getInstance().getConnection( in getCenterY()
993 AccessibilityInteractionClient.getInstance().getConnection( in getMagnificationRegion()
[all …]
/frameworks/base/core/java/android/text/method/
DDigitsKeyListener.java171 final DecimalFormatSymbols symbols = DecimalFormatSymbols.getInstance(locale); in DigitsKeyListener()
228 public static DigitsKeyListener getInstance() { in getInstance() method in DigitsKeyListener
229 return getInstance(false, false); in getInstance()
241 public static DigitsKeyListener getInstance(boolean sign, boolean decimal) { in getInstance() method in DigitsKeyListener
242 return getInstance(null, sign, decimal); in getInstance()
249 public static DigitsKeyListener getInstance(@Nullable Locale locale) { in getInstance() method in DigitsKeyListener
250 return getInstance(locale, false, false); in getInstance()
264 public static DigitsKeyListener getInstance( in getInstance() method in DigitsKeyListener
290 public static DigitsKeyListener getInstance(@NonNull String accepted) { in getInstance() method in DigitsKeyListener
309 public static DigitsKeyListener getInstance( in getInstance() method in DigitsKeyListener
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DLinearLayoutGridTest.java48 FocusFinder.getInstance().findNextFocus( in testGoDownFromMiddle()
57 FocusFinder.getInstance().findNextFocus( in testGoUpFromMiddle()
66 FocusFinder.getInstance().findNextFocus( in testGoRightFromMiddle()
75 FocusFinder.getInstance().findNextFocus( in testGoLeftFromMiddle()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/picker/
DPickerUtility.java40 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in DateConstant()
42 Calendar calendar = Calendar.getInstance(locale); in DateConstant()
59 DateFormatSymbols symbols = DateFormatSymbols.getInstance(locale); in TimeConstant()
91 return Calendar.getInstance(locale); in getCalendarForLocale()
94 Calendar newCalendar = Calendar.getInstance(locale); in getCalendarForLocale()
/frameworks/base/libs/hwui/tests/unit/
DLeakCheckTests.cpp43 Caches& caches = Caches::getInstance(); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
46 sLightGeometery, Caches::getInstance()); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
60 Caches& caches = Caches::getInstance(); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
63 sLightGeometery, Caches::getInstance()); in RENDERTHREAD_OPENGL_PIPELINE_TEST()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/reflection/
DSdkVersionTest.java36 … ModelClass view = ModelAnalyzer.getInstance().findClass("android.widget.TextView", null); in testApiVersionsFromResources()
47 ModelClass view = ModelAnalyzer.getInstance().findClass("android.view.View", null); in testNewApiMethod()
54 ModelClass view = ModelAnalyzer.getInstance() in testCustomCode()
62 ModelClass view = ModelAnalyzer.getInstance() in testSetForeground()
/frameworks/base/libs/hwui/renderthread/
DOpenGLPipeline.cpp45 Caches::getInstance().textureCache.resetMarkInUse(this); in makeCurrent()
71 auto& caches = Caches::getInstance(); in draw()
133 Caches::getInstance().textureState().activateTexture(0); in createLayer()
178 Caches& caches = Caches::getInstance(); in onDestroyHardwareResources()
189 auto& caches = Caches::getInstance(); in renderLayers()
199 return &Caches::getInstance().tasks; in getTaskManager()
236 TextureCache& cache = Caches::getInstance().textureCache; in pinImages()
245 Caches::getInstance().textureCache.resetMarkInUse(this); in unpinImages()
258 Caches::getInstance().textureCache.prefetch(bitmap); in prepareToDraw()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccStateChangedLauncherTest.java93 new UiccStateChangedLauncher(mContext, UiccController.getInstance()); in testProvisioningPackageSet()
95 verify(UiccController.getInstance(), times(1)).registerForIccChanged(eq(uiccLauncher), in testProvisioningPackageSet()
105 when(UiccController.getInstance().getUiccCards()).thenReturn(cards); in testProvisioningPackageSet()
120 when(UiccController.getInstance().getUiccCards()).thenReturn(cards); in testProvisioningPackageSet()
136 when(UiccController.getInstance().getUiccCards()).thenReturn(cards); in testProvisioningPackageSet()
157 new UiccStateChangedLauncher(mContext, UiccController.getInstance()); in testProvisioningPackageUnset()
158 verify(UiccController.getInstance(), never()).registerForIccChanged(eq(uiccLauncher), in testProvisioningPackageUnset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/
DPipUI.java50 final int processUser = SystemServicesProxy.getInstance(mContext).getProcessUser(); in start()
51 if (!SystemServicesProxy.getInstance(mContext).isSystemUser(processUser)) { in start()
56 ? com.android.systemui.pip.tv.PipManager.getInstance() in start()
57 : com.android.systemui.pip.phone.PipManager.getInstance(); in start()
/frameworks/base/services/core/java/com/android/server/accounts/
DCryptoHelper.java40 /* default */ synchronized static CryptoHelper getInstance() throws NoSuchAlgorithmException { in getInstance() method in CryptoHelper
48 KeyGenerator kgen = KeyGenerator.getInstance(KEY_ALGORITHM); in CryptoHelper()
51 kgen = KeyGenerator.getInstance(MAC_ALGORITHM); in CryptoHelper()
63 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in encryptBundle()
89 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in decryptBundle()
116 Mac mac = Mac.getInstance(MAC_ALGORITHM); in createMac()
/frameworks/base/services/core/java/com/android/server/
DSyntheticPasswordCrypto.java61 Cipher cipher = Cipher.getInstance(KeyProperties.KEY_ALGORITHM_AES + "/" in decrypt()
73 Cipher cipher = Cipher.getInstance( in encrypt()
117 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in decryptBlob()
135 KeyGenerator keyGenerator = KeyGenerator.getInstance(KeyProperties.KEY_ALGORITHM_AES); in createBlob()
138 KeyStore keyStore = KeyStore.getInstance("AndroidKeyStore"); in createBlob()
168 keyStore = KeyStore.getInstance("AndroidKeyStore"); in destroyBlobKey()
180 MessageDigest digest = MessageDigest.getInstance("SHA-512"); in personalisedHash()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DMacAuthenticatedInputStreamTest.java70 Mac mac = Mac.getInstance("HMAC-SHA1"); in testString1Authenticate_Success()
81 Mac mac = Mac.getInstance("HMAC-SHA1"); in testString1Authenticate_WrongTag_Failure()
92 Mac mac = Mac.getInstance("HMAC-SHA1"); in testString1Authenticate_NullTag_Failure()
103 Mac mac = Mac.getInstance("HMAC-SHA1"); in testString1Authenticate_ReadSingleByte_Success()
/frameworks/base/keystore/tests/src/android/security/keystore/
DAndroidKeyStoreTest.java728 mAndroidKeyStore = android.security.KeyStore.getInstance(); in setUp()
733 mKeyStore = java.security.KeyStore.getInstance("AndroidKeyStore"); in setUp()
910 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificate_Single_Encrypted_Success()
933 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificateAlias_CAEntry_Encrypted_Success()
953 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificateAlias_PrivateKeyEntry_Encrypted_Success()
978 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificateAlias_CAEntry_WithPrivateKeyUsingCA_Encrypted_Success()
991 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificateAlias_NonExist_Empty_Encrypted_Failure()
1006 CertificateFactory f = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificateAlias_NonExist_Encrypted_Failure()
1025 CertificateFactory cf = CertificateFactory.getInstance("X.509"); in testKeyStore_GetCertificateChain_SingleLength_Encrypted_Success()
1180 KeyFactory keyFact = KeyFactory.getInstance(keyType); in assertPrivateKeyEntryEquals()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DCertificateVerifier.java46 CertificateFactory factory = CertificateFactory.getInstance("X.509"); in verifyCaCert()
48 CertPathValidator.getInstance(CertPathValidator.getDefaultType()); in verifyCaCert()
51 KeyStore ks = KeyStore.getInstance("AndroidCAStore"); in verifyCaCert()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/
DSimulatedCommands.java469 SimulatedCommandsVerifier.getInstance().getCurrentCalls(result); in getCurrentCalls()
514 SimulatedCommandsVerifier.getInstance().dial(address, clirMode, result); in dial()
533 SimulatedCommandsVerifier.getInstance().dial(address, clirMode, uusInfo, result); in dial()
568 SimulatedCommandsVerifier.getInstance().getIMEI(result); in getIMEI()
585 SimulatedCommandsVerifier.getInstance().getIMEISV(result); in getIMEISV()
751 SimulatedCommandsVerifier.getInstance().acceptCall(result); in acceptCall()
1031 SimulatedCommandsVerifier.getInstance().sendBurstDtmf(dtmfString, on, off, result); in sendBurstDtmf()
1043 SimulatedCommandsVerifier.getInstance().sendSMS(smscPDU, pdu, result); in sendSMS()
1100 SimulatedCommandsVerifier.getInstance().setupDataCall(radioTechnology, dataProfile, in setupDataCall()
1117 SimulatedCommandsVerifier.getInstance().deactivateDataCall(cid, reason, result); in deactivateDataCall()
[all …]
/frameworks/support/core-utils/tests/java/android/support/v4/text/
DBidiFormatterTest.java37 private static final BidiFormatter LTR_FMT = BidiFormatter.getInstance(false /* LTR context */);
38 private static final BidiFormatter RTL_FMT = BidiFormatter.getInstance(true /* RTL context */);
59 assertEquals(false, BidiFormatter.getInstance(Locale.ENGLISH).isRtlContext()); in testIsRtlContext()
60 assertEquals(true, BidiFormatter.getInstance(true).isRtlContext()); in testIsRtlContext()
71 assertEquals(true, BidiFormatter.getInstance(true).isRtl(HE)); in testIsRtl()
72 assertEquals(true, BidiFormatter.getInstance(false).isRtl(HE)); in testIsRtl()
74 assertEquals(false, BidiFormatter.getInstance(true).isRtl(EN)); in testIsRtl()
75 assertEquals(false, BidiFormatter.getInstance(false).isRtl(EN)); in testIsRtl()
202 assertEquals(true, BidiFormatter.getInstance(true).isRtl(CS_HE)); in testCharSequenceApis()

12345678910>>...35