예제 #1
0
def set_proxy():
    """
    Set Ifeng video request host to local proxy server.
    """
    host = get_local_ip()
    data_interface = RemoteObject.from_class_name(data_interface_class_name)
    call_static(data_interface, "setHost", host + ':8080/proxy')
예제 #2
0
def set_proxy():
    """
    Set Ifeng video request host to local proxy server.
    """
    host = get_local_ip()
    data_interface = RemoteObject.from_class_name(data_interface_class_name)
    call_static(data_interface, "setHost", host+':8080/proxy')
예제 #3
0
 def get_instance(cls, instrumentation):
     instrumentation.class_name = instrumentation_class_name
     ui_device_class = RemoteObject.from_class_name(ui_device_class_name)
     return UIDevice.from_object(call_static(ui_device_class, "getInstance", instrumentation))
예제 #4
0
 def get_instrumentation():
     instrument_registry_class = RemoteObject.from_class_name(instrument_registry)
     remote_obj = call_static(instrument_registry_class, "getInstrumentation")
     return Instrumentation.from_object(remote_obj)
예제 #5
0
def set_proxy():
    host = get_local_ip()
    data_interface = RemoteObject.from_class_name(data_interface_class_name)
    call_static(data_interface, "setHost", host + ':8080/proxy')
예제 #6
0
 def get_instance(cls, instrumentation):
     instrumentation.class_name = instrumentation_class_name
     ui_device_class = RemoteObject.from_class_name(ui_device_class_name)
     return UIDevice.from_object(
         call_static(ui_device_class, "getInstance", instrumentation))
예제 #7
0
 def get_instrumentation():
     instrument_registry_class = RemoteObject.from_class_name(
         instrument_registry)
     remote_obj = call_static(instrument_registry_class,
                              "getInstrumentation")
     return Instrumentation.from_object(remote_obj)