/developers/samples/android/input/gestures/BasicGestureDetect/Application/src/main/java/com/example/android/basicgesturedetect/ |
D | GestureListener.java | 32 public boolean onSingleTapUp(MotionEvent e) { in onSingleTapUp() argument 34 Log.i(TAG, "Single Tap Up" + getTouchType(e)); in onSingleTapUp() 39 public void onLongPress(MotionEvent e) { in onLongPress() argument 42 Log.i(TAG, "Long Press" + getTouchType(e)); in onLongPress() 62 public void onShowPress(MotionEvent e) { in onShowPress() argument 64 Log.i(TAG, "Show Press" + getTouchType(e)); in onShowPress() 68 public boolean onDown(MotionEvent e) { in onDown() argument 70 Log.i(TAG, "Down" + getTouchType(e)); in onDown() 75 public boolean onDoubleTap(MotionEvent e) { in onDoubleTap() argument 77 Log.i(TAG, "Double tap" + getTouchType(e)); in onDoubleTap() [all …]
|
/developers/build/prebuilts/gradle/BasicGestureDetect/Application/src/main/java/com/example/android/basicgesturedetect/ |
D | GestureListener.java | 32 public boolean onSingleTapUp(MotionEvent e) { in onSingleTapUp() argument 34 Log.i(TAG, "Single Tap Up" + getTouchType(e)); in onSingleTapUp() 39 public void onLongPress(MotionEvent e) { in onLongPress() argument 42 Log.i(TAG, "Long Press" + getTouchType(e)); in onLongPress() 62 public void onShowPress(MotionEvent e) { in onShowPress() argument 64 Log.i(TAG, "Show Press" + getTouchType(e)); in onShowPress() 68 public boolean onDown(MotionEvent e) { in onDown() argument 70 Log.i(TAG, "Down" + getTouchType(e)); in onDown() 75 public boolean onDoubleTap(MotionEvent e) { in onDoubleTap() argument 77 Log.i(TAG, "Double tap" + getTouchType(e)); in onDoubleTap() [all …]
|
/developers/samples/android/security/keystore/BasicAndroidKeyStore/Application/src/main/java/com/example/android/basicandroidkeystore/ |
D | BasicAndroidKeyStoreFragment.java | 92 } catch (NoSuchAlgorithmException e) { in onOptionsItemSelected() 93 Log.w(TAG, "RSA not supported", e); in onOptionsItemSelected() 94 } catch (InvalidAlgorithmParameterException e) { in onOptionsItemSelected() 96 } catch (NoSuchProviderException e) { in onOptionsItemSelected() 97 Log.w(TAG, "Invalid Algorithm Parameter Exception", e); in onOptionsItemSelected() 103 } catch (KeyStoreException e) { in onOptionsItemSelected() 104 Log.w(TAG, "KeyStore not Initialized", e); in onOptionsItemSelected() 105 } catch (UnrecoverableEntryException e) { in onOptionsItemSelected() 106 Log.w(TAG, "KeyPair not recovered", e); in onOptionsItemSelected() 107 } catch (NoSuchAlgorithmException e) { in onOptionsItemSelected() [all …]
|
/developers/build/prebuilts/gradle/BasicAndroidKeyStore/Application/src/main/java/com/example/android/basicandroidkeystore/ |
D | BasicAndroidKeyStoreFragment.java | 92 } catch (NoSuchAlgorithmException e) { in onOptionsItemSelected() 93 Log.w(TAG, "RSA not supported", e); in onOptionsItemSelected() 94 } catch (InvalidAlgorithmParameterException e) { in onOptionsItemSelected() 96 } catch (NoSuchProviderException e) { in onOptionsItemSelected() 97 Log.w(TAG, "Invalid Algorithm Parameter Exception", e); in onOptionsItemSelected() 103 } catch (KeyStoreException e) { in onOptionsItemSelected() 104 Log.w(TAG, "KeyStore not Initialized", e); in onOptionsItemSelected() 105 } catch (UnrecoverableEntryException e) { in onOptionsItemSelected() 106 Log.w(TAG, "KeyPair not recovered", e); in onOptionsItemSelected() 107 } catch (NoSuchAlgorithmException e) { in onOptionsItemSelected() [all …]
|
/developers/samples/android/deprecated/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
D | AssetUtils.java | 41 } catch (IOException e) { in loadAsset() 42 Log.e(TAG, "Failed to load asset " + asset + ": " + e); in loadAsset() 52 } catch (JSONException e) { in loadJSONAsset() 53 Log.e(TAG, "Failed to parse JSON asset " + asset + ": " + e); in loadJSONAsset() 66 } catch (IOException e) { in loadBitmapAsset() 67 Log.e(TAG, e.toString()); in loadBitmapAsset() 72 } catch (IOException e) { in loadBitmapAsset() 73 Log.e(TAG, "Cannot close InputStream: ", e); in loadBitmapAsset()
|
/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
D | AssetUtils.java | 41 } catch (IOException e) { in loadAsset() 42 Log.e(TAG, "Failed to load asset " + asset + ": " + e); in loadAsset() 52 } catch (JSONException e) { in loadJSONAsset() 53 Log.e(TAG, "Failed to parse JSON asset " + asset + ": " + e); in loadJSONAsset() 66 } catch (IOException e) { in loadBitmapAsset() 67 Log.e(TAG, e.toString()); in loadBitmapAsset() 72 } catch (IOException e) { in loadBitmapAsset() 73 Log.e(TAG, "Cannot close InputStream: ", e); in loadBitmapAsset()
|
/developers/samples/android/connectivity/bluetooth/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/ |
D | BluetoothChatService.java | 320 } catch (IOException e) { in AcceptThread() 321 Log.e(TAG, "Socket Type: " + mSocketType + "listen() failed", e); in AcceptThread() 340 } catch (IOException e) { in run() 341 Log.e(TAG, "Socket Type: " + mSocketType + "accept() failed", e); in run() 360 } catch (IOException e) { in run() 361 Log.e(TAG, "Could not close unwanted socket", e); in run() 376 } catch (IOException e) { in cancel() 377 Log.e(TAG, "Socket Type" + mSocketType + "close() of server failed", e); in cancel() 408 } catch (IOException e) { in ConnectThread() 409 Log.e(TAG, "Socket Type: " + mSocketType + "create() failed", e); in ConnectThread() [all …]
|
/developers/build/prebuilts/gradle/BluetoothChat/Application/src/main/java/com/example/android/bluetoothchat/ |
D | BluetoothChatService.java | 320 } catch (IOException e) { in AcceptThread() 321 Log.e(TAG, "Socket Type: " + mSocketType + "listen() failed", e); in AcceptThread() 340 } catch (IOException e) { in run() 341 Log.e(TAG, "Socket Type: " + mSocketType + "accept() failed", e); in run() 360 } catch (IOException e) { in run() 361 Log.e(TAG, "Could not close unwanted socket", e); in run() 376 } catch (IOException e) { in cancel() 377 Log.e(TAG, "Socket Type" + mSocketType + "close() of server failed", e); in cancel() 408 } catch (IOException e) { in ConnectThread() 409 Log.e(TAG, "Socket Type: " + mSocketType + "create() failed", e); in ConnectThread() [all …]
|
/developers/build/prebuilts/gradle/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
D | ImageFetcher.java | 100 } catch (IOException e) { in initHttpDiskCache() 119 } catch (IOException e) { in clearCacheInternal() 120 Log.e(TAG, "clearCacheInternal - " + e); in clearCacheInternal() 139 } catch (IOException e) { in flushCacheInternal() 140 Log.e(TAG, "flush - " + e); in flushCacheInternal() 159 } catch (IOException e) { in closeCacheInternal() 160 Log.e(TAG, "closeCacheInternal - " + e); in closeCacheInternal() 177 Log.e(TAG, "checkConnection - no connection found"); in checkConnection() 202 } catch (InterruptedException e) {} in processBitmap() 228 } catch (IOException e) { in processBitmap() [all …]
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
D | ImageFetcher.java | 100 } catch (IOException e) { in initHttpDiskCache() 119 } catch (IOException e) { in clearCacheInternal() 120 Log.e(TAG, "clearCacheInternal - " + e); in clearCacheInternal() 139 } catch (IOException e) { in flushCacheInternal() 140 Log.e(TAG, "flush - " + e); in flushCacheInternal() 159 } catch (IOException e) { in closeCacheInternal() 160 Log.e(TAG, "closeCacheInternal - " + e); in closeCacheInternal() 177 Log.e(TAG, "checkConnection - no connection found"); in checkConnection() 202 } catch (InterruptedException e) {} in processBitmap() 228 } catch (IOException e) { in processBitmap() [all …]
|
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/ |
D | SyncAdapter.java | 153 } catch (MalformedURLException e) { in onPerformSync() 154 Log.e(TAG, "Feed URL is malformed", e); in onPerformSync() 157 } catch (IOException e) { in onPerformSync() 158 Log.e(TAG, "Error reading from network: " + e.toString()); in onPerformSync() 161 } catch (XmlPullParserException e) { in onPerformSync() 162 Log.e(TAG, "Error parsing feed: " + e.toString()); in onPerformSync() 165 } catch (ParseException e) { in onPerformSync() 166 Log.e(TAG, "Error parsing feed: " + e.toString()); in onPerformSync() 169 } catch (RemoteException e) { in onPerformSync() 170 Log.e(TAG, "Error updating database: " + e.toString()); in onPerformSync() [all …]
|
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/ |
D | SyncAdapter.java | 153 } catch (MalformedURLException e) { in onPerformSync() 154 Log.e(TAG, "Feed URL is malformed", e); in onPerformSync() 157 } catch (IOException e) { in onPerformSync() 158 Log.e(TAG, "Error reading from network: " + e.toString()); in onPerformSync() 161 } catch (XmlPullParserException e) { in onPerformSync() 162 Log.e(TAG, "Error parsing feed: " + e.toString()); in onPerformSync() 165 } catch (ParseException e) { in onPerformSync() 166 Log.e(TAG, "Error parsing feed: " + e.toString()); in onPerformSync() 169 } catch (RemoteException e) { in onPerformSync() 170 Log.e(TAG, "Error updating database: " + e.toString()); in onPerformSync() [all …]
|
/developers/samples/android/media/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/ |
D | ImageSaver.kt | 35 } catch (e: IOException) { in run() 36 Log.e(TAG, e.toString()) in run() 42 } catch (e: IOException) { in run() 43 Log.e(TAG, e.toString()) in run()
|
D | Camera2BasicFragment.kt | 383 } catch (e: CameraAccessException) { in setUpCameraOutputs() 384 Log.e(TAG, e.toString()) in setUpCameraOutputs() 385 } catch (e: NullPointerException) { in setUpCameraOutputs() 415 Log.e(TAG, "Display rotation is invalid: $displayRotation") in areDimensionsSwapped() 439 } catch (e: CameraAccessException) { in openCamera() 440 Log.e(TAG, e.toString()) in openCamera() 441 } catch (e: InterruptedException) { in openCamera() 442 throw RuntimeException("Interrupted while trying to lock camera opening.", e) in openCamera() 459 } catch (e: InterruptedException) { in closeCamera() 460 throw RuntimeException("Interrupted while trying to lock camera closing.", e) in closeCamera() [all …]
|
/developers/build/prebuilts/gradle/Camera2Basic/kotlinApp/Application/src/main/java/com/example/android/camera2basic/ |
D | ImageSaver.kt | 35 } catch (e: IOException) { in run() 36 Log.e(TAG, e.toString()) in run() 42 } catch (e: IOException) { in run() 43 Log.e(TAG, e.toString()) in run()
|
D | Camera2BasicFragment.kt | 383 } catch (e: CameraAccessException) { in setUpCameraOutputs() 384 Log.e(TAG, e.toString()) in setUpCameraOutputs() 385 } catch (e: NullPointerException) { in setUpCameraOutputs() 415 Log.e(TAG, "Display rotation is invalid: $displayRotation") in areDimensionsSwapped() 439 } catch (e: CameraAccessException) { in openCamera() 440 Log.e(TAG, e.toString()) in openCamera() 441 } catch (e: InterruptedException) { in openCamera() 442 throw RuntimeException("Interrupted while trying to lock camera opening.", e) in openCamera() 459 } catch (e: InterruptedException) { in closeCamera() 460 throw RuntimeException("Interrupted while trying to lock camera closing.", e) in closeCamera() [all …]
|
/developers/build/prebuilts/gradle/FingerprintDialog/kotlinApp/app/src/main/java/com/example/android/fingerprintdialog/ |
D | MainActivity.kt | 125 } catch (e: KeyStoreException) { in setupKeyStoreAndKeyGenerator() 126 throw RuntimeException("Failed to get an instance of KeyStore", e) in setupKeyStoreAndKeyGenerator() 131 } catch (e: Exception) { in setupKeyStoreAndKeyGenerator() 132 when (e) { in setupKeyStoreAndKeyGenerator() 135 throw RuntimeException("Failed to get an instance of KeyGenerator", e) in setupKeyStoreAndKeyGenerator() 136 else -> throw e in setupKeyStoreAndKeyGenerator() 151 } catch (e: Exception) { in setupCiphers() 152 when (e) { in setupCiphers() 155 throw RuntimeException("Failed to get an instance of Cipher", e) in setupCiphers() 156 else -> throw e in setupCiphers() [all …]
|
/developers/samples/android/security/FingerprintDialog/kotlinApp/app/src/main/java/com/example/android/fingerprintdialog/ |
D | MainActivity.kt | 125 } catch (e: KeyStoreException) { in setupKeyStoreAndKeyGenerator() 126 throw RuntimeException("Failed to get an instance of KeyStore", e) in setupKeyStoreAndKeyGenerator() 131 } catch (e: Exception) { in setupKeyStoreAndKeyGenerator() 132 when (e) { in setupKeyStoreAndKeyGenerator() 135 throw RuntimeException("Failed to get an instance of KeyGenerator", e) in setupKeyStoreAndKeyGenerator() 136 else -> throw e in setupKeyStoreAndKeyGenerator() 151 } catch (e: Exception) { in setupCiphers() 152 when (e) { in setupCiphers() 155 throw RuntimeException("Failed to get an instance of Cipher", e) in setupCiphers() 156 else -> throw e in setupCiphers() [all …]
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
D | SharedPreferencesHelper.java | 60 } catch (JsonSyntaxException e) { in readUserFromJsonPref() 61 Log.e(TAG, "Could not parse user from shard preferences.", e); in readUserFromJsonPref() 88 } catch (JsonSyntaxException e) { in readContactsFromJsonPref() 91 Log.e(TAG, logMessage, e); in readContactsFromJsonPref() 116 } catch (JsonSyntaxException e) { in readChatsFromJsonPref() 117 Log.e(TAG, "Could not read/unmarshall the list of chats from shared preferences", e); in readChatsFromJsonPref() 143 } catch (JsonSyntaxException e) { in readMessagesForChat() 144 Log.e(TAG, "Could not read/unmarshall the list of messages from shared preferences", e); in readMessagesForChat()
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
D | SharedPreferencesHelper.java | 60 } catch (JsonSyntaxException e) { in readUserFromJsonPref() 61 Log.e(TAG, "Could not parse user from shard preferences.", e); in readUserFromJsonPref() 88 } catch (JsonSyntaxException e) { in readContactsFromJsonPref() 91 Log.e(TAG, logMessage, e); in readContactsFromJsonPref() 116 } catch (JsonSyntaxException e) { in readChatsFromJsonPref() 117 Log.e(TAG, "Could not read/unmarshall the list of chats from shared preferences", e); in readChatsFromJsonPref() 143 } catch (JsonSyntaxException e) { in readMessagesForChat() 144 Log.e(TAG, "Could not read/unmarshall the list of messages from shared preferences", e); in readMessagesForChat()
|
/developers/build/prebuilts/gradle/MidiScope/Application/src/main/java/com/example/android/common/midi/ |
D | MidiEventThread.java | 43 } catch (IOException e) { in run() 44 e.printStackTrace(); in run() 48 } catch (InterruptedException e) { in run() 77 } catch (InterruptedException e) { in stop() 78 Log.e(TAG, in stop()
|
/developers/samples/android/common/src/java/com/example/android/common/midi/ |
D | MidiEventThread.java | 43 } catch (IOException e) { in run() 44 e.printStackTrace(); in run() 48 } catch (InterruptedException e) { in run() 77 } catch (InterruptedException e) { in stop() 78 Log.e(TAG, in stop()
|
/developers/build/prebuilts/gradle/MidiSynth/Application/src/main/java/com/example/android/common/midi/ |
D | MidiEventThread.java | 43 } catch (IOException e) { in run() 44 e.printStackTrace(); in run() 48 } catch (InterruptedException e) { in run() 77 } catch (InterruptedException e) { in stop() 78 Log.e(TAG, in stop()
|
/developers/samples/android/connectivity/wifidirect/DirectP2P/Application/src/main/java/com/example/android/wifidirectp2p/ |
D | FileTransferService.java | 64 } catch (FileNotFoundException e) { in onHandleIntent() 65 Log.d(MainActivity.TAG, e.toString()); in onHandleIntent() 69 } catch (IOException e) { in onHandleIntent() 70 Log.e(MainActivity.TAG, e.getMessage()); in onHandleIntent() 76 } catch (IOException e) { in onHandleIntent() 78 e.printStackTrace(); in onHandleIntent()
|
/developers/samples/android/system/RuntimePermissions/kotlinApp/app/src/main/java/com/example/android/system/runtimepermissions/camera/ |
D | CameraPreview.kt | 69 } catch (e: IOException) { in surfaceCreated() 70 Log.d(TAG, "Error setting camera preview: " + e.message) in surfaceCreated() 95 } catch (e: Exception) { in surfaceChanged() 97 Log.d(TAG, "Error starting camera preview: " + e.message) in surfaceChanged() 109 } catch (e: Exception) { in surfaceChanged() 110 Log.d(TAG, "Error starting camera preview: " + e.message) in surfaceChanged()
|