/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiQrCode.java | 90 public WifiQrCode(String qrCode) throws IllegalArgumentException { in WifiQrCode() argument 91 if (TextUtils.isEmpty(qrCode)) { in WifiQrCode() 95 mQrCode = qrCode; in WifiQrCode() 97 if (qrCode.startsWith(PREFIX_DPP)) { in WifiQrCode() 99 parseWifiDppQrCode(qrCode); in WifiQrCode() 100 } else if (qrCode.startsWith(PREFIX_ZXING_WIFI_NETWORK_CONFIG)) { in WifiQrCode() 102 parseZxingWifiQrCode(qrCode); in WifiQrCode() 109 private void parseWifiDppQrCode(String qrCode) throws IllegalArgumentException { in parseWifiDppQrCode() argument 110 List keyValueList = getKeyValueList(qrCode, PREFIX_DPP, DELIMITER_QR_CODE); in parseWifiDppQrCode() 122 private void parseZxingWifiQrCode(String qrCode) throws IllegalArgumentException { in parseZxingWifiQrCode() argument [all …]
|
D | WifiDppInitiatorViewModel.java | 55 public void startEasyConnectAsConfiguratorInitiator(String qrCode, int networkId) { in startEasyConnectAsConfiguratorInitiator() argument 59 wifiManager.startEasyConnectAsConfiguratorInitiator(qrCode, networkId, in startEasyConnectAsConfiguratorInitiator() 64 public void startEasyConnectAsEnrolleeInitiator(String qrCode) { in startEasyConnectAsEnrolleeInitiator() argument 68 wifiManager.startEasyConnectAsEnrolleeInitiator(qrCode, getApplication().getMainExecutor(), in startEasyConnectAsEnrolleeInitiator()
|
D | WifiDppQrCodeScannerFragment.java | 447 public boolean isValid(String qrCode) { in isValid() argument 449 mWifiQrCode = new WifiQrCode(qrCode); in isValid() 479 public void handleSuccessfulResult(String qrCode) { in handleSuccessfulResult() argument
|
D | WifiDppConfiguratorActivity.java | 104 String qrCode = savedInstanceState.getString(KEY_QR_CODE); in onCreate() local 106 mWifiDppQrCode = WifiQrCode.getValidWifiDppQrCodeOrNull(qrCode); in onCreate()
|
D | WifiDppAddDeviceFragment.java | 320 final String qrCode = wifiQrCode.getQrCode(); in startWifiDppConfiguratorInitiator() local 326 model.startEasyConnectAsConfiguratorInitiator(qrCode, networkId); in startWifiDppConfiguratorInitiator()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/ |
D | WifiQrCode.java | 87 public WifiQrCode(String qrCode) throws IllegalArgumentException { in WifiQrCode() argument 88 if (TextUtils.isEmpty(qrCode)) { in WifiQrCode() 92 mQrCode = qrCode; in WifiQrCode() 94 if (qrCode.startsWith(PREFIX_DPP)) { in WifiQrCode() 96 parseWifiDppQrCode(qrCode); in WifiQrCode() 97 } else if (qrCode.startsWith(PREFIX_ZXING_WIFI_NETWORK_CONFIG)) { in WifiQrCode() 99 parseZxingWifiQrCode(qrCode); in WifiQrCode() 106 private void parseWifiDppQrCode(String qrCode) throws IllegalArgumentException { in parseWifiDppQrCode() argument 107 List keyValueList = getKeyValueList(qrCode, PREFIX_DPP, DELIMITER_QR_CODE); in parseWifiDppQrCode() 119 private void parseZxingWifiQrCode(String qrCode) throws IllegalArgumentException { in parseZxingWifiQrCode() argument [all …]
|
D | WifiDppInitiatorViewModel.java | 55 public void startEasyConnectAsConfiguratorInitiator(String qrCode, int networkId) { in startEasyConnectAsConfiguratorInitiator() argument 59 wifiManager.startEasyConnectAsConfiguratorInitiator(qrCode, networkId, in startEasyConnectAsConfiguratorInitiator() 64 public void startEasyConnectAsEnrolleeInitiator(String qrCode) { in startEasyConnectAsEnrolleeInitiator() argument 68 wifiManager.startEasyConnectAsEnrolleeInitiator(qrCode, getApplication().getMainExecutor(), in startEasyConnectAsEnrolleeInitiator()
|
D | WifiDppQrCodeScannerFragment.java | 437 public boolean isValid(String qrCode) { in isValid() argument 439 mWifiQrCode = new WifiQrCode(qrCode); in isValid() 469 public void handleSuccessfulResult(String qrCode) { in handleSuccessfulResult() argument
|
D | WifiDppConfiguratorActivity.java | 104 String qrCode = savedInstanceState.getString(KEY_QR_CODE); in onCreate() local 106 mWifiDppQrCode = WifiQrCode.getValidWifiDppQrCodeOrNull(qrCode); in onCreate()
|
D | WifiDppAddDeviceFragment.java | 320 final String qrCode = wifiQrCode.getQrCode(); in startWifiDppConfiguratorInitiator() local 326 model.startEasyConnectAsConfiguratorInitiator(qrCode, networkId); in startWifiDppConfiguratorInitiator()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/ |
D | QrCamera.java | 164 boolean isValid(String qrCode); in isValid() argument 246 Result qrCode = null; in doInBackground() local 248 qrCode = in doInBackground() 257 if (qrCode != null) { in doInBackground() 258 if (mScannerCallback.isValid(qrCode.getText())) { in doInBackground() 259 return qrCode.getText(); in doInBackground() 270 protected void onPostExecute(String qrCode) { in onPostExecute() argument 271 if (qrCode != null) { in onPostExecute() 272 mScannerCallback.handleSuccessfulResult(qrCode); in onPostExecute() 391 Result qrCode = null; in decodeImage() local [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/ |
D | QrCamera.java | 171 boolean isValid(String qrCode); in isValid() argument 256 Result qrCode = null; in doInBackground() local 258 qrCode = in doInBackground() 267 if (qrCode != null) { in doInBackground() 268 if (mScannerCallback.isValid(qrCode.getText())) { in doInBackground() 269 return qrCode.getText(); in doInBackground() 280 protected void onPostExecute(String qrCode) { in onPostExecute() argument 281 if (qrCode != null) { in onPostExecute() 282 mScannerCallback.handleSuccessfulResult(qrCode); in onPostExecute() 440 Result qrCode = null; in decodeImage() local [all …]
|
/packages/apps/Car/LinkViewer/src/com/android/car/linkviewer/ |
D | LinkViewerActivity.java | 71 QRCode qrCode; in showUrl() local 73 qrCode = Encoder.encode(url, ErrorCorrectionLevel.H); in showUrl() 79 BitmapDrawable drawable = new BitmapDrawable(getResources(), qrToBitmap(qrCode)); in showUrl() 85 private Bitmap qrToBitmap(QRCode qrCode) { in qrToBitmap() argument 86 ByteMatrix matrix = qrCode.getMatrix(); in qrToBitmap()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/qrcode/ |
D | QrCameraTest.java | 71 public void handleSuccessfulResult(String qrCode) { in handleSuccessfulResult() argument 72 mQrCode = qrCode; in handleSuccessfulResult() 87 public boolean isValid(String qrCode) { in isValid() argument
|
/packages/apps/Settings/src/com/android/settings/development/ |
D | AdbQrcodeScannerFragment.java | 251 public boolean isValid(String qrCode) { in isValid() argument 254 mAdbQrCode = new WifiQrCode(qrCode); in isValid() 290 public void handleSuccessfulResult(String qrCode) { in handleSuccessfulResult() argument
|