/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/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/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/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/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 …]
|
D | ImageCache.java | 218 } catch (final IOException e) { in initDiskCache() 220 Log.e(TAG, "initDiskCache - " + e); in initDiskCache() 270 } catch (final IOException e) { in addBitmapToCache() 271 Log.e(TAG, "addBitmapToCache - " + e); in addBitmapToCache() 272 } catch (Exception e) { in addBitmapToCache() 273 Log.e(TAG, "addBitmapToCache - " + e); in addBitmapToCache() 279 } catch (IOException e) {} in addBitmapToCache() 323 } catch (InterruptedException e) {} in getBitmapFromDiskCache() 343 } catch (final IOException e) { in getBitmapFromDiskCache() 344 Log.e(TAG, "getBitmapFromDiskCache - " + e); in getBitmapFromDiskCache() [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/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/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/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()
|
D | MidiPortConnector.java | 65 } catch (IOException e) { in safeClose() 66 Log.e(MidiConstants.TAG, "could not close resources", e); in safeClose() 120 Log.e(MidiConstants.TAG, in connectToDevicePort() 142 Log.e(MidiConstants.TAG, in connectToDevicePort() 173 Log.e(MidiConstants.TAG, in connectToDevicePort() 188 Log.e(MidiConstants.TAG, "could not connect to " in connectToDevicePort()
|
D | MidiInputPortSelector.java | 58 Log.e(MidiConstants.TAG, "could not open " + info); in onPortSelected() 64 Log.e(MidiConstants.TAG, "could not open input port on " + info); in onPortSelected() 89 } catch (IOException e) { in onClose() 90 Log.e(MidiConstants.TAG, "cleanup failed", e); in onClose()
|
D | MidiOutputPortSelector.java | 61 Log.e(MidiConstants.TAG, "could not open " + info); in onPortSelected() 66 Log.e(MidiConstants.TAG, in onPortSelected() 89 } catch (IOException e) { in onClose() 90 Log.e(MidiConstants.TAG, "cleanup failed", e); in onClose()
|
/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()
|
/developers/samples/android/content/webview/PermissionRequest/Application/src/main/java/com/example/android/permissionrequest/ |
D | SimpleWebServer.java | 88 } catch (IOException e) { in stop() 89 Log.e(TAG, "Error closing the server socket.", e); in stop() 106 } catch (SocketException e) { in run() 108 } catch (IOException e) { in run() 109 Log.e(TAG, "Web server error.", e); in run() 197 } catch (FileNotFoundException e) { in loadContent()
|
/developers/samples/android/system/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/camera/ |
D | CameraPreview.java | 109 } catch (IOException e) { in surfaceCreated() 110 Log.d(TAG, "Error setting camera preview: " + e.getMessage()); in surfaceCreated() 132 } catch (Exception e) { in surfaceChanged() 134 Log.d(TAG, "Error starting camera preview: " + e.getMessage()); in surfaceChanged() 144 } catch (Exception e) { in surfaceChanged() 145 Log.d(TAG, "Error starting camera preview: " + e.getMessage()); in surfaceChanged()
|
/developers/samples/android/media/HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/ |
D | CameraOps.java | 96 } catch (CameraAccessException e) { in openCamera() 97 String errorMessage = mErrorDisplayer.getErrorString(e); in openCamera() 113 Log.e(TAG, "Timeout closing camera"); in closeCameraAndWait() 161 } catch (CameraAccessException e) { in setRepeatingRequest() 162 String errorMessage = mErrorDisplayer.getErrorString(e); in setRepeatingRequest() 179 } catch (CameraAccessException e) { in setRepeatingBurst() 180 String errorMessage = mErrorDisplayer.getErrorString(e); in setRepeatingBurst() 197 } catch (CameraAccessException e) { in startCameraSession() 198 String errorMessage = mErrorDisplayer.getErrorString(e); in startCameraSession() 283 String getErrorString(CameraAccessException e); in getErrorString() argument
|
/developers/samples/android/system/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/camera/ |
D | CameraPreview.java | 109 } catch (IOException e) { in surfaceCreated() 110 Log.d(TAG, "Error setting camera preview: " + e.getMessage()); in surfaceCreated() 132 } catch (Exception e) { in surfaceChanged() 134 Log.d(TAG, "Error starting camera preview: " + e.getMessage()); in surfaceChanged() 144 } catch (Exception e) { in surfaceChanged() 145 Log.d(TAG, "Error starting camera preview: " + e.getMessage()); in surfaceChanged()
|
/developers/samples/android/media/MediaRecorder/Application/src/main/java/com/example/android/mediarecorder/ |
D | MainActivity.java | 78 } catch (RuntimeException e) { in onCaptureClick() 165 } catch (IOException e) { in prepareVideoRecorder() 166 Log.e(TAG, "Surface texture is unavailable or unsuitable" + e.getMessage()); in prepareVideoRecorder() 197 } catch (IllegalStateException e) { in prepareVideoRecorder() 198 Log.d(TAG, "IllegalStateException preparing MediaRecorder: " + e.getMessage()); in prepareVideoRecorder() 201 } catch (IOException e) { in prepareVideoRecorder() 202 Log.d(TAG, "IOException preparing MediaRecorder: " + e.getMessage()); in prepareVideoRecorder()
|
/developers/samples/android/wearable/wear/WearSpeakerSample/wear/src/main/java/com/example/android/wearable/speaker/ |
D | SoundRecorder.java | 191 } catch (IOException e) { in doInBackground() 192 Log.e(TAG, "Failed to read the sound file into a byte array", e); in doInBackground() 201 } catch (IOException e) { /* ignore */} in doInBackground() 205 } catch (IllegalStateException e) { in doInBackground() 206 Log.e(TAG, "Failed to start playback", e); in doInBackground() 275 } catch (IOException | NullPointerException | IndexOutOfBoundsException e) { in doInBackground() 276 Log.e(TAG, "Failed to record data: " + e); in doInBackground() 281 } catch (IOException e) { in doInBackground()
|
/developers/samples/android/media/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/ |
D | Camera2VideoFragment.kt | 263 } catch (e: InterruptedException) { in stopBackgroundThread() 264 Log.e(TAG, e.toString()) in stopBackgroundThread() 355 } catch (e: CameraAccessException) { in openCamera() 358 } catch (e: NullPointerException) { in openCamera() 363 } catch (e: InterruptedException) { in openCamera() 379 } catch (e: InterruptedException) { in closeCamera() 380 throw RuntimeException("Interrupted while trying to lock camera closing.", e) in closeCamera() 413 } catch (e: CameraAccessException) { in startPreview() 414 Log.e(TAG, e.toString()) in startPreview() 430 } catch (e: CameraAccessException) { in updatePreview() [all …]
|
/developers/demos/JustForUs/justforus/src/main/java/com/example/android/justforus/ |
D | AssetProvider.java | 108 } catch (IOException e) { in openAssetFile() 124 } catch (IOException e) { in fileExists() 135 Log.e(TAG, "Requested file doesn't exist at " + path); in query() 159 } catch (IOException e) { in query() 160 Log.e(TAG, e.toString()); in query()
|
/developers/samples/android/content/SharingShortcuts/Application/src/main/java/com/example/android/sharingshortcuts/ |
D | MainActivity.java | 118 } catch (FileNotFoundException e) { in getClipDataThumbnail() 119 Log.e(TAG, e.getLocalizedMessage()); in getClipDataThumbnail() 121 } catch (IOException e) { in getClipDataThumbnail() 122 Log.e(TAG, e.getLocalizedMessage()); in getClipDataThumbnail()
|