Esempio n. 1
0
def notify_intent(intent):
    assert 'activity' in intent
    (args, nargs) = intentlib.obtain_intent_args(intent)
    args.append('comp')
    args.append(intent['activity']['name'])
    nargs += 1
    conn = connection.get_conn()
    conn.send_event("AddIntent", 0.01, 1, nargs, *args)
Esempio n. 2
0
def notify_intent(intent):
    assert 'activity' in intent
    (args, nargs) = intentlib.obtain_intent_args(intent)
    args.append('comp')
    args.append(intent['activity']['name'])
    nargs += 1
    conn = connection.get_conn()
    conn.send_event("AddIntent", 0.01, 1, nargs, *args)
Esempio n. 3
0
def notify_broadcast(intent):
    assert 'receiver' in intent
    (args, nargs) = intentlib.obtain_intent_args(intent)
    conn = connection.get_conn()
    conn.send_event("AddBroadcast", 0.01, 1, nargs, *args)
Esempio n. 4
0
def notify_broadcast(intent):
    assert 'receiver' in intent
    (args, nargs) = intentlib.obtain_intent_args(intent)
    conn = connection.get_conn()
    conn.send_event("AddBroadcast", 0.01, 1, nargs, *args)