Searched refs:scanner (Results 1 – 3 of 3) sorted by relevance
125 try (Scanner scanner = new Scanner(statm)) { in isKernelProcess() argument128 if (scanner.nextInt() != 0) { in isKernelProcess()133 if (scanner.hasNext()) { in isKernelProcess()160 try (Scanner scanner = new Scanner(status)) { in isRootProcess() argument161 findToken(scanner, "Uid:"); in isRootProcess()162 boolean rootUid = hasRootId(scanner); in isRootProcess()163 findToken(scanner, "Gid:"); in isRootProcess()164 boolean rootGid = hasRootId(scanner); in isRootProcess()178 try (Scanner scanner = new Scanner(status)) { in isApproved() argument179 findToken(scanner, "Name:"); in isApproved()[all …]
132 def Discover(scanner, advertiser): argument149 scanner.scan_callback = scanner.android.bleStartScan([SCAN_FILTER],154 scan_result = scanner.scan_callback.waitForEvent(161 scanner.connect_to_address = result['Device']['Address']169 scanner.log.info('Advertiser is found')172 def StopDiscover(scanner, advertiser): argument184 scanner.android.bleStopScan(scanner.scan_callback.callback_id)185 scanner.log.info('BLE scanning stopped')
251 try (Scanner scanner = new Scanner(f)) { in readFile() argument252 while(scanner.hasNextLine()) { in readFile()253 sb.append(scanner.nextLine() + lineSeparator); in readFile()