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
<manifest> | |
... | |
<uses-permission android:name="android.permission.RECORD_AUDIO /> | |
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> | |
... | |
</manifest> |
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
val config = AudioPlaybackCaptureConfiguration.Builder(mediaProjection) | |
.addMatchingUsage(AudioAttributes.USAGE_MEDIA) | |
.build() | |
val audioFormat = AudioFormat.Builder() | |
.setEncoding(AudioFormat.ENCODING_PCM_16BIT) | |
.setSampleRate(8000) | |
.setChannelMask(AudioFormat.CHANNEL_IN_MONO) | |
.build() |
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
floorPlan { | |
schemaLocation = "schemas/" | |
outputLocation = "floorplan-output/" | |
outputFormat { | |
svg { | |
enabled = true | |
} | |
} | |
} |
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
CREATE TABLE IF NOT EXISTS TrackCreator ( | |
`track_id` TEXT NOT NULL, | |
`user_id` TEXT NOT NULL, | |
PRIMARY KEY(`track_id`, `user_id`), | |
FOREIGN KEY(`track_id`) REFERENCES `Track`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE , | |
FOREIGN KEY(`user_id`) REFERENCES `User`(`id`) ON UPDATE NO ACTION ON DELETE CASCADE | |
) |
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
@Dao | |
interface TrackDao { | |
@Insert(onConflict = OnConflictStrategy.REPLACE) | |
fun insert(tracks: List<TrackEntity>) | |
} |
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
V/SQLiteStatements: /data/com.soundcloud/databases/sc.db: "BEGIN EXCLUSIVE;" | |
V/SQLiteStatements: /data/com.soundcloud/databases/sc.db: "INSERT OR REPLACE INTO `Users` (...) VALUES (...)" | |
V/SQLiteStatements: /data/com.soundcloud/databases/sc.db: "INSERT OR REPLACE INTO `Users` (...) VALUES (...)" | |
V/SQLiteStatements: /data/com.soundcloud/databases/sc.db: "-- TRIGGER room_table_modification_trigger_trackuser_DELETE" | |
V/SQLiteStatements: /data/com.soundcloud/databases/sc.db: "-- UPDATE room_table_modification_log SET invalidated = 1 WHERE table_id = 7 AND invalidated = 0" | |
V/SQLiteStatements: /data/com.soundcloud/databases/sc.db: "-- TRIGGER room_table_modification_trigger_trackuser_DELETE" | |
V/SQLiteStatements: /data/com.soundcloud/databases/sc.db: "-- UPDATE room_table_modification_log SET invalidated = 1 WHERE table_id = 7 AND invalidated = 0" | |
V/SQLiteStatements: /data/com.soundcloud/databases/sc.db: "-- TRIGGER room_table_modification_trigger_users_DELETE" | |
V/SQLiteStatements: /data/com.soundcloud/databases/sc.db: |
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
database.execSQL(""" | |
CREATE TABLE IF NOT EXISTS TrackCreator_temp ( | |
`track_id` TEXT NOT NULL, | |
`user_id` TEXT NOT NULL, | |
PRIMARY KEY(`track_id`, `user_id`), | |
FOREIGN KEY(`track_id`) REFERENCES `Track`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION , | |
FOREIGN KEY(`user_id`) REFERENCES `User`(`id`) ON UPDATE NO ACTION ON DELETE NO ACTION | |
) | |
""".trimIndent()) |
OlderNewer