This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set SCREENCAP_FILE_PREFIX=screenshot | |
set SCREENCAP_WORKING_DIR=/sdcard/ | |
set shortTime=%time:~0,8% | |
set shortTime=%shortTime: =0% | |
set SCREENCAP_FILE_NAME=screenshot_%date:-=%_%shortTime::=%.png | |
set SCREENCAP_FILE_PATH=%SCREENCAP_WORKING_DIR%%SCREENCAP_FILE_NAME% | |
adb shell screencap -p %SCREENCAP_FILE_PATH% | |
adb pull %SCREENCAP_FILE_PATH% | |
adb shell rm %SCREENCAP_FILE_PATH% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private lateinit var takePicture: ActivityResultLauncher<Uri> | |
private lateinit var chooseDocument: ActivityResultLauncher<Array<String>> | |
private fun attachmentDialog() { | |
val listItems = | |
arrayOf(getString(R.string.capture_image_from_camera), getString(R.string.choose_file)) | |
AlertDialog.Builder(requireContext()) | |
.setItems(listItems) { dialog, which -> | |
when (which) { | |
0 -> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-tag~: chatty|WifiHAL|HwBinder|AssistHolderContentView|Light|lsc_nvram|SensorService|NetworkManagement|camerahalserver|WifiNetworkFactory|WifiClientModeImpl|CarrierServices|Process|thermal_repeater |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:Suppress("UNCHECKED_CAST") | |
package com.example.fragmentvm.utils | |
import androidx.lifecycle.MutableLiveData | |
import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers | |
import io.reactivex.rxjava3.core.* | |
import io.reactivex.rxjava3.schedulers.Schedulers | |
internal object RxUtils { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2021-12-08 15:16:00.026 478-478/? I/hwcomposer: [HWCDisplay] [Display_0 (type:1)] fps:9.964194,dur:2810.06,max:2391.08,min:14.62 | |
2021-12-08 15:16:00.326 622-2502/? E/Isp_Drv: [vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6765/isp/isp_drv.cpp, waitIrq, line0672] ERROR: ISP(0x0)_WAIT_IRQ fail(14). Wait Status(0x00000010), Timeout(200). | |
(waitIrq){#672:vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6765/isp/isp_drv.cpp} | |
2021-12-08 15:16:00.330 3354-3382/? I/ADB_SERVICES: post waitpid (pid=3381) status=0000 | |
2021-12-08 15:16:00.387 3354-3384/? I/ADB_SERVICES: post waitpid (pid=3383) status=0000 | |
2021-12-08 15:16:00.741 622-2502/? E/Isp_Drv: [vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6765/isp/isp_drv.cpp, waitIrq, line0672] ERROR: ISP(0x0)_WAIT_IRQ fail(14). Wait Status(0x00000010), Timeout(200). | |
(waitIrq){#672:vendor/mediatek/proprietary/hardware/mtkcam/drv/src/isp/mt6765/isp/isp_drv.cpp} | |
2021-12-08 15:16:01.157 622-2502/? E/Isp_Drv: [vendor/mediatek/proprietary/ha |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class LineNumberDebugTree : Timber.DebugTree() { | |
override fun createStackElementTag(element: StackTraceElement): String? { | |
return "(${element.fileName}:${element.lineNumber})#${element.methodName}" | |
} | |
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) { | |
super.log(priority, "MMTR_$tag", message, t) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.shop.tcd.model | |
import com.tickaroo.tikxml.annotation.Attribute | |
import com.tickaroo.tikxml.annotation.Element | |
import com.tickaroo.tikxml.annotation.PropertyElement | |
import com.tickaroo.tikxml.annotation.Xml | |
@Xml(name = "Настройки") | |
class Task { | |
@Element(name = "Магазины") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<catalog> | |
<book id="Book 1 attr" name="!Дес049"></book> | |
<book id="Book q attr" Наименование="!Дес049"></book> | |
<book id="Book 2 attr">Book 2 value</book> | |
<book id="Book 3 attr"/> | |
<Магазин Наименование="!!!!!!" Адрес="\\192.168.0.154\TSD49" ПрефиксМагазина="Т49" ПрефиксВесовогоТовара="22" ПрефиксВесовогоТовараПЛУ="23" ПрефиксШтучногоТовара="24"/> | |
<book Наименование="!2222222" Адрес="\\192.168.0.154\TSD49" ПрефиксМагазина="Т49" ПрефиксВесовогоТовара="22" ПрефиксВесовогоТовараПЛУ="23" ПрефиксШтучногоТовара="24"/> | |
</catalog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cb90d1e15350ace12eff660a87da41a8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********* | |
Rui Santos | |
Complete project details at https://randomnerdtutorials.com | |
*********/ | |
#include <Wire.h> | |
void setup() { | |
Wire.begin(); | |
Serial.begin(115200); |
NewerOlder