Lines Matching defs:events

98         int events;
106 boolean matchPhoneStateListenerEvent(int events) {
107 return (callback != null) && ((events & this.events) != 0);
121 + " events=" + Integer.toHexString(events)
399 r.events = 0;
454 public void listen(String pkgForDebug, IPhoneStateListener callback, int events,
457 events, notifyNow);
462 int events, boolean notifyNow) {
463 listen(pkgForDebug, callback, events, notifyNow, subId);
466 private void listen(String callingPackage, IPhoneStateListener callback, int events,
470 log("listen: E pkg=" + callingPackage + " events=0x" + Integer.toHexString(events)
475 if (events != PhoneStateListener.LISTEN_NONE) {
477 checkListenerPermission(events);
479 if ((events & ENFORCE_PHONE_STATE_PERMISSION_MASK) != 0) {
514 boolean isPhoneStateEvent = (events & (CHECK_PHONE_STATE_PERMISSION_MASK
527 r.events = events;
532 if ((events & PhoneStateListener.LISTEN_SERVICE_STATE) != 0) {
541 if ((events & PhoneStateListener.LISTEN_SIGNAL_STRENGTH) != 0) {
551 if ((events & PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR) != 0) {
559 if ((events & PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR) != 0) {
577 if ((events & PhoneStateListener.LISTEN_CALL_STATE) != 0) {
585 if ((events & PhoneStateListener.LISTEN_DATA_CONNECTION_STATE) != 0) {
593 if ((events & PhoneStateListener.LISTEN_DATA_ACTIVITY) != 0) {
600 if ((events & PhoneStateListener.LISTEN_SIGNAL_STRENGTHS) != 0) {
607 if ((events & PhoneStateListener.LISTEN_OTASP_CHANGED) != 0) {
623 if ((events & PhoneStateListener.LISTEN_PRECISE_CALL_STATE) != 0) {
630 if ((events & PhoneStateListener.LISTEN_PRECISE_DATA_CONNECTION_STATE) != 0) {
638 if ((events & PhoneStateListener.LISTEN_CARRIER_NETWORK_CHANGE) != 0) {
645 if ((events & PhoneStateListener.LISTEN_VOICE_ACTIVATION_STATE) !=0) {
652 if ((events & PhoneStateListener.LISTEN_DATA_ACTIVATION_STATE) !=0) {
1646 private void checkListenerPermission(int events) {
1647 if ((events & PhoneStateListener.LISTEN_CELL_LOCATION) != 0) {
1653 if ((events & PhoneStateListener.LISTEN_CELL_INFO) != 0) {
1659 if ((events & ENFORCE_PHONE_STATE_PERMISSION_MASK) != 0) {
1671 if ((events & PRECISE_PHONE_STATE_PERMISSION_MASK) != 0) {
1677 if ((events & PhoneStateListener.LISTEN_OEM_HOOK_RAW_EVENT) != 0) {
1694 private boolean validateEventsAndUserLocked(Record r, int events) {
1700 valid = r.callerUserId == foregroundUser && r.matchPhoneStateListenerEvent(events);
1704 + " r.events=" + r.events + " events=" + events);
1736 int events = r.events;
1738 if ((events & PhoneStateListener.LISTEN_SERVICE_STATE) != 0) {
1749 if ((events & PhoneStateListener.LISTEN_SIGNAL_STRENGTHS) != 0) {
1761 if ((events & PhoneStateListener.LISTEN_SIGNAL_STRENGTH) != 0) {
1788 if ((events & PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR) != 0) {
1801 if ((events & PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR) != 0) {
1824 if ((events & PhoneStateListener.LISTEN_DATA_CONNECTION_STATE) != 0) {