Home
last modified time | relevance | path

Searched refs:qrCode (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiQrCode.java87 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<String> keyValueList = getKeyValueList(qrCode, PREFIX_DPP, DELIMITER_QR_CODE); in parseWifiDppQrCode()
119 private void parseZxingWifiQrCode(String qrCode) throws IllegalArgumentException { in parseZxingWifiQrCode() argument
[all …]
DWifiDppInitiatorViewModel.java71 void startEasyConnectAsConfiguratorInitiator(String qrCode, int networkId) { in startEasyConnectAsConfiguratorInitiator() argument
75 wifiManager.startEasyConnectAsConfiguratorInitiator(qrCode, networkId, in startEasyConnectAsConfiguratorInitiator()
80 void startEasyConnectAsEnrolleeInitiator(String qrCode) { in startEasyConnectAsEnrolleeInitiator() argument
84 wifiManager.startEasyConnectAsEnrolleeInitiator(qrCode, getApplication().getMainExecutor(), in startEasyConnectAsEnrolleeInitiator()
DAdbQrCode.java32 public AdbQrCode(String qrCode) throws IllegalArgumentException { in AdbQrCode() argument
33 super(qrCode); in AdbQrCode()
DWifiDppConfiguratorActivity.java101 String qrCode = savedInstanceState.getString(KEY_QR_CODE); in onCreate() local
103 mWifiDppQrCode = WifiQrCode.getValidWifiDppQrCodeOrNull(qrCode); in onCreate()
DWifiDppQrCodeScannerFragment.java486 public boolean isValid(String qrCode) { in isValid() argument
488 mWifiQrCode = new WifiQrCode(qrCode); in isValid()
508 public void handleSuccessfulResult(String qrCode) { in handleSuccessfulResult() argument
DWifiDppAddDeviceFragment.java393 final String qrCode = wifiQrCode.getQrCode(); in startWifiDppConfiguratorInitiator() local
399 model.startEasyConnectAsConfiguratorInitiator(qrCode, networkId); in startWifiDppConfiguratorInitiator()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java173 boolean isValid(String qrCode); in isValid() argument
259 Result qrCode = null; in doInBackground() local
261 qrCode = in doInBackground()
270 if (qrCode != null) { in doInBackground()
271 if (mScannerCallback.isValid(qrCode.getText())) { in doInBackground()
272 return qrCode.getText(); in doInBackground()
283 protected void onPostExecute(String qrCode) { in onPostExecute() argument
284 if (qrCode != null) { in onPostExecute()
285 mScannerCallback.handleSuccessfulResult(qrCode); in onPostExecute()
458 Result qrCode = null; in decodeImage() local
[all …]
/packages/apps/Car/LinkViewer/src/com/android/car/linkviewer/
DLinkViewerActivity.java80 QRCode qrCode; in showUrl() local
82 qrCode = Encoder.encode(url, ErrorCorrectionLevel.H); in showUrl()
88 BitmapDrawable drawable = new BitmapDrawable(getResources(), qrToBitmap(qrCode)); in showUrl()
94 private Bitmap qrToBitmap(QRCode qrCode) { in qrToBitmap() argument
95 ByteMatrix matrix = qrCode.getMatrix(); in qrToBitmap()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/qrcode/
DQrCameraTest.java79 public void handleSuccessfulResult(String qrCode) { in handleSuccessfulResult() argument
80 mQrCode = qrCode; in handleSuccessfulResult()
95 public boolean isValid(String qrCode) { in isValid() argument
/packages/apps/Settings/src/com/android/settings/development/
DAdbQrcodeScannerFragment.java258 public boolean isValid(String qrCode) { in isValid() argument
261 mAdbQrCode = new AdbQrCode(qrCode); in isValid()
273 public void handleSuccessfulResult(String qrCode) { in handleSuccessfulResult() argument