Home
last modified time | relevance | path

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

12345678910>>...25

/packages/apps/Nfc/nci/jni/
DNativeNfcManager.cpp198 bool isP2p = NfcTag::getInstance ().isP2pDiscovered (); in handleRfDiscoveryEvent()
202 NfcTag::getInstance ().selectP2p(); in handleRfDiscoveryEvent()
207 NfcTag::getInstance ().selectFirstTag(); in handleRfDiscoveryEvent()
275 NfcTag::getInstance().connectionEventHandler(connEvent, eventData); in nfaConnectionCallback()
304 NfcTag::getInstance().setActive(true); in nfaConnectionCallback()
309 NfcTag::getInstance().setActivationState (); in nfaConnectionCallback()
338 SecureElement::getInstance().notifyRfFieldEvent (true); in nfaConnectionCallback()
342 NfcTag::getInstance().connectionEventHandler (connEvent, eventData); in nfaConnectionCallback()
350 SecureElement::getInstance().notifyListenModeState (true); in nfaConnectionCallback()
357 NfcTag::getInstance().setDeactivationState (eventData->deactivated); in nfaConnectionCallback()
[all …]
DNativeNfcTag.cpp493 NfcTag& natTag = NfcTag::getInstance (); in nativeNfcTag_doConnect()
560 NfcTag& natTag = NfcTag::getInstance (); in reSelect()
568 if (NfcTag::getInstance ().isNdefDetectionTimedOut()) in reSelect()
598 if (NfcTag::getInstance ().getActivationState () != NfcTag::Sleep) in reSelect()
628 if (NfcTag::getInstance ().getActivationState () != NfcTag::Active) in reSelect()
666 NfcTag& natTag = NfcTag::getInstance (); in switchRfInterface()
695 NfcTag& natTag = NfcTag::getInstance (); in nativeNfcTag_doReconnect()
705 if (NfcTag::getInstance ().mTechList [0] == TARGET_TYPE_KOVIO_BARCODE) in nativeNfcTag_doReconnect()
758 NfcTag::getInstance().resetAllTransceiveTimeouts (); in nativeNfcTag_doDisconnect()
760 if (NfcTag::getInstance ().getActivationState () != NfcTag::Active) in nativeNfcTag_doDisconnect()
[all …]
DNativeSecureElement.cpp54 SecureElement &se = SecureElement::getInstance(); in nativeNfcSecureElement_doOpenSecureElementConnection()
68 PowerSwitch::getInstance ().setLevel (PowerSwitch::FULL_POWER); in nativeNfcSecureElement_doOpenSecureElementConnection()
69 PowerSwitch::getInstance ().setModeOn (PowerSwitch::SE_CONNECTED); in nativeNfcSecureElement_doOpenSecureElementConnection()
92 if ((!stat) && (! PowerSwitch::getInstance ().setModeOff (PowerSwitch::SE_CONNECTED))) in nativeNfcSecureElement_doOpenSecureElementConnection()
94 PowerSwitch::getInstance ().setLevel (PowerSwitch::LOW_POWER); in nativeNfcSecureElement_doOpenSecureElementConnection()
120 stat = SecureElement::getInstance().disconnectEE (handle); in nativeNfcSecureElement_doDisconnectSecureElementConnection()
124 if (! SecureElement::getInstance().isBusy()) in nativeNfcSecureElement_doDisconnectSecureElementConnection()
125 SecureElement::getInstance().deactivate (handle); in nativeNfcSecureElement_doDisconnectSecureElementConnection()
128 if (! PowerSwitch::getInstance ().setModeOff (PowerSwitch::SE_CONNECTED)) in nativeNfcSecureElement_doDisconnectSecureElementConnection()
129 PowerSwitch::getInstance ().setLevel (PowerSwitch::LOW_POWER); in nativeNfcSecureElement_doDisconnectSecureElementConnection()
[all …]
DNativeLlcpSocket.cpp44 bool stat = PeerToPeer::getInstance().connectConnOriented (jniHandle, nSap); in nativeLlcpSocket_doConnect()
74 bool stat = PeerToPeer::getInstance().connectConnOriented(jniHandle, serviceName.c_str()); in nativeLlcpSocket_doConnectBy()
97 bool stat = PeerToPeer::getInstance().disconnectConnOriented (jniHandle); in nativeLlcpSocket_doClose()
124 bool stat = PeerToPeer::getInstance().send(jniHandle, raw_ptr, bytes.size()); in nativeLlcpSocket_doSend()
151 …bool stat = PeerToPeer::getInstance().receive(jniHandle, reinterpret_cast<UINT8*>(&bytes[0]), byte… in nativeLlcpSocket_doReceive()
182 jint miu = PeerToPeer::getInstance().getRemoteMaxInfoUnit(jniHandle); in nativeLlcpSocket_doGetRemoteSocketMIU()
205 jint rw = PeerToPeer::getInstance().getRemoteRecvWindow (jniHandle); in nativeLlcpSocket_doGetRemoteSocketRW()
DRoutingManager.cpp67 RoutingManager& RoutingManager::getInstance () in getInstance() function in RoutingManager
170 SecureElement::getInstance().notifyListenModeState (false); in notifyDeactivated()
231 RoutingManager& routingManager = RoutingManager::getInstance(); in stackCallback()
264 getInstance().handleData(ce_data.p_data, ce_data.len); in stackCallback()
285 SecureElement& se = SecureElement::getInstance(); in nfaEeCallback()
286 RoutingManager& routingManager = RoutingManager::getInstance(); in nfaEeCallback()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
DResearchLogger.java182 private final Replayer mReplayer = Replayer.getInstance();
208 mStatistics = Statistics.getInstance(); in ResearchLogger()
211 public static ResearchLogger getInstance() { in getInstance() method in ResearchLogger
1007 final ResearchLogger researchLogger = getInstance(); in latinIME_onStartInputViewInternal()
1011 getInstance().setIsPasswordView(isPassword); in latinIME_onStartInputViewInternal()
1060 final ResearchLogger researchLogger = getInstance(); in prefsChanged()
1080 final ResearchLogger researchLogger = getInstance(); in mainKeyboardView_processMotionEvent()
1104 final ResearchLogger researchLogger = getInstance(); in latinIME_onCodeInput()
1125 getInstance().enqueueEvent(LOGSTATEMENT_LATINIME_ONDISPLAYCOMPLETIONS, in latinIME_onDisplayCompletions()
1191 final ResearchLogger researchLogger = getInstance(); in latinIME_onFinishInputViewInternal()
[all …]
/packages/apps/InCallUI/src/com/android/incallui/
DCallButtonPresenter.java51 AudioModeProvider.getInstance().addListener(this); in onUiReady()
54 InCallPresenter.getInstance().addListener(this); in onUiReady()
55 InCallPresenter.getInstance().addIncomingCallListener(this); in onUiReady()
62 InCallPresenter.getInstance().removeListener(this); in onUiUnready()
63 AudioModeProvider.getInstance().removeListener(this); in onUiUnready()
64 InCallPresenter.getInstance().removeIncomingCallListener(this); in onUiUnready()
96 onStateChange(state, CallList.getInstance()); in onIncomingCall()
121 return AudioModeProvider.getInstance().getAudioMode(); in getAudioMode()
125 return AudioModeProvider.getInstance().getSupportedModes(); in getSupportedAudio()
135 CallCommandClient.getInstance().setAudioMode(mode); in setAudioMode()
[all …]
DInCallActivity.java90 InCallPresenter.getInstance().setActivity(this); in onStart()
99 InCallPresenter.getInstance().onUiShowing(true); in onResume()
118 InCallPresenter.getInstance().onUiShowing(false); in onPause()
131 InCallPresenter.getInstance().setActivity(null); in onDestroy()
208 final Call call = CallList.getInstance().getIncomingCall(); in onBackPressed()
234 boolean handled = InCallPresenter.getInstance().handleCallKey(); in onKeyDown()
261 CallCommandClient.getInstance().mute(!AudioModeProvider.getInstance().getMute()); in onKeyDown()
309 InCallPresenter.getInstance().getProximitySensor().onConfigurationChanged(config); in onConfigurationChanged()
346 final Call call = CallList.getInstance().getActiveOrBackgroundCall(); in relaunchedFromDialer()
348 CallCommandClient.getInstance().hold(call.getCallId(), false); in relaunchedFromDialer()
[all …]
DAnswerPresenter.java38 final CallList calls = CallList.getInstance(); in onUiReady()
53 CallList.getInstance().removeListener(this); in onUiUnready()
58 CallList.getInstance().removeCallUpdateListener(mCallId, this); in onUiUnready()
90 CallList.getInstance().addCallUpdateListener(mCallId, this); in processIncomingCall()
93 final ArrayList<String> textMsgs = CallList.getInstance().getTextResponses( in processIncomingCall()
111 CallList.getInstance().removeCallUpdateListener(mCallId, this); in onCallStateChanged()
128 CallCommandClient.getInstance().answerCall(mCallId); in onAnswer()
134 CallCommandClient.getInstance().rejectCall(mCall, false, null); in onDecline()
146 CallCommandClient.getInstance().rejectCall(mCall, true, message); in rejectCallWithMessage()
152 InCallPresenter.getInstance().onDismissDialog(); in onDismissDialog()
DInCallPresenter.java67 public static synchronized InCallPresenter getInstance() { in getInstance() method in InCallPresenter
95 mContactInfoCache = ContactInfoCache.getInstance(context); in setUp()
232 CallCommandClient.getInstance().setSystemBarNavigationEnabled(true); in onCallListChange()
266 CallCommandClient.getInstance().setSystemBarNavigationEnabled(false); in onIncomingCall()
284 onCallListChange(CallList.getInstance()); in onDisconnect()
368 CallCommandClient.getInstance().disconnectCall(call.getCallId()); in hangUpOngoingCall()
447 final CallList calls = CallList.getInstance(); in handleCallKey()
453 CallCommandClient.getInstance().answerCall(incomingCall.getCallId()); in handleCallKey()
474 CallCommandClient.getInstance().merge(); in handleCallKey()
477 CallCommandClient.getInstance().swap(); in handleCallKey()
[all …]
DStatusBarNotifier.java84 InCallPresenter.getInstance().getInCallState(),
85 InCallPresenter.getInstance().getCallList());
216 !InCallPresenter.getInstance().isActivityPreviouslyStarted(); in updateInCallNotification()
231 (!InCallPresenter.getInstance().isShowingInCallUi() || state.isIncoming()) && in updateInCallNotification()
249 if (InCallPresenter.getInstance().isShowingInCallUi() || call == null) { in updateInCallNotification()
269 Call call = CallList.getInstance().getCall(callId); in showNotification()
281 Call call = CallList.getInstance().getCall(callId); in showNotification()
297 final Call call = getCallToShow(CallList.getInstance()); in buildAndSendNotification()
544 CallList.getInstance().getBackgroundCall() != null)); in configureFullScreenIntent()
566 final Intent intent = InCallPresenter.getInstance().getInCallIntent(/*showdialpad=*/false); in createLaunchPendingIntent()
DCallCardPresenter.java92 AudioModeProvider.getInstance().addListener(this); in onUiReady()
100 InCallPresenter.getInstance().addListener(this); in onUiReady()
101 InCallPresenter.getInstance().addIncomingCallListener(this); in onUiReady()
109 InCallPresenter.getInstance().removeListener(this); in onUiUnready()
110 InCallPresenter.getInstance().removeIncomingCallListener(this); in onUiUnready()
112 AudioModeProvider.getInstance().removeListener(this); in onUiUnready()
122 onStateChange(state, CallList.getInstance()); in onIncomingCall()
190 (AudioModeProvider.getInstance().getAudioMode() == AudioMode.BLUETOOTH); in onStateChange()
255 final ContactInfoCache cache = ContactInfoCache.getInstance(mContext); in startContactInfoSearch()
455 CallCommandClient.getInstance().swap(); in secondaryPhotoClicked()
DConferenceManagerPresenter.java47 InCallPresenter.getInstance().addListener(this); in onUiReady()
54 InCallPresenter.getInstance().removeListener(this); in onUiUnready()
99 final ContactCacheEntry contactCache = ContactInfoCache.getInstance(mContext). in update()
152 CallCommandClient.getInstance().separateCall(mCallerIds[rowId]); in separateConferenceConnection()
156 CallCommandClient.getInstance().disconnectCall(mCallerIds[rowId]); in endConferenceConnection()
/packages/services/Telephony/src/com/android/phone/
DPhoneUtils.java270 final PhoneGlobals app = PhoneGlobals.getInstance(); in answerCall()
456 final CallNotifier notifier = PhoneGlobals.getInstance().notifier; in hangupRingingCall()
522 CallManager cm = PhoneGlobals.getInstance().mCM; in hangup()
679 final PhoneGlobals app = PhoneGlobals.getInstance(); in placeCall()
841 final PhoneGlobals mApp = PhoneGlobals.getInstance(); in swap()
873 CallManager cm = PhoneGlobals.getInstance().mCM; in switchHoldingAndActive()
892 Phone phone = PhoneGlobals.getInstance().mCM.getFgPhone(); in restoreMuteState()
929 mergeCalls(PhoneGlobals.getInstance().mCM); in mergeCalls()
936 PhoneGlobals app = PhoneGlobals.getInstance(); in mergeCalls()
1053 final PhoneGlobals app = PhoneGlobals.getInstance(); in displayMMIComplete()
[all …]
DSipBroadcastReceiver.java61 CallManager.getInstance().registerPhone(phone); in onReceive()
64 + CallManager.getInstance().getAllPhones().size()); in onReceive()
69 + CallManager.getInstance().getAllPhones().size()); in onReceive()
80 for (Phone phone : CallManager.getInstance().getAllPhones()) { in removeSipPhone()
83 CallManager.getInstance().unregisterPhone(phone); in removeSipPhone()
92 Context phoneContext = PhoneGlobals.getInstance(); in takeCall()
96 for (Phone phone : CallManager.getInstance().getAllPhones()) { in takeCall()
111 final Context context = PhoneGlobals.getInstance(); in registerAllProfiles()
DRejectWithTextMessageManager.java76 final SharedPreferences prefs = PhoneGlobals.getInstance().getSharedPreferences( in loadCannedResponses()
78 final Resources res = PhoneGlobals.getInstance().getResources(); in loadCannedResponses()
108 final Resources res = PhoneGlobals.getInstance().getResources(); in showMessageSentToast()
112 Toast.makeText(PhoneGlobals.getInstance(), confirmationMsg, in showMessageSentToast()
150 PhoneGlobals.getInstance(), true /*updateIfNeeded*/); in rejectCallWithMessage()
158 PhoneGlobals.getInstance().startService(intent); in rejectCallWithMessage()
239 if (SmsApplication.getDefaultRespondViaMessageApplication(PhoneGlobals.getInstance(), in allowRespondViaSmsForCall()
DBluetoothPhoneService.java104 mCM = CallManager.getInstance(); in onCreate()
110 mCallGatewayManager = CallGatewayManager.getInstance(); in onCreate()
244 PhoneGlobals app = PhoneGlobals.getInstance(); in handlePreciseCallStateChange()
366 PhoneGlobals app = PhoneGlobals.getInstance(); in getNumHeldCdma()
592 if (PhoneGlobals.getInstance().cdmaPhoneCallState.getCurrentCallState() in listCurrentCallsCdma()
596 } else if (PhoneGlobals.getInstance().cdmaPhoneCallState.getCurrentCallState() in listCurrentCallsCdma()
611 PhoneGlobals app = PhoneGlobals.getInstance(); in sendClccResponseCdma()
757 PhoneUtils.hangup(PhoneGlobals.getInstance().mCM);
762 … return PhoneUtils.answerAndEndActive(PhoneGlobals.getInstance().mCM, ringingCall);
781 } else if (PhoneGlobals.getInstance().cdmaPhoneCallState
[all …]
/packages/apps/Email/src/com/android/email/
DSecurityPolicy.java76 public synchronized static SecurityPolicy getInstance(Context context) { in getInstance() method in SecurityPolicy
455 NotificationController.getInstance(context).showSecurityNeededNotification(account); in setAccountHoldFlag()
503 NotificationController.getInstance(mContext).showSecurityNeededNotification(account); in policiesRequired()
505 NotificationController.getInstance(mContext).showSecurityUnsupportedNotification( in policiesRequired()
615 NotificationController.getInstance(mContext).showSecurityUnsupportedNotification( in setAccountPolicy()
625 NotificationController.getInstance(mContext).showSecurityChangedNotification( in setAccountPolicy()
635 NotificationController.getInstance(mContext).showSecurityNeededNotification(account); in setAccountPolicy()
646 NotificationController.getInstance(mContext).cancelSecurityNeededNotification(); in clearNotification()
747 NotificationController.getInstance(mContext).showPasswordExpiringNotification( in onPasswordExpiring()
753 NotificationController.getInstance(mContext).showPasswordExpiredNotification( in onPasswordExpiring()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DHanziToPinyinTest.java38 return HanziToPinyin.getInstance().hasChineseTransliterator(); in hasChineseTransliterator()
43 ArrayList<Token> tokens = HanziToPinyin.getInstance().get(hanziString); in test()
68 ArrayList<Token> tokens = HanziToPinyin.getInstance().get(ONE_HANZI); in testGetToken()
73 tokens = HanziToPinyin.getInstance().get(TWO_HANZI); in testGetToken()
80 tokens = HanziToPinyin.getInstance().get(ASSIC); in testGetToken()
84 tokens = HanziToPinyin.getInstance().get(ONE_UNKNOWN); in testGetToken()
88 tokens = HanziToPinyin.getInstance().get(MISC); in testGetToken()
/packages/apps/Browser/src/com/android/browser/preferences/
DWebsiteSettingsFragment.java256 WebStorage.getInstance().getOrigins(new ValueCallback<Map>() { in askForOrigins()
271 GeolocationPermissions.getInstance().getOrigins(new ValueCallback<Set<String> >() { in askForGeolocation()
509 WebStorage.getInstance().getUsageForOrigin(origin, new ValueCallback<Long>() { in getView()
521 … GeolocationPermissions.getInstance().getAllowed(origin, new ValueCallback<Boolean>() { in getView()
541 … WebStorage.getInstance().getUsageForOrigin(origin, new ValueCallback<Long>() { in getView()
555 … GeolocationPermissions.getInstance().getAllowed(origin, new ValueCallback<Boolean>() { in getView()
588 WebStorage.getInstance().deleteOrigin(mCurrentSite.getOrigin()); in onItemClick()
608 … GeolocationPermissions.getInstance().clear(mCurrentSite.getOrigin()); in onItemClick()
691 WebStorage.getInstance().deleteAllData(); in onClick()
692 GeolocationPermissions.getInstance().clearAll(); in onClick()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DLatinIME.java521 mSettings = Settings.getInstance(); in LatinIME()
522 mSubtypeSwitcher = SubtypeSwitcher.getInstance(); in LatinIME()
523 mKeyboardSwitcher = KeyboardSwitcher.getInstance(); in LatinIME()
534 mRichImm = RichInputMethodManager.getInstance(); in onCreate()
551 ResearchLogger.getInstance().init(this, mKeyboardSwitcher, mSuggest); in onCreate()
584 AudioAndHapticFeedbackManager.getInstance().onSettingsChanged(mSettings.getCurrent()); in loadSettings()
637 ResearchLogger.getInstance().initSuggest(newSuggest); in initSuggest()
721 ResearchLogger.getInstance().onDestroy(); in onDestroy()
867 final AccessibilityUtils accessUtils = AccessibilityUtils.getInstance(); in onStartInputViewInternal()
1215 if (AccessibilityUtils.getInstance().isAccessibilityEnabled()) { in hideWindow()
[all …]
/packages/apps/Browser/src/com/android/browser/
DBrowserSettings.java133 public static BrowserSettings getInstance() { in getInstance() method in BrowserSettings
312 CookieManager.getInstance().setAcceptCookie(acceptCookies()); in syncSharedSettings()
425 WebIconDatabase.getInstance().removeAllIcons(); in clearCache()
435 CookieManager.getInstance().removeAllCookie(); in clearCookies()
445 WebViewDatabase.getInstance(mContext).clearFormData(); in clearFormData()
455 WebViewDatabase db = WebViewDatabase.getInstance(mContext); in clearPasswords()
461 WebStorage.getInstance().deleteAllData(); in clearDatabases()
465 GeolocationPermissions.getInstance().clearAll(); in clearLocationAccess()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DUserLogRingCharBuffer.java43 public static UserLogRingCharBuffer getInstance() { in getInstance() method in UserLogRingCharBuffer
53 UsabilityStudyLogUtils.getInstance().init(context); in init()
69 UsabilityStudyLogUtils.getInstance().writeChar(c, x, y); in push()
119 if (!Settings.getInstance().isWordSeparator(c)) { in getLastWord()
125 if (!Settings.getInstance().isWordSeparator(c)) { in getLastWord()
/packages/apps/Settings/src/com/android/settings/
DDateTimeSettings.java92 mDummyDate = Calendar.getInstance(); in initUI()
178 final Calendar now = Calendar.getInstance(); in updateTimeAndDateDisplay()
237 final Calendar calendar = Calendar.getInstance(); in onCreateDialog()
262 Calendar t = Calendar.getInstance(); in configureDatePicker()
350 Calendar c = Calendar.getInstance(); in setDate()
363 Calendar c = Calendar.getInstance(); in setTime()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDecodeUtils.java260 GalleryBitmapPool.getInstance().put(options.inBitmap); in decodeUsingPool()
268 GalleryBitmapPool.getInstance().put(options.inBitmap); in decodeUsingPool()
287 GalleryBitmapPool.getInstance().put(options.inBitmap); in decodeUsingPool()
295 GalleryBitmapPool.getInstance().put(options.inBitmap); in decodeUsingPool()
304 return GalleryBitmapPool.getInstance().get(options.outWidth, options.outHeight); in findCachedBitmap()
310 return GalleryBitmapPool.getInstance().get(options.outWidth, options.outHeight); in findCachedBitmap()

12345678910>>...25