Lines Matching refs:events

75         int events;
80 " events=" + Integer.toHexString(events) + "}";
190 public void listen(String pkgForDebug, IPhoneStateListener callback, int events,
195 Slog.d(TAG, "listen: E pkg=" + pkgForDebug + " events=0x" + Integer.toHexString(events)
199 if (events != 0) {
201 checkListenerPermission(events);
223 int send = events & (events ^ r.events);
224 r.events = events;
226 if ((events & PhoneStateListener.LISTEN_SERVICE_STATE) != 0) {
233 if ((events & PhoneStateListener.LISTEN_SIGNAL_STRENGTH) != 0) {
242 if ((events & PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR) != 0) {
249 if ((events & PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR) != 0) {
264 if ((events & PhoneStateListener.LISTEN_CALL_STATE) != 0) {
271 if ((events & PhoneStateListener.LISTEN_DATA_CONNECTION_STATE) != 0) {
279 if ((events & PhoneStateListener.LISTEN_DATA_ACTIVITY) != 0) {
286 if ((events & PhoneStateListener.LISTEN_SIGNAL_STRENGTHS) != 0) {
293 if ((events & PhoneStateListener.LISTEN_OTASP_CHANGED) != 0) {
335 if ((r.events & PhoneStateListener.LISTEN_CALL_STATE) != 0) {
355 if ((r.events & PhoneStateListener.LISTEN_SERVICE_STATE) != 0) {
375 if ((r.events & PhoneStateListener.LISTEN_SIGNAL_STRENGTHS) != 0) {
382 if ((r.events & PhoneStateListener.LISTEN_SIGNAL_STRENGTH) != 0) {
427 if ((r.events & PhoneStateListener.LISTEN_MESSAGE_WAITING_INDICATOR) != 0) {
446 if ((r.events & PhoneStateListener.LISTEN_CALL_FORWARDING_INDICATOR) != 0) {
465 if ((r.events & PhoneStateListener.LISTEN_DATA_ACTIVITY) != 0) {
525 if ((r.events & PhoneStateListener.LISTEN_DATA_CONNECTION_STATE) != 0) {
553 if ((r.events & PhoneStateListener.LISTEN_DATA_CONNECTION_FAILED) != 0) {
593 if ((r.events & PhoneStateListener.LISTEN_OTASP_CHANGED) != 0) {
633 pw.println(" " + r.pkgForDebug + " 0x" + Integer.toHexString(r.events));
752 private void checkListenerPermission(int events) {
753 if ((events & PhoneStateListener.LISTEN_CELL_LOCATION) != 0) {
759 if ((events & PhoneStateListener.LISTEN_CELL_INFO) != 0) {
765 if ((events & PHONE_STATE_PERMISSION_MASK) != 0) {
780 private boolean validateEventsAndUserLocked(Record r, int events) {
786 valid = r.callerUid == foregroundUser && (r.events & events) != 0;
790 + " r.events=" + r.events + " events=" + events);