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 us.nineworlds.serenity.ui.views.mvp; | |
import android.annotation.TargetApi; | |
import android.content.Context; | |
import android.os.Build; | |
import android.os.Parcelable; | |
import android.support.annotation.AttrRes; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import android.support.annotation.StyleRes; |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<profiles version="1"> | |
<profile kind="CodeFormatterProfile" name="Linux Kernel" version="1"> | |
<setting id="org.eclipse.cdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/> | |
<setting id="org.eclipse.cdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/> | |
<setting id="org.eclipse.cdt.core.formatter.insert_new_line_in_empty_block" value="insert"/> | |
<setting id="org.eclipse.cdt.core.formatter.lineSplit" value="80"/> | |
<setting id="org.eclipse.cdt.core.formatter.alignment_for_member_access" value="0"/> | |
<setting id="org.eclipse.cdt.core.formatter.insert_space_before_comma_in_base_types" value="do not insert"/> | |
<setting id="org.eclipse.cdt.core.formatter.keep_else_statement_on_same_line" value="false"/> |
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
[35826.689183][ctx none]==========va_TraceInitialize | |
[35826.689201][ctx none]==========va_TraceCreateConfig | |
[35826.689203][ctx none] profile = 13 | |
[35826.689204][ctx none] entrypoint = 6 | |
[35826.689205][ctx none] num_attribs = 3 | |
[35826.689206][ctx none] attrib_list[0].type = 0x00000000 | |
[35826.689207][ctx none] attrib_list[0].value = 0x00000005 | |
[35826.689208][ctx none] attrib_list[1].type = 0x00000005 | |
[35826.689209][ctx none] attrib_list[1].value = 0x0000003e | |
[35826.689210][ctx none] attrib_list[2].type = 0x0000000a |
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
/** | |
* Shadow for {@link android.widget.ArrayAdapter}. | |
*/ | |
@SuppressWarnings("UnusedDeclaration") | |
@Implements(ArrayAdapter.class) | |
public class ShadowArrayAdapter<T> extends ShadowBaseAdapter { | |
@RealObject | |
private ArrayAdapter<T> realArrayAdapter; | |
public int getTextViewResourceId() { |
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 abstract class AbstractNLSSupportTest { | |
@Rule | |
public TestName name = new TestName(); | |
protected String propertiesFilename; | |
protected String brandId; | |
protected String language; | |
protected String country; |
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 retrofit; | |
import com.squareup.okhttp.RequestBody; | |
import com.squareup.okhttp.ResponseBody; | |
import org.codehaus.jackson.map.ObjectMapper; | |
import org.codehaus.jackson.map.ObjectReader; | |
import org.codehaus.jackson.map.ObjectWriter; | |
import org.codehaus.jackson.type.JavaType; |
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
/* | |
* Copyright (C) 2013 Square, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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 SelfReturningAnswer implements Answer<Object> { | |
public Object answer(InvocationOnMock invocation) throws Throwable { | |
Object mock = invocation.getMock(); | |
if( invocation.getMethod().getReturnType().isInstance( mock )){ | |
return mock; | |
} | |
else{ | |
return RETURNS_DEFAULTS.get().answer(invocation); | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<ripple xmlns:android="http://schemas.android.com/apk/res/android" | |
android:color="@color/loyalty_button_reward_ripple"> | |
<item android:id="@android:id/mask" android:drawable="@drawable/button_shopping_bag_loyalty_normal"/> | |
<item> | |
<selector> | |
<item android:state_enabled="true" android:drawable="@drawable/button_shopping_bag_loyalty_normal"/> | |
<item android:state_enabled="false" android:drawable="@drawable/button_shopping_bag_loyalty_rewards"/> | |
</selector> | |
</item> |
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
private Activity getActivity() { | |
Context context = getContext(); | |
while (context instanceof ContextWrapper) { | |
if (context instanceof Activity) { | |
return (Activity)context; | |
} | |
context = ((ContextWrapper)context).getBaseContext(); | |
} | |
return null; | |
} |