/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/ |
D | DeviceTestCompanion.java | 25 import android.os.ParcelFileDescriptor; 59 private String nextTest(@NonNull InputStream is, @NonNull OutputStream os, in nextTest() argument 71 os.write(lastTestSucceeded ? (byte) 1 : (byte) 0); in nextTest() 93 private boolean echoBytes(@NonNull InputStream is, @NonNull OutputStream os, int size) in echoBytes() argument 106 os.write(buffer); in echoBytes() 121 private boolean echoUntilStopSignal(@NonNull InputStream is, @NonNull OutputStream os) { in echoUntilStopSignal() argument 132 os.write(dataBytes); in echoUntilStopSignal() 148 private void helpToFigureOutIfCompanionZeroTerminates(@NonNull OutputStream os) in helpToFigureOutIfCompanionZeroTerminates() argument 151 os.write(new byte[1024]); in helpToFigureOutIfCompanionZeroTerminates() 152 os.write(new byte[1]); in helpToFigureOutIfCompanionZeroTerminates() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/ |
D | UsbAccessoryTestActivity.java | 28 import android.os.AsyncTask; 29 import android.os.Bundle; 30 import android.os.ParcelFileDescriptor; 31 import android.os.SystemClock; 113 try (OutputStream os = new ParcelFileDescriptor.AutoCloseOutputStream( in onAttached() argument 126 nextTest(is, os, "echo 32 bytes"); in onAttached() 128 os.write(origBuffer32); in onAttached() 135 nextTest(is, os, "echo 32 bytes"); in onAttached() 137 os.write(origBuffer32); in onAttached() 147 nextTest(is, os, "echo two 16 byte transfers as one"); in onAttached() [all …]
|
/cts/hostsidetests/theme/ |
D | generate_images.py | 18 import os 127 out_file = os.path.join(out_path, os.path.join(version, "%s.zip" % density_bucket)) 171 if 'ANDROID_SDK_ROOT' not in os.environ: 175 sdk_path = os.environ['ANDROID_SDK_ROOT'] 176 if not os.path.isdir(sdk_path): 180 emu_path = os.path.join(os.path.join(sdk_path, 'tools'), 'emulator') 181 if not os.path.isfile(emu_path): 209 if 'ANDROID_BUILD_TOP' not in os.environ or 'ANDROID_HOST_OUT' not in os.environ: 213 theme_apk = os.path.join(os.environ['ANDROID_HOST_OUT'], 215 if not os.path.isfile(theme_apk): [all …]
|
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/ |
D | ScopedDirectoryAccessClientTest.java | 19 import static android.os.Environment.DIRECTORY_ALARMS; 20 import static android.os.Environment.DIRECTORY_DCIM; 21 import static android.os.Environment.DIRECTORY_DOCUMENTS; 22 import static android.os.Environment.DIRECTORY_DOWNLOADS; 23 import static android.os.Environment.DIRECTORY_MOVIES; 24 import static android.os.Environment.DIRECTORY_MUSIC; 25 import static android.os.Environment.DIRECTORY_NOTIFICATIONS; 26 import static android.os.Environment.DIRECTORY_PICTURES; 27 import static android.os.Environment.DIRECTORY_PODCASTS; 28 import static android.os.Environment.DIRECTORY_RINGTONES; [all …]
|
/cts/hostsidetests/statsd/src/android/cts/statsd/metadata/ |
D | MetadataTests.java | 20 import com.android.internal.os.StatsdConfigProto; 21 import com.android.internal.os.StatsdConfigProto.StatsdConfig; 22 import com.android.internal.os.StatsdConfigProto.Subscription; 23 import com.android.internal.os.StatsdConfigProto.TimeUnit; 24 import com.android.internal.os.StatsdConfigProto.ValueMetric; 25 import com.android.os.AtomsProto.AnomalyDetected; 26 import com.android.os.AtomsProto.AppBreadcrumbReported; 27 import com.android.os.AtomsProto.Atom; 28 import com.android.os.StatsLog.EventMetricData; 29 import com.android.os.StatsLog.StatsdStatsReport; [all …]
|
/cts/apps/CameraITS/tools/ |
D | run_all_tests.py | 17 import os 18 import os.path 48 SCENE3_FILE = os.path.join(os.environ['CAMERA_ITS_TOP'], 'pymodules', 'its', 324 dump_path = os.path.join(topdir, 'CtsVerifier.txt') 394 cmd = ["python", os.path.join(os.environ["CAMERA_ITS_TOP"], "tools", 411 os.mkdir(os.path.join(topdir, id_combo_string)) 413 os.mkdir(os.path.join(topdir, id_combo_string, d)) 419 tests = [(s[:-3], os.path.join("tests", scene, s)) 420 for s in os.listdir(os.path.join("tests", scene)) 432 out_path = os.path.join(topdir, id_combo_string, scene+".jpg") [all …]
|
D | run_sensor_fusion_box.py | 15 import os 16 import os.path 29 TEST_DIR = os.path.join(os.getcwd(), 'tests', SCENE_NAME) 111 os.mkdir(os.path.join(tmpdir, camera_id)) 121 os.mkdir(os.path.join(tmpdir, camera_id, SCENE_NAME+'_'+str(i))) 124 cmd = ['python', os.path.join(TEST_DIR, TEST_NAME+'.py'), 127 outdir = os.path.join(tmpdir, camera_id, SCENE_NAME+'_'+str(i)) 128 outpath = os.path.join(outdir, TEST_NAME+'_stdout.txt') 129 errpath = os.path.join(outdir, TEST_NAME+'_stderr.txt')
|
D | hardware.py | 15 import os 137 path = os.path.join(root, attr) 154 path = os.path.join(root, attr) 192 inf_path = os.path.join(self._USB_DEVICE_SYS_ROOT, 197 tty_list = os.listdir(os.path.join(inf_path, 'tty')) 201 return os.path.join(self._DEV_ROOT, tty_list[0]) 207 dir_list = os.listdir(inf_path) 210 return os.path.join(self._DEV_ROOT, entry) 222 path = os.path.join(self._USB_DEVICE_SYS_ROOT, dir_entry) 249 dev_path = os.path.join(self._USB_DEVICE_SYS_ROOT, dir_entry) [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | DeviceIdleControllerTest.java | 19 import android.os.Bundle; 20 import android.os.Handler; 21 import android.os.IBinder; 22 import android.os.PowerManager; 23 import android.os.RemoteException; 24 import android.os.ResultReceiver; 25 import android.os.ServiceManager;
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | EphemeralService.java | 23 import android.os.Binder; 24 import android.os.IBinder; 25 import android.os.IInterface; 26 import android.os.Parcel; 27 import android.os.RemoteException; 28 import android.os.ResultReceiver; 29 import android.os.ShellCallback;
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | MemInfoIncidentTest.java | 145 AppData.ObjectStats os = ad.getObjects(); in testAppData() local 146 assertTrue(0 <= os.getViewInstanceCount()); in testAppData() 147 assertTrue(0 <= os.getViewRootInstanceCount()); in testAppData() 148 assertTrue(0 <= os.getAppContextInstanceCount()); in testAppData() 149 assertTrue(0 <= os.getActivityInstanceCount()); in testAppData() 150 assertTrue(0 <= os.getGlobalAssetCount()); in testAppData() 151 assertTrue(0 <= os.getGlobalAssetManagerCount()); in testAppData() 152 assertTrue(0 <= os.getLocalBinderObjectCount()); in testAppData() 153 assertTrue(0 <= os.getProxyBinderObjectCount()); in testAppData() 154 assertTrue(0 <= os.getParcelMemoryKb()); in testAppData() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MessengerService.java | 18 package android.os.cts; 22 import android.os.Handler; 23 import android.os.IBinder; 24 import android.os.Message; 25 import android.os.Messenger; 26 import android.os.RemoteException;
|
D | ResultReceiverTest.java | 17 package android.os.cts; 19 import android.os.Bundle; 20 import android.os.Handler; 21 import android.os.Looper; 22 import android.os.Parcel; 23 import android.os.ResultReceiver;
|
D | ParcelFileDescriptorPeer.java | 17 package android.os.cts; 21 import android.os.Handler; 22 import android.os.IBinder; 23 import android.os.Looper; 24 import android.os.ParcelFileDescriptor; 25 import android.os.Process; 26 import android.os.ParcelFileDescriptor.OnCloseListener; 27 import android.os.ParcelFileDescriptor.FileDescriptorDetachedException; 28 import android.os.RemoteException; 29 import android.os.SystemClock;
|
D | TestedScreen.java | 17 package android.os.cts; 21 import android.os.Bundle; 22 import android.os.Handler; 23 import android.os.Looper; 24 import android.os.Message; 25 import android.os.MessageQueue; 26 import android.os.SystemClock;
|
/cts/hostsidetests/seccomp/app/ |
D | gen_blacklist.py | 17 import os 104 kernel_uapi_path = os.path.join(os.getenv('ANDROID_BUILD_TOP'), 109 '-I' + os.path.join(kernel_uapi_path, 111 '-I' + os.path.join(kernel_uapi_path) 147 candidates = sorted(glob.glob(os.path.join(os.getenv('ANDROID_BUILD_TOP'), 150 clang_exe = os.path.join(clang_dir, 'bin/clang') 151 if os.path.exists(clang_exe):
|
/cts/hostsidetests/os/test-apps/PowerManagerTestApp/src/android/os/powermanagertests/ |
D | WakeLockTest.java | 17 package android.os.powermanagertests; 19 import static android.os.PowerManager.PARTIAL_WAKE_LOCK; 22 import android.os.Bundle; 23 import android.os.PowerManager.WakeLock; 24 import android.os.PowerManager;
|
/cts/hostsidetests/os/test-apps/StaticSharedLibProviderApp1/src/android/os/lib/provider/ |
D | StaticSharedLib.java | 17 package android.os.lib.provider; 20 import android.os.lib.provider.recursive.StaticSharedLibRecursive; 21 import android.os.lib.provider.recursive.R; 26 context.getResources().getInteger(android.os.lib.provider.R.integer.version)); in getVersion() 30 .getInteger(android.os.lib.provider.recursive.R.integer.version); in getRecursiveVersion()
|
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/ |
D | GaugeMetricsTests.java | 22 import com.android.internal.os.StatsdConfigProto; 23 import com.android.internal.os.StatsdConfigProto.ActivationType; 24 import com.android.internal.os.StatsdConfigProto.AtomMatcher; 25 import com.android.internal.os.StatsdConfigProto.EventActivation; 26 import com.android.internal.os.StatsdConfigProto.FieldFilter; 27 import com.android.internal.os.StatsdConfigProto.FieldMatcher; 28 import com.android.internal.os.StatsdConfigProto.FieldValueMatcher; 29 import com.android.internal.os.StatsdConfigProto.GaugeMetric; 30 import com.android.internal.os.StatsdConfigProto.MetricActivation; 31 import com.android.internal.os.StatsdConfigProto.Predicate; [all …]
|
/cts/tests/tests/os/ |
D | Android.mk | 40 src/android/os/cts/IParcelFileDescriptorPeer.aidl \ 41 src/android/os/cts/IEmptyService.aidl \ 42 src/android/os/cts/ISeccompIsolatedService.aidl \ 43 src/android/os/cts/ISecondary.aidl \ 44 src/android/os/cts/ISharedMemoryService.aidl \ 45 src/android/os/cts/IParcelExceptionService.aidl 79 cts_platform_version_path := cts/tests/tests/os/assets/platform_versions.txt
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | IsolatedService.java | 20 import android.os.Handler; 21 import android.os.IBinder; 22 import android.os.Message; 23 import android.os.Messenger; 24 import android.os.RemoteException;
|
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
D | SimpleForegroundService.java | 25 import android.os.Build; 26 import android.os.Handler; 27 import android.os.HandlerThread; 28 import android.os.IBinder; 29 import android.os.Looper; 30 import android.os.Message; 31 import android.os.Process;
|
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | StatsdCtsForegroundService.java | 25 import android.os.Build; 26 import android.os.Handler; 27 import android.os.HandlerThread; 28 import android.os.IBinder; 29 import android.os.Looper; 30 import android.os.Message; 31 import android.os.Process;
|
/cts/tests/tests/externalservice/service/src/android/externalservice/service/ |
D | BaseService.java | 22 import android.os.IBinder; 23 import android.os.Handler; 24 import android.os.Message; 25 import android.os.Messenger; 26 import android.os.Process; 27 import android.os.RemoteException;
|
/cts/tests/sensor/src/android/hardware/cts/helpers/ |
D | SuspendStateMonitor.java | 13 import android.os.Handler; 14 import android.os.SystemClock; 33 double totalSinceStart = android.os.SystemClock.elapsedRealtime() - firstRealTimeMillis; in getSleepTimeSeconds() 34 double upTimeSinceStart = android.os.SystemClock.uptimeMillis() - firstUpTimeMillis; in getSleepTimeSeconds() 78 firstRealTimeMillis = android.os.SystemClock.elapsedRealtime(); in SuspendStateMonitor() 79 firstUpTimeMillis = android.os.SystemClock.uptimeMillis(); in SuspendStateMonitor()
|