diff options
Diffstat (limited to 'hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/PocService.java')
-rw-r--r-- | hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/PocService.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/PocService.java b/hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/PocService.java index b83e8247d54..c78d7d4a656 100644 --- a/hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/PocService.java +++ b/hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/PocService.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 The Android Open Source Project + * Copyright (C) 2023 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,8 +55,8 @@ public class PocService extends Service { mWindowManager = getSystemService(WindowManager.class); mLayoutParams = new LayoutParams(); mLayoutParams.type = LayoutParams.TYPE_APPLICATION_OVERLAY; - mLayoutParams.flags = LayoutParams.FLAG_NOT_TOUCH_MODAL | - LayoutParams.FLAG_NOT_FOCUSABLE; + mLayoutParams.flags = + LayoutParams.FLAG_NOT_TOUCH_MODAL | LayoutParams.FLAG_NOT_FOCUSABLE; mLayoutParams.format = PixelFormat.OPAQUE; mLayoutParams.gravity = Gravity.LEFT | Gravity.TOP; mLayoutParams.width = getScreenWidth(); @@ -65,7 +65,7 @@ public class PocService extends Service { mLayoutParams.y = getScreenHeight() / 2; Context context = getApplicationContext(); mButton = new Button(context); - mButton.setText(context.getString(R.string.overlayButtonText)); + mButton.setText(context.getString(R.string.txtOverlayBtn)); mWindowManager.addView(mButton, mLayoutParams); sendTestResult(getResources().getInteger(R.integer.noException), ""); } catch (Exception e) { @@ -87,10 +87,10 @@ public class PocService extends Service { void sendTestResult(int status, String message) { try { RemoteCallback cb = - (RemoteCallback) mIntent.getExtras().get(getString(R.string.callbackKey)); + (RemoteCallback) mIntent.getExtras().get(getString(R.string.callback)); Bundle res = new Bundle(); - res.putString(getString(R.string.messageKey), message); - res.putInt(getString(R.string.statusKey), status); + res.putString(getString(R.string.message), message); + res.putInt(getString(R.string.status), status); cb.sendResult(res); } catch (Exception e) { // ignore exception here |