Lines Matching defs:notif

255     public void handleNiNotification(GpsNiNotification notif) {
257 + " notificationId: " + notif.notificationId
258 + " requestorId: " + notif.requestorId
259 + " text: " + notif.text
264 handleNiInEs(notif);
266 handleNi(notif);
283 private void handleNi(GpsNiNotification notif) {
285 + " needNotify: " + notif.needNotify
286 + " needVerify: " + notif.needVerify
287 + " privacyOverride: " + notif.privacyOverride
294 mNetInitiatedListener.sendNiResponse(notif.notificationId,
300 if (notif.needNotify) {
303 if (notif.needVerify && mPopupImmediately) {
305 openNiDialog(notif);
308 setNiNotification(notif);
313 if (!notif.needVerify || notif.privacyOverride) {
315 mNetInitiatedListener.sendNiResponse(notif.notificationId,
324 private void handleNiInEs(GpsNiNotification notif) {
327 + " niType: " + notif.niType
328 + " notificationId: " + notif.notificationId);
341 boolean isNiTypeES = (notif.niType == GPS_NI_TYPE_EMERGENCY_SUPL);
344 mNetInitiatedListener.sendNiResponse(notif.notificationId,
350 handleNi(notif);
355 private synchronized void setNiNotification(GpsNiNotification notif) {
362 String title = getNotifTitle(notif, mContext);
363 String message = getNotifMessage(notif, mContext);
365 if (DEBUG) Log.d(TAG, "setNiNotification, notifyId: " + notif.notificationId +
387 Intent intent = !mPopupImmediately ? getDlgIntent(notif) : new Intent();
389 mNiNotificationBuilder.setTicker(getNotifTicker(notif, mContext))
394 notificationManager.notifyAsUser(null, notif.notificationId, mNiNotificationBuilder.build(),
399 private void openNiDialog(GpsNiNotification notif)
401 Intent intent = getDlgIntent(notif);
403 if (DEBUG) Log.d(TAG, "openNiDialog, notifyId: " + notif.notificationId +
404 ", requestorId: " + notif.requestorId +
405 ", text: " + notif.text);
412 private Intent getDlgIntent(GpsNiNotification notif)
415 String title = getDialogTitle(notif, mContext);
416 String message = getDialogMessage(notif, mContext);
423 intent.putExtra(NI_INTENT_KEY_NOTIF_ID, notif.notificationId);
426 intent.putExtra(NI_INTENT_KEY_TIMEOUT, notif.timeout);
427 intent.putExtra(NI_INTENT_KEY_DEFAULT_RESPONSE, notif.defaultResponse);
430 ", timeout: " + notif.timeout);
567 static private String getNotifTicker(GpsNiNotification notif, Context context)
570 decodeString(notif.requestorId, mIsHexInput, notif.requestorIdEncoding),
571 decodeString(notif.text, mIsHexInput, notif.textEncoding));
576 static private String getNotifTitle(GpsNiNotification notif, Context context)
583 static private String getNotifMessage(GpsNiNotification notif, Context context)
586 decodeString(notif.requestorId, mIsHexInput, notif.requestorIdEncoding),
587 decodeString(notif.text, mIsHexInput, notif.textEncoding));
592 static public String getDialogTitle(GpsNiNotification notif, Context context)
594 return getNotifTitle(notif, context);
598 static private String getDialogMessage(GpsNiNotification notif, Context context)
600 return getNotifMessage(notif, context);