Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
[Trace - 05:10:17 PM] Sending request 'textDocument/documentHighlight - (339)'.
Params: {
"textDocument": {
"uri": "file:///Users/s04407/Projects/droidkaigi_flutter/lib/view/component/animated_draggable_scrollable_sheet.dart"
},
"position": {
"line": 5,
"character": 13
}
}
java.lang.NoSuchMethodError: com.google.android.apps.common.testing.accessibility.framework.integrations.espresso.AccessibilityValidator.checkAndReturnResults(Landroid/view/View;)Lcom/google/common/collect/ImmutableList;
at androidx.test.espresso.accessibility.AccessibilityChecks$2.check(AccessibilityChecks.java:65)
at androidx.test.espresso.action.ViewActions$1.perform(ViewActions.java:130)
at androidx.test.espresso.ViewInteraction$SingleExecutionViewAction.perform(ViewInteraction.java:366)
at androidx.test.espresso.ViewInteraction.doPerform(ViewInteraction.java:255)
at androidx.test.espresso.ViewInteraction.access$100(ViewInteraction.java:65)
at androidx.test.espresso.ViewInteraction$1.call(ViewInteraction.java:158)
- timer-event-handler 7861 40%
- apply 7861 40%
- company-idle-begin 7325 38%
- company-auto-begin 7271 37%
- company--perform 7271 37%
- company--begin-new 7271 37%
- company-calculate-candidates 7267 37%
- company--fetch-candidates 7264 37%
- sit-for 7215 37%
- read-event 4481 23%
This file has been truncated, but you can view the full file.
[Trace - 12:34:32 PM]
Sending request 'initialize - (1)'.
Params:
{
"processId": 29578,
"rootPath": "/Users/s04407/OSS/flutter_compass/",
"rootUri": "file:///Users/s04407/OSS/flutter_compass/",
"capabilities": {
This file has been truncated, but you can view the full file.
[Trace - 12:34:32 PM]
Sending request 'initialize - (1)'.
Params:
{
"processId": 29578,
"rootPath": "/Users/s04407/OSS/flutter_compass/",
"rootUri": "file:///Users/s04407/OSS/flutter_compass/",
"capabilities": {
1558362957633:Ver:1558184804273825477589:unknown:unknown:1.26.0:2.3.0-edge.a1668566e563aef64025d0af88a099cbbe847b7e
1558362957672:Req:{"jsonrpc"::"2.0","method"::"initialize","params"::{"processId"::3954,"rootPath"::"/home/itome/Projects/animated_list_sample/","rootUri"::"file::///home/itome/Projects/animated_list_sample/","capabilities"::{"workspace"::{"workspaceEdit"::{"documentChanges"::true,"resourceOperations"::["create","rename","delete"]},"applyEdit"::true,"symbol"::{"symbolKind"::{"valueSet"::[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]}},"executeCommand"::{"dynamicRegistration"::false},"didChangeWatchedFiles"::{"dynamicRegistration"::true},"workspaceFolders"::true,"configuration"::true},"textDocument"::{"declaration"::{"linkSupport"::true},"definition"::{"linkSupport"::true},"implementation"::{"linkSupport"::true},"typeDefinition"::{"linkSupport"::true},"synchronization"::{"willSave"::true,"didSave"::true,"willSaveWaitUntil"::true},"documentSymbol"::{"symbolKind"::{"valueSet
class CounterViewModel : OwlViewModel<CounterIntent, CounterAction, CounterState>(
initialState = CounterState(),
processor = CounterProcessor()
) {
...
}
class CounterProcessor : Processor<CounterAction>() {
private fun processIncrementAction(action: DelayedIncrementAction) = launch {
delay(1000)
put(UpdateCountAction(action.count - 1))
}
override fun processAction(action: CounterAction) {
when (action) {
is IncrementAction -> processIncrementAction(action)
sealed class CounterIntent : Intent {
object IncrementIntent : CounterIntent()
object DecrementIntent : CounterIntent()
}
sealed class CounterAction : Action {
data class UpdateCountAction(val count: Int) : CounterAction()
}
data class CounterState(val count: Int = 0) : State
private fun rotateTextureView() {
val orientation = getApplicationOrientation()
val viewWidth = textureView.width
val viewHeight = textureView.height
val matrix = Matrix()
matrix.postRotate(- orientation.toFloat(), viewWidth * 0.5F, viewHeight * 0.5F)
textureView.setTransform(matrix)
}