Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/mtp/
DMtpServer.java62 String strRandomId = null; in MtpServer() local
68 strRandomId = sharedPref.getString(strID_PREFS_KEY, null); in MtpServer()
71 if (strRandomId.length() != sID_LEN_STR) { in MtpServer()
72 strRandomId = null; in MtpServer()
75 for (int ii = 0; ii < strRandomId.length(); ii++) in MtpServer()
76 if (Character.digit(strRandomId.charAt(ii), 16) == -1) { in MtpServer()
77 strRandomId = null; in MtpServer()
83 if (strRandomId == null) { in MtpServer()
84 strRandomId = getRandId(); in MtpServer()
85 sharedPref.edit().putString(strID_PREFS_KEY, strRandomId).apply(); in MtpServer()
[all …]