HomeSort by relevance Sort by last modified time
    Searched full:sl4a (Results 1 - 25 of 99) sorted by null

1 2 3 4

  /external/sl4a/
README.md 5 Originally authored by Damon Kohler, Scripting Layer for Android, SL4A, is an automation toolset
10 Due to its inclusion in AOSP as a privileged app, building SL4A requires a system build.
22 Then Build SL4A:
24 cd <ANDROID_SOURCE_ROOT>/external/sl4a
27 ### Adding SL4A Builds to Android Builds by Default
32 2) Modify the buildspec to build SL4A as a custom module by editing
33 the line '#CUSTOM_MODULES:=' to 'CUSTOM_MODULES:=sl4a':
35 sed -i 's/#CUSTOM_MODULES:=/CUSTOM_MODULES:=sl4a/' <ANDROID_SOURCE_ROOT>/buildspec.mk
40 adb install -r <ANDROID_SOURCE_ROOT>/out/target/product/<TARGET>/data/app/sl4a/sl4a.ap
    [all...]
  /test/vts/testcases/codelab/hello_world_sl4a/
VtsCodelabHelloWorldSl4aTest.py 28 """An example showing making SL4A calls in VTS."""
36 """A sample test controlling Android device with sl4a.
43 self.dut.sl4a.makeToast("Hello World! %s" % index)
46 asserts.fail("Protocol error in an SL4A operation")
48 asserts.fail("API error during an SL4A API call")
52 self.dut.sl4a.ttsSpeak("hello Treble VTS")
56 self.dut.sl4a.batteryStartMonitoring()
57 self.dut.sl4a.eventRegisterForBroadcast(self.BATTERY)
59 msg = "battery %s" % self.dut.sl4a.eventWaitFor(self.BATTERY, 10000)
60 self.dut.sl4a.eventPoll(
    [all...]
AndroidTest.xml 22 <option name="test-file-name" value="DATA/app/sl4a/sl4a.apk" />
  /external/sl4a/ScriptingLayer/
Android.mk 22 LOCAL_MODULE := sl4a.ScriptingLayer
26 LOCAL_STATIC_JAVA_LIBRARIES += sl4a.Utils sl4a.Common
  /tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
sl4a_manager.py 38 # The command for finding SL4A's server port as root.
42 # Find all open TCP ports for SL4A
51 # The command for finding SL4A's server port without root.
65 # The command that begins the SL4A ScriptingLayerService.
70 # Maps device serials to their SL4A Manager. This is done to prevent multiple
93 """A manager for SL4A Clients to a given AndroidDevice.
95 SL4A is a single APK that can host multiple RPC servers at a time. This
102 _sl4a_ports: A set of all known SL4A server ports in use.
113 lambda msg: '[SL4A Manager|%s] %s' % (adb.serial, msg))
117 'SL4A %s' % adb.serial
    [all...]
