/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
D | PorterDuffUtility.java | 66 return AlphaComposite.getInstance(AlphaComposite.CLEAR, alpha1); in getComposite() 68 return AlphaComposite.getInstance(AlphaComposite.SRC, alpha1); in getComposite() 70 return AlphaComposite.getInstance(AlphaComposite.DST, alpha1); in getComposite() 72 return AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha1); in getComposite() 74 return AlphaComposite.getInstance(AlphaComposite.DST_OVER, alpha1); in getComposite() 76 return AlphaComposite.getInstance(AlphaComposite.SRC_IN, alpha1); in getComposite() 78 return AlphaComposite.getInstance(AlphaComposite.DST_IN, alpha1); in getComposite() 80 return AlphaComposite.getInstance(AlphaComposite.SRC_OUT, alpha1); in getComposite() 82 return AlphaComposite.getInstance(AlphaComposite.DST_OUT, alpha1); in getComposite() 84 return AlphaComposite.getInstance(AlphaComposite.SRC_ATOP, alpha1); in getComposite() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CallManagerTest.java | 94 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/ |
D | ConfigurationBoundResourceCacheTest.java | 45 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/opt/net/wifi/service/java/com/android/server/wifi/nan/ |
D | WifiNanNative.java | 51 public static WifiNanNative getInstance() { in getInstance() method in WifiNanNative 118 WifiNanStateManager.getInstance().createNextTransactionId(), in isNanInit() 470 WifiNanStateManager.getInstance().onConfigCompleted(transactionId); in onNanNotifyResponse() 472 WifiNanStateManager.getInstance().onConfigFailed(transactionId, in onNanNotifyResponse() 484 WifiNanStateManager.getInstance().onMessageSendSuccess(transactionId); in onNanNotifyResponse() 486 WifiNanStateManager.getInstance().onMessageSendFail(transactionId, in onNanNotifyResponse() 497 WifiNanStateManager.getInstance().onUnknownTransaction(responseType, transactionId, in onNanNotifyResponse() 515 WifiNanStateManager.getInstance().onPublishSuccess(transactionId, pubSubId); in onNanNotifyResponsePublishSubscribe() 517 WifiNanStateManager.getInstance().onPublishFail(transactionId, in onNanNotifyResponsePublishSubscribe() 523 WifiNanStateManager.getInstance().onSubscribeSuccess(transactionId, pubSubId); in onNanNotifyResponsePublishSubscribe() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ShadowOverlayHelper.java | 282 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()
|
D | ShadowOverlayContainer.java | 122 return StaticShadowHelper.getInstance().supportsShadow(); in supportsShadow() 129 return ShadowHelper.getInstance().supportsDynamicShadow(); in supportsDynamicShadow() 138 StaticShadowHelper.getInstance().prepareParent(parent); in prepareParentForShadow() 225 mShadowImpl = ShadowHelper.getInstance().addDynamicShadow( in initialize() 229 mShadowImpl = StaticShadowHelper.getInstance().addStaticShadow(this); in initialize() 301 RoundedRectHelper.getInstance().setClipToRoundedOutline(view, true); in wrap()
|
/frameworks/base/core/java/android/webkit/ |
D | CookieSyncManager.java | 80 public static synchronized CookieSyncManager getInstance() { in getInstance() method in CookieSyncManager 98 return getInstance(); in createInstance() 107 CookieManager.getInstance().flush(); in sync() 115 CookieManager.getInstance().flush(); in syncFromRamToFlash()
|
D | CookieManager.java | 38 public static synchronized CookieManager getInstance() { in getInstance() method in CookieManager 240 return getInstance().allowFileSchemeCookiesImpl(); in allowFileSchemeCookies() 264 getInstance().setAcceptFileSchemeCookiesImpl(accept); in setAcceptFileSchemeCookies()
|
/frameworks/base/core/java/android/accessibilityservice/ |
D | AccessibilityService.java | 533 return AccessibilityInteractionClient.getInstance().getWindows(mConnectionId); in getWindows() 559 return AccessibilityInteractionClient.getInstance().getRootInActiveWindow(mConnectionId); in getRootInActiveWindow() 568 AccessibilityInteractionClient.getInstance().getConnection(mConnectionId); in disableSelf() 627 AccessibilityInteractionClient.getInstance().getConnection( in dispatchGesture() 796 AccessibilityInteractionClient.getInstance().getConnection( in setMagnificationCallbackEnabled() 857 AccessibilityInteractionClient.getInstance().getConnection( in getScale() 886 AccessibilityInteractionClient.getInstance().getConnection( in getCenterX() 915 AccessibilityInteractionClient.getInstance().getConnection( in getCenterY() 949 AccessibilityInteractionClient.getInstance().getConnection( in getMagnificationRegion() 978 AccessibilityInteractionClient.getInstance().getConnection( in reset() [all …]
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
D | LinearLayoutGridTest.java | 48 FocusFinder.getInstance().findNextFocus( in testGoDownFromMiddle() 57 FocusFinder.getInstance().findNextFocus( in testGoUpFromMiddle() 66 FocusFinder.getInstance().findNextFocus( in testGoRightFromMiddle() 75 FocusFinder.getInstance().findNextFocus( in testGoLeftFromMiddle()
|
/frameworks/base/libs/hwui/tests/unit/ |
D | LeakCheckTests.cpp | 43 Caches& caches = Caches::getInstance(); in RENDERTHREAD_TEST() 46 sLightGeometery, Caches::getInstance()); in RENDERTHREAD_TEST() 60 Caches& caches = Caches::getInstance(); in RENDERTHREAD_TEST() 63 sLightGeometery, Caches::getInstance()); in RENDERTHREAD_TEST()
|
D | FrameBuilderTests.cpp | 137 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST() 165 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST() 182 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST() 217 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST() 243 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST() 313 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST() 334 FrameBuilder frameBuilder(emptyLayerUpdateQueue, sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST() 356 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST() 384 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST() 427 sLightGeometry, Caches::getInstance()); in RENDERTHREAD_TEST() [all …]
|
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/reflection/ |
D | SdkVersionTest.java | 36 … 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/core/java/android/net/ |
D | ConnectivityThread.java | 36 private static synchronized ConnectivityThread getInstance() { in getInstance() method in ConnectivityThread 45 return getInstance(); in get() 49 return getInstance().getLooper(); in getInstanceLooper()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | CryptoHelper.java | 40 /* 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/keystore/tests/src/android/security/keystore/ |
D | AndroidKeyStoreTest.java | 728 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/base/core/tests/coretests/src/android/content/pm/ |
D | MacAuthenticatedInputStreamTest.java | 70 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/support/core-utils/tests/java/android/support/v4/text/ |
D | BidiFormatterTest.java | 36 private static final BidiFormatter LTR_FMT = BidiFormatter.getInstance(false /* LTR context */); 37 private static final BidiFormatter RTL_FMT = BidiFormatter.getInstance(true /* RTL context */); 58 assertEquals(false, BidiFormatter.getInstance(Locale.ENGLISH).isRtlContext()); in testIsRtlContext() 59 assertEquals(true, BidiFormatter.getInstance(true).isRtlContext()); in testIsRtlContext() 70 assertEquals(true, BidiFormatter.getInstance(true).isRtl(HE)); in testIsRtl() 71 assertEquals(true, BidiFormatter.getInstance(false).isRtl(HE)); in testIsRtl() 73 assertEquals(false, BidiFormatter.getInstance(true).isRtl(EN)); in testIsRtl() 74 assertEquals(false, BidiFormatter.getInstance(false).isRtl(EN)); in testIsRtl() 201 assertEquals(true, BidiFormatter.getInstance(true).isRtl(CS_HE)); in testCharSequenceApis()
|
/frameworks/base/core/java/android/text/method/ |
D | TextKeyListener.java | 82 public static TextKeyListener getInstance(boolean autotext, in getInstance() method in TextKeyListener 97 public static TextKeyListener getInstance() { in getInstance() method in TextKeyListener 98 return getInstance(false, Capitalize.NONE); in getInstance() 191 return QwertyKeyListener.getInstance(mAutoText, mAutoCap); in getKeyListener() 193 return MultiTapKeyListener.getInstance(mAutoText, mAutoCap); in getKeyListener() 204 return NullKeyListener.getInstance(); in getKeyListener() 234 public static NullKeyListener getInstance() { in getInstance() method in TextKeyListener.NullKeyListener
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | TimeUtilsTest.java | 40 Calendar c = Calendar.getInstance(tz); in testMainstream() 61 Calendar c = Calendar.getInstance(tz); in testWeird() 77 Calendar c = Calendar.getInstance(tz); in testOld() 391 Calendar c = Calendar.getInstance(tz); in testWorld() 415 Calendar c = Calendar.getInstance(tz); in testWorldWeird()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/test/ |
D | SimulatedCommands.java | 461 SimulatedCommandsVerifier.getInstance().getCurrentCalls(result); in getCurrentCalls() 506 SimulatedCommandsVerifier.getInstance().dial(address, clirMode, result); in dial() 525 SimulatedCommandsVerifier.getInstance().dial(address, clirMode, uusInfo, result); in dial() 560 SimulatedCommandsVerifier.getInstance().getIMEI(result); in getIMEI() 577 SimulatedCommandsVerifier.getInstance().getIMEISV(result); in getIMEISV() 743 SimulatedCommandsVerifier.getInstance().acceptCall(result); in acceptCall() 1023 SimulatedCommandsVerifier.getInstance().sendBurstDtmf(dtmfString, on, off, result); in sendBurstDtmf() 1035 SimulatedCommandsVerifier.getInstance().sendSMS(smscPDU, pdu, result); in sendSMS() 1092 SimulatedCommandsVerifier.getInstance().setupDataCall(radioTechnology, profile, apn, user, in setupDataCall() 1120 SimulatedCommandsVerifier.getInstance().deactivateDataCall(cid, reason, result); in deactivateDataCall() [all …]
|
/frameworks/base/core/java/android/security/ |
D | NetworkSecurityPolicy.java | 46 public static NetworkSecurityPolicy getInstance() { in getInstance() method in NetworkSecurityPolicy 69 return libcore.net.NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted(); in isCleartextTrafficPermitted() 79 return libcore.net.NetworkSecurityPolicy.getInstance() in isCleartextTrafficPermitted()
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/ |
D | ModelClass.java | 52 for (ModelClass listType : ModelAnalyzer.getInstance().getListTypes()) { in isList() 66 return ModelAnalyzer.getInstance().getMapType().isAssignableFrom(erasure()); in isMap() 73 return ModelAnalyzer.getInstance().getStringType().equals(this); in isString() 153 return ModelAnalyzer.getInstance().getObjectType().equals(this); in isObject() 165 return ModelAnalyzer.getInstance().getViewDataBindingType().isAssignableFrom(this); in isViewDataBinding() 172 return ModelAnalyzer.getInstance().getViewStubType().isAssignableFrom(this); in extendsViewStub() 180 ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in isObservable() 193 for (ModelClass observableField : ModelAnalyzer.getInstance().getObservableFieldTypes()) { in isObservableField() 388 ModelAnalyzer.getInstance().loadPrimitive("int"), 0, 0); in findGetterOrField()
|
/frameworks/base/libs/hwui/tests/microbench/ |
D | FrameBuilderBench.cpp | 66 sLightGeometry, Caches::getInstance()); in BM_FrameBuilder_defer() 79 Caches& caches = Caches::getInstance(); in BM_FrameBuilder_deferAndRender() 122 sLightGeometry, Caches::getInstance()); in BM_FrameBuilder_defer_scene() 137 Caches& caches = Caches::getInstance(); in BM_FrameBuilder_deferAndRender_scene() 142 sLightGeometry, Caches::getInstance()); in BM_FrameBuilder_deferAndRender_scene()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | InputConnectionWrapper.java | 70 private static InputContextCallback getInstance() { in getInstance() method in InputConnectionWrapper.InputContextCallback 231 InputContextCallback callback = InputContextCallback.getInstance(); in getTextAfterCursor() 249 InputContextCallback callback = InputContextCallback.getInstance(); in getTextBeforeCursor() 271 InputContextCallback callback = InputContextCallback.getInstance(); in getSelectedText() 289 InputContextCallback callback = InputContextCallback.getInstance(); in getCursorCapsMode() 307 InputContextCallback callback = InputContextCallback.getInstance(); in getExtractedText() 494 InputContextCallback callback = InputContextCallback.getInstance(); in requestCursorUpdates() 534 InputContextCallback callback = InputContextCallback.getInstance(); in commitContent()
|