/cts/tests/app/FgsStartTest/helper/src/android/app/fgsstarttesthelper/ |
D | FgsNewLogicTest.java | 68 var reply = new FgsNewLogicMessage(); in runTest() 69 reply.setFgsStarted(false); in runTest() 70 reply.setUnexpectedErrorMessage("Caught unexpected exception: " + e); in runTest() 72 Log.w(TAG, "Sending back reply intent with message " + reply); in runTest() 73 reply.setToIntent(replyIntent); in runTest() 88 var reply = new FgsNewLogicMessage(); in onStartJob() local 89 reply.setFgsStarted(false); in onStartJob() 90 reply.setUnexpectedErrorMessage("Unexpected error"); in onStartJob() 95 reply.setFgsStarted(true); in onStartJob() 96 reply.setUnexpectedErrorMessage(null); in onStartJob() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/ |
D | poc.cpp | 34 Parcel data, reply; in poc() local 39 err = service->transact(2 /*CREATE_SENSOR_EVENT_CONNECTION*/, data, &reply, 0); in poc() 42 sp<IBinder> binder = reply.readStrongBinder(); in poc() 46 Parcel data, reply; in poc() local 53 err = binder->transact(2 /*ENABLE_DISABLE*/, data, &reply, 0); in poc() 60 Parcel data, reply; in poc() local 63 err = binder->transact(6 /*DESTROY*/, data, &reply, 0); in poc() 68 Parcel data, reply; in poc() local 75 err = binder->transact(2 /*ENABLE_DISABLE*/, data, &reply, 0); in poc() 76 if (reply.readInt32() == OK) { in poc() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/ |
D | BaseNetworkService.java | 79 protected boolean onTransact(int code, Parcel data, Parcel reply, int flags) 85 doTest(reply); 87 writeResult(reply, "Unexpected exception: " + e, e); 91 return super.onTransact(code, data, reply, flags); 95 private void doTest(Parcel reply) { 97 writeResult(reply, 107 writeResult(reply, 114 writeResult(reply, 120 writeResult(reply, 130 writeResult(reply, "Should have INTERNET permission, but got: " + hasPerm, [all …]
|
D | AccessNetworkTest.java | 74 Parcel reply = Parcel.obtain(); in onServiceConnected() local 77 service.transact(BaseNetworkService.TRANSACT_TEST, cmd, reply, 0); in onServiceConnected() 85 mMsg = BaseNetworkService.readResult(reply); in onServiceConnected() 87 ? BaseNetworkService.readResultCallstack(reply) : null; in onServiceConnected() 94 reply.recycle(); in onServiceConnected()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9424/ |
D | poc.cpp | 53 Parcel data, reply; in make_crypto() local 57 drm_binder->transact(MAKE_CRYPTO, data, &reply, 0); in make_crypto() 59 crypto_binder = reply.readStrongBinder(); in make_crypto() 64 Parcel data, reply; in create_plugin() local 74 crypto_binder->transact(CREATE_PLUGIN, data, &reply, 0); in create_plugin() 79 Parcel data, reply; in set_heap() local 86 crypto_binder->transact(SET_HEAP, data, &reply, 0); in set_heap() 88 return reply.readInt32(); in set_heap() 93 Parcel data, reply; in decrypt() local 135 crypto_binder->transact(DECRYPT, data, &reply, 0); in decrypt()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2023-21118/ |
D | poc.cpp | 30 void fillParcel(Parcel &reply) { in fillParcel() argument 43 reply.write(fileData.data(), fileSize); in fillParcel() 44 reply.setDataPosition(25044 /* Set data position to required position */); in fillParcel() 48 Parcel reply; in main() local 50 fillParcel(reply); in main() 52 reply.read(s); in main()
|
/cts/hostsidetests/devicepolicy/app/StartInfoApp/src/com/android/cts/startinfoapp/ |
D | ApiTestActivity.java | 130 reply(success ? REPLY_EXTRA_SUCCESS_VALUE : REPLY_EXTRA_FAILURE_VALUE); in queryStart() 149 reply(REPLY_STATUS_NONE); in addTimestamp() 165 reply(REPLY_EXTRA_SUCCESS_VALUE); in addOneListener() 187 reply(REPLY_EXTRA_SUCCESS_VALUE); in addMultipleListeners() 193 reply(REPLY_EXTRA_SUCCESS_VALUE); in addMultipleListeners() 221 reply(REPLY_EXTRA_FAILURE_VALUE); in addAndRemoveListener() 229 reply(REPLY_EXTRA_SUCCESS_VALUE); in addAndRemoveListener() 240 private void reply(int status) { in reply() method in ApiTestActivity 241 Intent reply = new Intent(); in reply() local 242 reply.setAction(REPLY_ACTION_COMPLETE); in reply() [all …]
|
/cts/hostsidetests/devicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/ |
D | SimpleActivityStartService.java | 66 Intent reply = new Intent(ACTION_SIMPLE_ACTIVITY_START_SERVICE_RESULT); in attemptStartService() local 67 reply.setFlags(Intent.FLAG_RECEIVER_FOREGROUND); in attemptStartService() 72 reply.putExtra("result", Activity.RESULT_CANCELED); in attemptStartService() 73 sendBroadcast(reply); in attemptStartService() 76 reply.putExtra("result", Activity.RESULT_FIRST_USER); in attemptStartService() 77 sendBroadcast(reply); in attemptStartService()
|
D | SimpleService3.java | 47 protected boolean onTransact(int code, Parcel data, Parcel reply, int flags) 54 return super.onTransact(code, data, reply, flags); 83 Intent reply = new Intent(ACTION_SIMPLE_ACTIVITY_START_FG_SERVICE_RESULT); in onStartCommand() local 84 reply.setFlags(Intent.FLAG_RECEIVER_FOREGROUND); in onStartCommand() 85 reply.putExtra("result", Activity.RESULT_FIRST_USER); in onStartCommand() 86 sendBroadcast(reply); in onStartCommand()
|
D | SimpleActivityStartFgService.java | 74 Intent reply = new Intent(ACTION_SIMPLE_ACTIVITY_START_FG_SERVICE_RESULT); in attemptStartService() local 75 reply.setFlags(Intent.FLAG_RECEIVER_FOREGROUND); in attemptStartService() 91 reply.putExtra("result", Activity.RESULT_CANCELED); in attemptStartService() 92 sendBroadcast(reply); in attemptStartService()
|
D | SimpleActivity.java | 46 Intent reply = new Intent(); in onStart() local 47 reply.setAction(ACTIVITY_LAUNCHED_ACTION); in onStart() 48 sendBroadcast(reply); in onStart()
|
/cts/tests/app/AppExitTest/src/android/app/cts/ |
D | MemoryConsumerService.java | 53 protected boolean onTransact(int code, Parcel data, Parcel reply, int flags) 57 reply.writeBoolean(fillUpMemoryAndCheck(data.readLong(), mTestFunc)); 75 protected boolean onTransact(int code, Parcel data, Parcel reply, int flags) in onTransact() argument 79 reply.writeBoolean(mTestFunc.getAsBoolean()); in onTransact() 121 Parcel reply = Parcel.obtain(); in fillUpMemoryAndCheck() local 123 testFunc.transact(TestFuncInterface.ACTION_TEST, data, reply, 0); in fillUpMemoryAndCheck() 124 if (reply.readBoolean()) { in fillUpMemoryAndCheck() 131 reply.recycle(); in fillUpMemoryAndCheck() 173 final Parcel reply = Parcel.obtain(); in runOnce() local 177 binder.transact(ACTION_RUN_ONCE, data, reply, 0); in runOnce() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0243/ |
D | poc.cpp | 33 Parcel data, reply; in thread_getParameter() local 37 err = params->service->transact(/*GET_PARAMETER_ID*/ 31, data, &reply, 0); in thread_getParameter() 57 Parcel data, reply; in main() local 63 err = service->transact(/*CREATE_ID*/ 1, data, &reply, 0); in main() 64 binder = reply.readStrongBinder(); in main() 83 Parcel data, reply; in main() local 86 err = binder->transact(/*SET_DATA_SOURCE_URL_ID*/ 2, data, &reply, 0); in main()
|
/cts/tests/tests/binder_ndk/src/android/binder/cts/ |
D | ILegacyBinder.java | 47 public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) in onTransact() argument 51 reply.writeInt(RepeatInt(data.readInt())); in onTransact() 55 return super.onTransact(code, data, reply, flags); in onTransact() 74 android.os.Parcel reply = android.os.Parcel.obtain(); in RepeatInt() local 77 mRemote.transact(Stub.TRANSACTION_RepeatInt, data, reply, 0); in RepeatInt() 78 return reply.readInt(); in RepeatInt() 80 reply.recycle(); in RepeatInt()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | AudioSecurityTest.java | 50 private static void verifyZeroReply(byte[] reply) throws Exception { in verifyZeroReply() argument 52 for (byte b : reply) { in verifyZeroReply() 164 byte reply[] = new byte[4]; // ignored in testAudioEffectGetParameter() 168 audioEffect, EFFECT_CMD_OFFLOAD, command, reply); in testAudioEffectGetParameter() 175 byte reply[] = new byte[30]; in testAudioEffectGetParameter() 179 audioEffect, EFFECT_CMD_GET_PARAM, command, reply); in testAudioEffectGetParameter() 182 verifyZeroReply(reply); in testAudioEffectGetParameter() 207 byte reply[] = new byte[4]; // ignored in testAudioEffectGetParameter2() 211 audioEffect, EFFECT_CMD_OFFLOAD, command, reply); in testAudioEffectGetParameter2() 226 byte reply[] = new byte[parameterSize + SIZEOF_EFFECT_PARAM_T]; in testAudioEffectGetParameter2() [all …]
|
D | EffectBundleTest.java | 148 byte reply[] = new byte[Equalizer.PARAM_STRING_SIZE_MAX]; in testParamPresetName() 149 Arrays.fill(reply, testValue); in testParamPresetName() 150 int length = eqGetParam(media, command, invalidBand, reply); in testParamPresetName() 156 if (reply[length - 1] == '\0') { in testParamPresetName() 159 final String presetName = new String(reply, 0, length, in testParamPresetName() 316 byte reply[] = new byte[ 4 /*command.length*/]; in eqSetParamProperties() 320 byte[].class).invoke(af, cmdCode, command, reply); in eqSetParamProperties() 323 int replyValue = byteArrayToInt(reply, 0 /*offset*/); in eqSetParamProperties() 360 byte reply[] = new byte[command.length]; in eqGetParamFreqRangeCommand() 364 byte[].class).invoke(af, cmdCode, command, reply); in eqGetParamFreqRangeCommand() [all …]
|
D | IBinderExchange.java | 55 int code, android.os.Parcel data, android.os.Parcel reply, int flags) in onTransact() argument 60 reply.writeString(descriptor); in onTransact() 68 reply.writeNoException(); in onTransact() 74 reply.writeNoException(); in onTransact() 75 reply.writeStrongBinder(_result); in onTransact() 79 return super.onTransact(code, data, reply, flags); in onTransact()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | LocalService.java | 71 protected boolean onTransact(int code, Parcel data, Parcel reply, 80 reply.writeInt(mValue); 88 reply.writeInt(Process.myPid()); 92 reply.writeInt(Process.myUid()); 96 reply.writeInt(Process.myPpid()); 100 reply.writeBoolean(ZygotePreload.preloadCalled()); 112 reply.writeInt(sOnCreateCount); 115 return super.onTransact(code, data, reply, flags);
|
D | SimpleActivity.java | 57 final Parcel reply = Parcel.obtain(); in onTrimMemory() local 60 mCallback.transact(IBinder.FIRST_CALL_TRANSACTION, data, reply, 0); in onTrimMemory() 64 reply.recycle(); in onTrimMemory()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2460/ |
D | poc.cpp | 60 Parcel data, reply; in main() local 64 &reply); in main() 65 int len = reply.dataAvail(); in main() 67 unsigned int *leaked_data = (unsigned int *)reply.data(); in main()
|
/cts/tests/app/ActivityManagerApi29Test/src/android/app/cts/ |
D | SimpleActivity.java | 43 Intent reply = new Intent(ACTION_SIMPLE_ACTIVITY_START_RESULT); in onResume() local 44 reply.setFlags(Intent.FLAG_RECEIVER_FOREGROUND); in onResume() 45 sendBroadcast(reply); in onResume()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MessengerService.java | 32 Message reply = Message.obtain(); 33 reply.copyFrom(msg); 35 msg.replyTo.send(reply);
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40094/src/android/security/cts/CVE_2023_40094/ |
D | DeviceTest.java | 46 Parcel reply = Parcel.obtain(); in testCVE_2023_40094() local 60 binder.transact(transactMethodCode, data, reply, 0 /* normal RPC */); in testCVE_2023_40094() 61 reply.readException(); in testCVE_2023_40094() 70 reply.recycle(); in testCVE_2023_40094()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-2419/ |
D | poc.cpp | 49 Parcel data, reply; in doInforLeakTest() local 52 ->transact(2 /*MAKE_DRM*/, data, &reply); //MAKE_DRM : 2 (N & O branch), 6 (M Branch) in doInforLeakTest() 53 sp<IBinder> iDrm(reply.readStrongBinder()); in doInforLeakTest()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/ |
D | poc.cpp | 61 Parcel data, reply; in bcfree_helper() local 69 Parcel data, reply; in bcfree_helper() local 74 ->transact(4 /*FLUSH_SENSOR*/, data, &reply, 0); in bcfree_helper() 82 Parcel data, reply; in bcfree() local 90 Parcel data, reply; in bcfree() local 95 ->transact(4 /*FLUSH_SENSOR*/, data, &reply, 0); in bcfree() 96 const uint8_t *rmData = reply.data(); in bcfree() 151 Parcel data, reply; in bcfree() local 153 ->transact(0xdeadbfff /*FLUSH_SENSOR*/, data, &reply, 0x2f2f); in bcfree() 156 ->transact(0xdeadbfff /*FLUSH_SENSOR*/, data, &reply, 0x2f2f); in bcfree()
|