/cts/tests/tests/security/src/android/security/cts/ |
D | IBinderExchange.java | 22 public interface IBinderExchange extends android.os.IInterface { 24 public static abstract class Stub extends android.os.Binder 37 public static android.security.cts.IBinderExchange asInterface(android.os.IBinder obj) { in asInterface() 41 android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR); in asInterface() 49 public android.os.IBinder asBinder() { in asBinder() 55 int code, android.os.Parcel data, android.os.Parcel reply, int flags) in onTransact() 56 throws android.os.RemoteException { in onTransact() 65 android.os.IBinder _arg0; in onTransact() 73 android.os.IBinder _result = this.getBinder(); in onTransact() 85 private android.os.IBinder mRemote; [all …]
|
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/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 128 out_file = os.path.join(out_path, os.path.join(version, "%s.zip" % density_bucket)) 172 if 'ANDROID_SDK_ROOT' not in os.environ: 176 sdk_path = os.environ['ANDROID_SDK_ROOT'] 177 if not os.path.isdir(sdk_path): 181 emu_path = os.path.join(os.path.join(sdk_path, 'tools'), 'emulator') 182 if not os.path.isfile(emu_path): 210 if 'ANDROID_BUILD_TOP' not in os.environ or 'ANDROID_HOST_OUT' not in os.environ: 214 theme_apk = os.path.join(os.environ['ANDROID_HOST_OUT'], 216 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/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', 318 dump_path = os.path.join(topdir, 'CtsVerifier.txt') 388 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)) 421 tests = [(s[:-3], os.path.join("tests", scene, s)) 422 for s in os.listdir(os.path.join("tests", scene)) 434 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/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/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/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/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 …]
|
D | MetricActivationTests.java | 20 import com.android.internal.os.StatsdConfigProto; 21 import com.android.internal.os.StatsdConfigProto.ActivationType; 22 import com.android.internal.os.StatsdConfigProto.AtomMatcher; 23 import com.android.internal.os.StatsdConfigProto.EventActivation; 24 import com.android.internal.os.StatsdConfigProto.EventMetric; 25 import com.android.internal.os.StatsdConfigProto.GaugeMetric; 26 import com.android.internal.os.StatsdConfigProto.MetricActivation; 27 import com.android.internal.os.StatsdConfigProto.StatsdConfig; 28 import com.android.os.AtomsProto.AppBreadcrumbReported; 29 import com.android.os.AtomsProto.Atom; [all …]
|
/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/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 | 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 | 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 | 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/statsd/src/android/cts/statsd/validation/ |
D | ValidationTests.java | 21 import android.os.BatteryPluggedStateEnum; 22 import android.os.BatteryStatsProto; 23 import android.os.UidProto; 24 import android.os.UidProto.Wakelock; 25 import android.os.WakeLockLevelEnum; 29 import com.android.internal.os.StatsdConfigProto.AtomMatcher; 30 import com.android.internal.os.StatsdConfigProto.DurationMetric; 31 import com.android.internal.os.StatsdConfigProto.FieldMatcher; 32 import com.android.internal.os.StatsdConfigProto.FieldValueMatcher; 33 import com.android.internal.os.StatsdConfigProto.LogicalOperation; [all …]
|
/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/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/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/devicepolicy/app/WidgetProvider/src/com/android/cts/widgetprovider/ |
D | SimpleAppWidgetHostService.java | 26 import android.os.Bundle; 27 import android.os.Handler; 28 import android.os.HandlerThread; 29 import android.os.IBinder; 30 import android.os.Looper; 31 import android.os.Message; 32 import android.os.Messenger; 33 import android.os.RemoteException; 34 import android.os.SystemClock; 35 import android.os.UserHandle; [all …]
|