/cts/tests/tests/media/libmediandkjni/ |
D | md5_utils.cpp | 51 MD5Init(struct MD5Context *ctx) { in MD5Init() argument 52 ctx->buf[0] = 0x67452301; in MD5Init() 53 ctx->buf[1] = 0xefcdab89; in MD5Init() 54 ctx->buf[2] = 0x98badcfe; in MD5Init() 55 ctx->buf[3] = 0x10325476; in MD5Init() 57 ctx->bytes[0] = 0; in MD5Init() 58 ctx->bytes[1] = 0; in MD5Init() 66 MD5Update(struct MD5Context *ctx, md5byte const *buf, unsigned len) { in MD5Update() argument 71 t = ctx->bytes[0]; in MD5Update() 73 if ((ctx->bytes[0] = t + len) < t) in MD5Update() [all …]
|
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
D | BatteryStatsBgVsFgActions.java | 82 public static void doAction(Context ctx, String actionCode, String requestCode) { in doAction() argument 90 doOptimizedBleScan(ctx, requestCode); in doAction() 93 doUnoptimizedBleScan(ctx, requestCode); in doAction() 96 doGpsUpdate(ctx, requestCode); in doAction() 99 doScheduleJob(ctx, requestCode); in doAction() 102 doSync(ctx, requestCode); in doAction() 109 doNothingAsync(ctx, ACTION_SLEEP_WHILE_TOP, requestCode); in doAction() 112 showApplicationOverlay(ctx, requestCode); in doAction() 120 private static void showApplicationOverlay(Context ctx, String requestCode) { in showApplicationOverlay() argument 121 final WindowManager wm = ctx.getSystemService(WindowManager.class); in showApplicationOverlay() [all …]
|
/cts/tests/tests/nativemidi/jni/ |
D | native-lib.cpp | 353 JNIEnv* env, jobject, jlong ctx, jobject deviceObj) { in Java_android_nativemidi_cts_NativeMidiEchoTest_openNativeMidiDevice() argument 354 TestContext* context = (TestContext*)ctx; in Java_android_nativemidi_cts_NativeMidiEchoTest_openNativeMidiDevice() 360 JNIEnv*, jobject, jlong ctx) { in Java_android_nativemidi_cts_NativeMidiEchoTest_closeNativeMidiDevice() argument 361 TestContext* context = (TestContext*)ctx; in Java_android_nativemidi_cts_NativeMidiEchoTest_closeNativeMidiDevice() 370 JNIEnv*, jobject, jlong ctx, jint portNumber) { in Java_android_nativemidi_cts_NativeMidiEchoTest_startWritingMidi() argument 372 TestContext* context = (TestContext*)ctx; in Java_android_nativemidi_cts_NativeMidiEchoTest_startWritingMidi() 390 JNIEnv*, jobject, jlong ctx) { in Java_android_nativemidi_cts_NativeMidiEchoTest_stopWritingMidi() argument 392 TestContext* context = (TestContext*)ctx; in Java_android_nativemidi_cts_NativeMidiEchoTest_stopWritingMidi() 406 jlong ctx, jbyteArray data, jint offset, jint numBytes, jlong timestamp) { in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp() argument 408 TestContext* context = (TestContext*)ctx; in Java_android_nativemidi_cts_NativeMidiEchoTest_writeMidiWithTimestamp() [all …]
|
/cts/tests/tests/nativemidi/java/android/nativemidi/cts/ |
D | NativeMidiEchoTest.java | 483 public native int openNativeMidiDevice(long ctx, MidiDevice device); in openNativeMidiDevice() argument 484 public native int closeNativeMidiDevice(long ctx); in closeNativeMidiDevice() argument 486 public native int startReadingMidi(long ctx, int portNumber); in startReadingMidi() argument 487 public native int stopReadingMidi(long ctx); in stopReadingMidi() argument 489 public native int startWritingMidi(long ctx, int portNumber); in startWritingMidi() argument 490 public native int stopWritingMidi(long ctx); in stopWritingMidi() argument 492 public native int writeMidi(long ctx, byte[] data, int offset, int length); in writeMidi() argument 493 public native int writeMidiWithTimestamp(long ctx, byte[] data, int offset, int length, in writeMidiWithTimestamp() argument 495 public native int flushSentMessages(long ctx); in flushSentMessages() argument 498 public native int getNumSends(long ctx); in getNumSends() argument [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-8434/ |
D | poc.c | 87 struct kgsl_drawctxt_create ctx; in trigger_kgsl_create_drawctx() local 88 ctx.flags = KGSL_CONTEXT_PREAMBLE | KGSL_CONTEXT_NO_GMEM_ALLOC; in trigger_kgsl_create_drawctx() 89 ioctl(g_fd, IOCTL_KGSL_DRAWCTXT_CREATE, &ctx); in trigger_kgsl_create_drawctx() 90 g_ctx_id = ctx.drawctxt_id; in trigger_kgsl_create_drawctx() 94 struct kgsl_drawctxt_destroy ctx; in trigger_kgsl_free_drawctx() local 95 ctx.drawctxt_id = id; in trigger_kgsl_free_drawctx() 96 ioctl(g_fd, IOCTL_KGSL_DRAWCTXT_DESTROY, &ctx); in trigger_kgsl_free_drawctx()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/ |
D | RefocusTest.java | 58 Context ctx = getContext(); in refocus() local 60 RenderScript rs = RenderScript.create(ctx); in refocus() 65 ctx.getContentResolver(), ctx); in refocus() 72 Bitmap expectedImage = BitmapFactory.decodeResource(ctx.getResources(), in refocus() 78 MediaStoreSaver.savePNG(outputImage, "refocus", "refocus_output" , ctx); in refocus()
|
/cts/tests/tests/jni/src/android/jni/cts/ |
D | ClassLoaderStaticNonce.java | 26 static Object ctx; field in ClassLoaderStaticNonce 30 ctx = new Object(); 55 ctx = in; in setCtx() 59 return ctx; in getCtx()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewDataDirTest.java | 41 public void run(Context ctx) { in run() argument 44 new WebView(ctx); in run() 86 public void run(Context ctx) { in run() argument 106 public void run(Context ctx) { in run() argument 108 new WebView(ctx); in run() 128 public void run(Context ctx) { in run() argument
|
D | TestProcessClient.java | 63 public abstract void run(Context ctx); in run() argument 72 public void run(Context ctx) { in run() argument
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_EncryptionTest.cpp | 48 EVP_CIPHER_CTX ctx; in android_security_cts_EncryptionTest_aesIsFast() local 56 EVP_CIPHER_CTX_init(&ctx); in android_security_cts_EncryptionTest_aesIsFast() 58 if (!EVP_DecryptInit(&ctx, TEST_EVP_CIPHER, key, iv)) { in android_security_cts_EncryptionTest_aesIsFast() 79 EVP_DecryptUpdate(&ctx, buf, &len, buf, TEST_BUFSIZE); in android_security_cts_EncryptionTest_aesIsFast()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | DropBoxReceiver.java | 35 public DropBoxReceiver(Context ctx, String wantTag, String... wantInStackTrace) { in DropBoxReceiver() argument 39 DropBoxManager mDropbox = (DropBoxManager) ctx.getSystemService(Context.DROPBOX_SERVICE); in DropBoxReceiver() 41 ctx.registerReceiver( in DropBoxReceiver()
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | DatabaseTestUtils.java | 46 Context ctx = InstrumentationRegistry.getInstrumentation().getContext(); in getDbInfoOutput() local 47 return executeShellCommand("dumpsys dbinfo " + ctx.getPackageName()); in getDbInfoOutput()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/ |
D | WidgetCtsProvider.java | 75 public void onReceive(Context ctx, Intent intent) { in onReceive() argument 97 AppWidgetManager mgr = AppWidgetManager.getInstance(ctx); in onReceive() 99 updateWidget(ctx, widgetId, mgr, options); in onReceive() 101 super.onReceive(ctx, intent); in onReceive() 105 public void onDeleted(Context ctx, int[] ids) { in onDeleted() argument
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ |
D | Utils.java | 80 public static int convertDpToPixel(Context ctx, int dp) { in convertDpToPixel() argument 81 float density = ctx.getResources().getDisplayMetrics().density; in convertDpToPixel()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | TestAppInterface.java | 49 TestAppInterface(Context ctx, int jobId) { in TestAppInterface() argument 50 mContext = ctx; in TestAppInterface()
|
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
D | AtomTests.java | 492 Context ctx, CountDownLatch onReceiveLatch, IntentFilter intentFilter) { in registerReceiver() argument 505 ctx.registerReceiver(receiver, intentFilter, null, handler); in registerReceiver() 513 private static void waitForReceiver(Context ctx, in waitForReceiver() argument 527 if (ctx != null && receiver != null) { in waitForReceiver() 528 ctx.unregisterReceiver(receiver); in waitForReceiver()
|
/cts/tests/apppredictionservice/src/android/apppredictionservice/cts/ |
D | AppPredictionServiceTest.java | 276 Context ctx = InstrumentationRegistry.getTargetContext(); in createTestPredictor() local 277 AppPredictionManager mgr = (AppPredictionManager) ctx.getSystemService( in createTestPredictor()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/ |
D | CameraPerformanceActivity.java | 195 private void initializeTestCases(Context ctx) { in initializeTestCases() argument 221 testCase.setContext(ctx); in initializeTestCases()
|
/cts/hostsidetests/media/bitstreams/app/src/android/media/cts/bitstreams/app/ |
D | MediaBitstreamsDeviceSideTest.java | 219 Context ctx = InstrumentationRegistry.getContext(); in getSettings() local 220 SharedPreferences settings = ctx.getSharedPreferences(MediaBitstreams.K_MODULE, 0); in getSettings()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | EncodeVirtualDisplayWithCompositionTest.java | 1324 Context ctx = getContext(); in onCreate() local 1325 TableLayout table = new TableLayout(ctx); in onCreate() 1334 TableRow rows[] = new TableRow[] {new TableRow(ctx), new TableRow(ctx)}; in onCreate() 1336 mQuadrants[i] = new ImageView(ctx); in onCreate()
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | TextAppearanceSpanTest.java | 434 final Context ctx = mContext.createPackageContext(mContext.getPackageName(), in testRestrictContext() local 436 final TextAppearanceSpan span = new TextAppearanceSpan(ctx, in testRestrictContext()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | TypefaceTest.java | 71 final Context ctx = InstrumentationRegistry.getTargetContext(); 72 final Typeface typeface = ctx.getResources().getFont(R.font.a3em);
|
/cts/tests/camera/libctscamera2jni/ |
D | native-camera-jni.cpp | 3662 AvailabilityContext *ctx = new AvailabilityContext(); in Java_android_hardware_multiprocess_camera_cts_CameraEvictionTest_initializeAvailabilityCallbacksNative() local 3664 auto rc = ctx->initialize(); in Java_android_hardware_multiprocess_camera_cts_CameraEvictionTest_initializeAvailabilityCallbacksNative() 3670 return (jlong) ctx; in Java_android_hardware_multiprocess_camera_cts_CameraEvictionTest_initializeAvailabilityCallbacksNative() 3684 AvailabilityContext* ctx = reinterpret_cast<AvailabilityContext*>(context); in Java_android_hardware_multiprocess_camera_cts_CameraEvictionTest_getAccessCallbacksCountAndResetNative() local 3685 return ctx->getAcessCallbackCountAndReset(); in Java_android_hardware_multiprocess_camera_cts_CameraEvictionTest_getAccessCallbacksCountAndResetNative() 3698 AvailabilityContext* ctx = reinterpret_cast<AvailabilityContext*>(context); in Java_android_hardware_multiprocess_camera_cts_CameraEvictionTest_releaseAvailabilityCallbacksNative() local 3699 delete ctx; in Java_android_hardware_multiprocess_camera_cts_CameraEvictionTest_releaseAvailabilityCallbacksNative()
|
/cts/tests/tests/rsblas/src/android/renderscript/cts/ |
D | BLASData.java | 1348 void loadData(Context ctx) throws Exception { in loadData() argument 1349 InputStream is = ctx.getAssets().open("BLASData.txt"); in loadData()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 759 (ctx) -> ctx.registerReceiverForAllUsers(broadcastReceiver, filter, null, null) in testRegisterReceiverForAllUsers()
|