- SO-01H
- 256 : JPEG
- 34 : PRIVATE
- 35 : YUV_420_888
- SM-N920I
- 1 : DEPTH16
- 32 : RAW_SENSOR
- 256 : JPEG
- 34 : PRIVATE
This file contains hidden or 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
public class StringUtilsTest { | |
@Test | |
public void testSplit() { | |
assertThat(StringUtils.split(null, ',', '"'), is(Collections.EMPTY_LIST)); | |
assertThat(StringUtils.split("", ',', '"'), is(Collections.<String>singletonList(null))); | |
assertThat(StringUtils.split("\"\"", ',', '"'), is(Collections.singletonList(""))); | |
assertThat(StringUtils.split("\"\",,\"\"", ',', '"'), is(Arrays.asList("", null, ""))); | |
assertThat(StringUtils.split("a,b,c", ',', '"'), is(Arrays.asList("a", "b", "c"))); | |
assertThat(StringUtils.split("a\"b,c", ',', '"'), is(Arrays.asList("a\"b", "c"))); |
This file contains hidden or 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
<resources> | |
<dimen name="element_spacing_x0.5">4dp</dimen> | |
<dimen name="element_spacing_x1">8dp</dimen> | |
<dimen name="element_spacing_x1.5">12dp</dimen> | |
<dimen name="element_spacing_x2">16dp</dimen> | |
<dimen name="element_spacing_x2.5">20dp</dimen> | |
<dimen name="element_spacing_x3">24dp</dimen> | |
<dimen name="element_spacing_x4">32dp</dimen> | |
<dimen name="element_spacing_x5">40dp</dimen> | |
<dimen name="element_spacing_x6">48dp</dimen> |
This file contains hidden or 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.wantedly.android.namecard_scanner.utils; | |
import android.support.v4.view.OnApplyWindowInsetsListener; | |
import android.support.v4.view.ViewCompat; | |
import android.support.v4.view.WindowInsetsCompat; | |
import android.view.View; | |
import rx.Observable; | |
import rx.subjects.BehaviorSubject; |
This file contains hidden or 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
import android.content.ContentValues; | |
import android.database.Cursor; | |
import android.os.Parcel; | |
import android.os.Parcelable; | |
import net.cattaka.util.cathandsgendroid.accessor.Accessors; | |
import net.cattaka.util.cathandsgendroid.accessor.IAccessor; | |
import net.cattaka.util.cathandsgendroid.accessor.ParcelableAccessor; | |
import java.io.ByteArrayInputStream; |
This file contains hidden or 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
import android.animation.ArgbEvaluator; | |
import android.databinding.BindingAdapter; | |
import android.support.annotation.ColorInt; | |
import android.support.constraint.ConstraintLayout; | |
import android.view.View; | |
import android.view.ViewGroup; | |
/** | |
* Created by cattaka on 2016/10/24. | |
*/ |
This file contains hidden or 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
import java.io.ByteArrayOutputStream; | |
import java.io.ObjectOutputStream; | |
import java.util.ArrayList; | |
/** | |
* Created by cattaka on 2016/11/03. | |
*/ | |
public class NotSerializableExceptionExample { | |
public static void main(String[] args) throws Exception { | |
new NotSerializableExceptionExample().func(); |
This file contains hidden or 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
import android.databinding.BindingAdapter; | |
import android.text.Editable; | |
import android.text.TextWatcher; | |
import android.view.View; | |
import android.widget.TextView; | |
/** | |
* These codes are licensed under CC0. | |
* <p/> | |
* Created by cattaka on 2016/10/18. |
This file contains hidden or 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
import android.os.Bundle; | |
import android.os.Parcelable; | |
import android.support.annotation.Nullable; | |
import android.util.Size; | |
import android.util.SizeF; | |
import android.util.SparseArray; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; |
This file contains hidden or 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
#include <SPI.h> | |
#include <LiquidCrystal.h> | |
#include <Servo.h> | |
#include "HX711.h" | |
#define PIN_L_EXTRUDE 5 | |
#define PIN_R_EXTRUDE 2 | |
#define PIN_TARE 4 | |
#define PIN_RESET 3 | |
#define PIN_DIAL A0 |