sl4a_ports.py 19 """A container for the three ports needed for an SL4A connection.
22 client_port: The port on the host associated with the SL4A client
24 server_port: The port on the device associated with the SL4A server.
sl4a_session.py 29 # The SL4A Session UID when a UID has not been received yet.
34 """An object that tracks the state of an SL4A Session.
45 server_port: The SL4A server port this session is established on.
46 uid: The uid that corresponds the the SL4A Server's session id. This
47 value is only unique during the lifetime of the SL4A apk.
57 """Creates an SL4A Session.
64 host_port: The port the host machine uses to connect to the SL4A
66 device_port: The SL4A server port to be used as a hint for which
67 SL4A server to connect to.
75 return '[SL4A Session|%s|%s] %s' % (self.adb.serial, self.uid
    [all...]
sl4a_types.py 21 """Event returned by sl4a calls to eventPoll() and eventWait()
32 """SL4A equivalent of an Android NetworkInfo Object"""
rpc_client.py 16 """The base class for all SL4A exceptions."""
20 """Raised when sl4a is not able to be started."""
28 """An error raised upon failure to connect to SL4A."""
39 """An error raised when an Sl4aClient is created without SL4A installed."""
125 """Terminates all connections to the SL4A server."""
184 """Sends an rpc to sl4a.
186 Sends an rpc call to sl4a over this RpcClient's corresponding session.
190 args: any, The args to send to sl4a.
198 Sl4aProtocolError: Something went wrong with the sl4a protocol.
231 'SL4A.', e
    [all...]
error_reporter.py 157 """Creates an error report for the state of SL4A."""
183 'SL4A has been running for %s ([[dd-]hh:]mm:ss). If this '
188 'The SL4A scripting service is not running. SL4A may have '
194 """Reports the state of an SL4A session."""
196 report.warning('SL4A server port %s not found in set of open '
202 report.warning('SL4A session %s over port %s is not managed by '
203 'the SL4A Manager. This session is already dead.' %
  /external/sl4a/ScriptingLayerForAndroid/
Android.mk 26 LOCAL_PACKAGE_NAME := sl4a
44 LOCAL_STATIC_JAVA_LIBRARIES += sl4a.Utils sl4a.Common
45 LOCAL_STATIC_JAVA_LIBRARIES += sl4a.InterpreterForAndroid sl4a.ScriptingLayer
  /tools/tradefederation/core/src/com/android/tradefed/util/sl4a/
Sl4aClient.java 16 package com.android.tradefed.util.sl4a;
39 * Sl4A client to interact via RPC with SL4A scripting layer.
66 * Creates the Sl4A client.
69 * @param hostPort the port on the host machine to connect to the sl4a client.
79 * Creates the Sl4A client.
82 * @param sl4aApkFile file path to hte sl4a apk to install, or null if already installed.
105 throw new RuntimeException(String.format("Sl4A apk '%s' was not found.",
110 throw new RuntimeException(String.format("Error when installing the Sl4A apk: %s",
120 * @param sl4aApkFile file path to hte sl4a apk to install, or null if already installed
    [all...]
  /external/sl4a/InterpreterForAndroid/
Android.mk 22 LOCAL_MODULE := sl4a.InterpreterForAndroid
24 LOCAL_STATIC_JAVA_LIBRARIES := guava android-common sl4a.Utils
  /test/vts/utils/python/controllers/
sl4a_client.py 51 """Raised when sl4a is not able to be started."""
69 """Starts sl4a server on the android device.
72 adb_proxy: adb.AdbProxy, The adb proxy to use to start sl4a
74 wait_time: float, The time to wait for sl4a to come up before raising
76 retries: number of sl4a start command retries.
79 Error: Raised when SL4A was not able to be started.
82 raise StartError("SL4A is not installed on %s" % adb_proxy.serial)
85 logging.info("sl4a launch cmd: %s", cmd)
91 raise StartError("SL4A failed to start on %s." % adb_proxy.serial)
95 """Kills any running instance of sl4a
    [all...]
  /tools/test/connectivity/acts/framework/tests/
Sl4aSanityTest.py 24 """Tests for sl4a basic sanity.
35 """Constantly start and terminate sl4a sessions.
40 more message regarding sl4a happens.
  /external/sl4a/Common/
Android.mk 22 LOCAL_MODULE := sl4a.Common
25 LOCAL_STATIC_JAVA_LIBRARIES := guava android-common sl4a.Utils junit
  /external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
ScriptingLayerServiceLauncher.java 32 private static final String LOG_TAG = "sl4a";
45 Log.e(LOG_TAG, "ERROR: Cannot to start SL4A on non-debuggable build!");
  /tools/tradefederation/core/tests/src/com/android/tradefed/util/sl4a/
Sl4aClientTest.java 16 package com.android.tradefed.util.sl4a;
69 * Test for {@link Sl4aClient#isSl4ARunning()} when sl4a is running.
86 * Test for {@link Sl4aClient#isSl4ARunning()} when sl4a is not running.
100 * Test for {@link Sl4aClient#startSl4A()} when sl4a does not starts properly.
124 * Helper to set the mocks and expectation to starts SL4A.
148 * Test for {@link Sl4aClient#startSl4A()} when sl4a does starts properly.
183 * Test for {@link Sl4aClient#startSL4A(ITestDevice, File)} throws an exception if sl4a apk
194 assertEquals(String.format("Sl4A apk '%s' was not found.", fakePath),
FakeSocketServerHelper.java 16 package com.android.tradefed.util.sl4a;
28 * Helper class to simulate the device sl4a layer that respond to RPC queries.
  /external/sl4a/Utils/
Android.mk 22 LOCAL_MODULE := sl4a.Utils
  /platform_testing/build/tasks/tests/
platform_test_list.mk 103 sl4a \
  /test/vts/tools/build/tasks/list/
vts_apk_package_list.mk 20 sl4a \
  /test/vts/tools/vts-tradefed/res/config/
vts-app-multi.xml 32 <option name="test-file-name" value="DATA/app/sl4a/sl4a.apk" />
49 <option name="test-file-name" value="DATA/app/sl4a/sl4a.apk" />
  /external/autotest/server/site_tests/android_EasySetup/
android_EasySetup.py 28 @param install_sl4a: When true sl4a will be installed.
30 apk = Name of the apk (eg. sl4a.apk)
  /external/sl4a/Utils/src/com/googlecode/android_scripting/interpreter/
InterpreterConstants.java 30 public static final String SDCARD_SL4A_ROOT = SDCARD_ROOT + "sl4a/";
56 public static final String INSTALLED_PREFERENCE_KEY = "SL4A.interpreter.installed";

Completed in 940 milliseconds

1 2 3 4