/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/hostsidetests/theme/ |
D | generate_images.py | 18 import os 123 out_file = os.path.join(out_path, os.path.join(version, "%s.zip" % density_bucket)) 167 if 'ANDROID_SDK_ROOT' not in os.environ: 171 sdk_path = os.environ['ANDROID_SDK_ROOT'] 172 if not os.path.isdir(sdk_path): 176 emu_path = os.path.join(os.path.join(sdk_path, 'tools'), 'emulator') 177 if not os.path.isfile(emu_path): 205 if 'ANDROID_BUILD_TOP' not in os.environ or 'ANDROID_HOST_OUT' not in os.environ: 209 theme_apk = os.path.join(os.environ['ANDROID_HOST_OUT'], 211 if not os.path.isfile(theme_apk): [all …]
|
/cts/hostsidetests/statsd/src/android/cts/statsd/metric/ |
D | ValueMetricsTests.java | 20 import com.android.internal.os.StatsdConfigProto; 21 import com.android.internal.os.StatsdConfigProto.AtomMatcher; 22 import com.android.internal.os.StatsdConfigProto.FieldMatcher; 23 import com.android.internal.os.StatsdConfigProto.ValueMetric; 24 import com.android.os.AtomsProto.AppBreadcrumbReported; 25 import com.android.os.AtomsProto.SystemElapsedRealtime; 27 import com.android.os.AtomsProto.Atom; 28 import com.android.os.StatsLog.ValueBucketInfo; 29 import com.android.os.StatsLog.ValueMetricData; 30 import com.android.os.StatsLog.StatsLogReport; [all …]
|
D | GaugeMetricsTests.java | 20 import com.android.internal.os.StatsdConfigProto; 21 import com.android.internal.os.StatsdConfigProto.AtomMatcher; 22 import com.android.internal.os.StatsdConfigProto.FieldFilter; 23 import com.android.internal.os.StatsdConfigProto.FieldMatcher; 24 import com.android.internal.os.StatsdConfigProto.FieldValueMatcher; 25 import com.android.internal.os.StatsdConfigProto.Predicate; 26 import com.android.internal.os.StatsdConfigProto.SimpleAtomMatcher; 27 import com.android.internal.os.StatsdConfigProto.SimplePredicate; 28 import com.android.os.AtomsProto.AppBreadcrumbReported; 29 import com.android.os.AtomsProto.Atom; [all …]
|
D | DurationMetricsTests.java | 20 import com.android.internal.os.StatsdConfigProto; 21 import com.android.internal.os.StatsdConfigProto.AtomMatcher; 22 import com.android.internal.os.StatsdConfigProto.FieldMatcher; 23 import com.android.internal.os.StatsdConfigProto.FieldValueMatcher; 24 import com.android.internal.os.StatsdConfigProto.Position; 25 import com.android.internal.os.StatsdConfigProto.Predicate; 26 import com.android.internal.os.StatsdConfigProto.SimpleAtomMatcher; 27 import com.android.internal.os.StatsdConfigProto.SimplePredicate; 28 import com.android.os.AtomsProto.AppBreadcrumbReported; 29 import com.android.os.AtomsProto.Atom; [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 | CrossProcessExceptionService.java | 17 package android.os.cts; 23 import android.os.Binder; 24 import android.os.IBinder; 25 import android.os.Parcel; 26 import android.os.Parcelable;
|
D | ISeccompIsolatedService.aidl | 17 package android.os.cts; 19 import android.os.IBinder; 20 import android.os.ParcelFileDescriptor;
|
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/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/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/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/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/apps/CameraITS/tools/ |
D | run_all_tests.py | 17 import os 18 import os.path 41 SCENE3_FILE = os.path.join(os.environ["CAMERA_ITS_TOP"], "pymodules", "its", 276 cmd = ['python', os.path.join(os.environ['CAMERA_ITS_TOP'], 'tools', 287 os.mkdir(os.path.join(topdir, camera_id)) 289 os.mkdir(os.path.join(topdir, camera_id, d)) 293 tests = [(s[:-3], os.path.join("tests", scene, s)) 294 for s in os.listdir(os.path.join("tests", scene)) 305 out_path = os.path.join(topdir, camera_id, scene+".jpg") 320 os.path.join(os.getcwd(), 'tools/load_scene.py'), [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 | load_scene.py | 15 import os 50 local_scene_file = os.path.join(os.environ['CAMERA_ITS_TOP'], 'tests', 53 local_scene_file = os.path.join(local_scene_file, 56 local_scene_file = os.path.join(local_scene_file, scene+'.pdf')
|
/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/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/hostsidetests/seccomp/app/ |
D | gen_blacklist.py | 17 import os 90 kernel_uapi_path = os.path.join(os.getenv('ANDROID_BUILD_TOP'), 95 '-I' + os.path.join(kernel_uapi_path, 97 '-I' + os.path.join(kernel_uapi_path) 133 candidates = sorted(glob.glob(os.path.join(os.getenv('ANDROID_BUILD_TOP'), 136 clang_exe = os.path.join(clang_dir, 'bin/clang') 137 if os.path.exists(clang_exe):
|
/cts/tests/tests/os/ |
D | Android.mk | 39 src/android/os/cts/IParcelFileDescriptorPeer.aidl \ 40 src/android/os/cts/IEmptyService.aidl \ 41 src/android/os/cts/ISeccompIsolatedService.aidl \ 42 src/android/os/cts/ISecondary.aidl \ 43 src/android/os/cts/ISharedMemoryService.aidl 74 cts_platform_version_path := cts/tests/tests/os/assets/platform_versions.txt
|
/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()
|
/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/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/tests/tests/security/src/android/security/cts/activity/ |
D | SecureRandomService.java | 19 import android.os.Handler; 20 import android.os.IBinder; 21 import android.os.Message; 53 return android.os.Process.myPid();
|