OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:robolectric
(Results
426 - 450
of
1119
) sorted by null
<<
11
12
13
14
15
16
17
18
19
20
>>
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowBitmapFactory.java
1
package com.xtremelabs.
robolectric
.shadows;
9
import com.xtremelabs.
robolectric
.
Robolectric
;
10
import com.xtremelabs.
robolectric
.internal.Implementation;
11
import com.xtremelabs.
robolectric
.internal.Implements;
12
import com.xtremelabs.
robolectric
.util.Join;
20
import static com.xtremelabs.
robolectric
.
Robolectric
.shadowOf;
42
return shadowOf(
Robolectric
.application).getResourceLoader().getNameForId(id);
70
Bitmap bitmap =
Robolectric
.newInstanceOf(Bitmap.class)
[
all
...]
ShadowContext.java
1
package com.xtremelabs.
robolectric
.shadows;
8
import com.xtremelabs.
robolectric
.internal.Implementation;
9
import com.xtremelabs.
robolectric
.internal.Implements;
10
import com.xtremelabs.
robolectric
.internal.RealObject;
11
import com.xtremelabs.
robolectric
.res.ResourceLoader;
19
import static com.xtremelabs.
robolectric
.
Robolectric
.shadowOf;
167
File tmp = File.createTempFile(name, "
robolectric
");
ShadowImageView.java
1
package com.xtremelabs.
robolectric
.shadows;
12
import com.xtremelabs.
robolectric
.
Robolectric
;
13
import com.xtremelabs.
robolectric
.internal.Implementation;
14
import com.xtremelabs.
robolectric
.internal.Implements;
15
import com.xtremelabs.
robolectric
.res.ResourceLoader;
17
import static com.xtremelabs.
robolectric
.
Robolectric
.shadowOf;
65
ResourceLoader resourceLoader = shadowOf(
Robolectric
.application).getResourceLoader();
96
return shadowOf(
Robolectric
.application).getResourceLoader(
[
all
...]
ShadowTabHost.java
1
package com.xtremelabs.
robolectric
.shadows;
9
import com.xtremelabs.
robolectric
.
Robolectric
;
10
import com.xtremelabs.
robolectric
.internal.Implementation;
11
import com.xtremelabs.
robolectric
.internal.Implements;
12
import com.xtremelabs.
robolectric
.internal.RealObject;
17
import static com.xtremelabs.
robolectric
.
Robolectric
.shadowOf;
31
TabSpec realTabSpec =
Robolectric
.newInstanceOf(TabHost.TabSpec.class);
92
ShadowTabSpec ts =
Robolectric
.shadowOf(getCurrentTabSpec())
[
all
...]
ShadowDisplay.java
1
package com.xtremelabs.
robolectric
.shadows;
7
import com.xtremelabs.
robolectric
.internal.Implementation;
8
import com.xtremelabs.
robolectric
.internal.Implements;
ShadowListActivity.java
1
package com.xtremelabs.
robolectric
.shadows;
9
import com.xtremelabs.
robolectric
.internal.Implementation;
10
import com.xtremelabs.
robolectric
.internal.Implements;
ShadowMatrixCursor.java
1
package com.xtremelabs.
robolectric
.shadows;
3
import com.xtremelabs.
robolectric
.internal.Implementation;
4
import com.xtremelabs.
robolectric
.internal.Implements;
ShadowNotificationManager.java
1
package com.xtremelabs.
robolectric
.shadows;
5
import com.xtremelabs.
robolectric
.internal.Implementation;
6
import com.xtremelabs.
robolectric
.internal.Implements;
ShadowVideoView.java
1
package com.xtremelabs.
robolectric
.shadows;
8
import com.xtremelabs.
robolectric
.internal.Implementation;
9
import com.xtremelabs.
robolectric
.internal.Implements;
ShadowWifiConfiguration.java
1
package com.xtremelabs.
robolectric
.shadows;
4
import com.xtremelabs.
robolectric
.internal.Implements;
5
import com.xtremelabs.
robolectric
.internal.RealObject;
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/
InstrumentDetectorTest.java
1
package com.xtremelabs.
robolectric
;
3
import com.xtremelabs.
robolectric
.RobolectricTestRunner.InstrumentDetector;
4
import com.xtremelabs.
robolectric
.bytecode.ClassHandler;
5
import com.xtremelabs.
robolectric
.bytecode.RobolectricClassLoader;
6
import com.xtremelabs.
robolectric
.bytecode.ShadowWrangler;
16
import static com.xtremelabs.
robolectric
.util.TestUtil.resourceFile;
52
System.setProperty("
robolectric
.cusomClassLoader", "yes");
123
assertThat(System.getProperty("
robolectric
.cusomClassLoader"), equalTo("yes"));
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/res/
ResourceLoaderTest.java
1
package com.xtremelabs.
robolectric
.res;
7
import com.xtremelabs.
robolectric
.R;
8
import com.xtremelabs.
robolectric
.
Robolectric
;
9
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
10
import com.xtremelabs.
robolectric
.util.I18nException;
16
import static com.xtremelabs.
robolectric
.util.TestUtil.resourceFile;
48
ViewGroup vg = new FrameLayout(
Robolectric
.application);
49
resourceLoader.inflateView(
Robolectric
.application, R.layout.text_views, vg);
56
resourceLoader.inflateMenu(
Robolectric
.application, R.menu.test, null)
[
all
...]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
ImageViewTest.java
1
package com.xtremelabs.
robolectric
.shadows;
11
import com.xtremelabs.
robolectric
.R;
12
import com.xtremelabs.
robolectric
.
Robolectric
;
13
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
18
import static com.xtremelabs.
robolectric
.
Robolectric
.shadowOf;
19
import static com.xtremelabs.
robolectric
.
Robolectric
.visualize;
33
Resources resources =
Robolectric
.application.getResources()
[
all
...]
AudioManagerTest.java
1
package com.xtremelabs.
robolectric
.shadows;
5
import com.xtremelabs.
robolectric
.
Robolectric
;
6
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
21
audioManager =
Robolectric
.newInstanceOf(AudioManager.class);
22
shadowAudioManager =
Robolectric
.shadowOf(audioManager);
ContentProviderOperationBuilderTest.java
1
package com.xtremelabs.
robolectric
.shadows;
17
import com.xtremelabs.
robolectric
.
Robolectric
;
18
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
27
builder =
Robolectric
.newInstanceOf(Builder.class);
28
shadowBuilder =
Robolectric
.shadowOf(builder);
CountDownTimerTest.java
1
package com.xtremelabs.
robolectric
.shadows;
9
import com.xtremelabs.
robolectric
.
Robolectric
;
10
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
42
shadowCountDownTimer =
Robolectric
.shadowOf(countDownTimer);
GeocoderTest.java
1
package com.xtremelabs.
robolectric
.shadows;
6
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
13
import static com.xtremelabs.
robolectric
.
Robolectric
.shadowOf;
LocalBroadcastManagerTest.java
1
package com.xtremelabs.
robolectric
.shadows;
8
import com.xtremelabs.
robolectric
.
Robolectric
;
9
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
21
LocalBroadcastManager instance = LocalBroadcastManager.getInstance(
Robolectric
.application);
23
assertSame(instance, LocalBroadcastManager.getInstance(
Robolectric
.application));
28
LocalBroadcastManager instance = LocalBroadcastManager.getInstance(
Robolectric
.application);
48
LocalBroadcastManager instance = LocalBroadcastManager.getInstance(
Robolectric
.application);
65
lastInstance = LocalBroadcastManager.getInstance(
Robolectric
.application);
72
assertNotSame(lastInstance, LocalBroadcastManager.getInstance(
Robolectric
.application))
[
all
...]
PowerManagerTest.java
1
package com.xtremelabs.
robolectric
.shadows;
7
import com.xtremelabs.
robolectric
.
Robolectric
;
8
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
24
powerManager = (PowerManager)
Robolectric
.application.getSystemService(Context.POWER_SERVICE);
25
shadowPowerManager =
Robolectric
.shadowOf(powerManager);
ShadowAutoCompleteTextViewTest.java
1
package com.xtremelabs.
robolectric
.shadows;
7
import com.xtremelabs.
robolectric
.
Robolectric
;
8
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
24
new AutoCompleteTextView(
Robolectric
.application);
25
ArrayAdapter<Object> adapter = new ArrayAdapter<Object>(
Robolectric
.application, 0);
35
new AutoCompleteTextView(
Robolectric
.application);
43
new AutoCompleteTextView(
Robolectric
.application);
53
new AutoCompleteTextView(
Robolectric
.application);
63
new AutoCompleteTextView(
Robolectric
.application)
[
all
...]
SmsManagerTest.java
1
package com.xtremelabs.
robolectric
.shadows;
12
import com.xtremelabs.
robolectric
.
Robolectric
;
13
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
27
Robolectric
.bindShadowClass(ShadowSmsManager.class);
29
shadowSmsManager =
Robolectric
.shadowOf(smsManager);
TranslateAnimationTest.java
1
package com.xtremelabs.
robolectric
.shadows;
5
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
10
import static com.xtremelabs.
robolectric
.
Robolectric
.shadowOf;
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
ButtonActionDialogFragmentTest.java
24
import static org.
robolectric
.Shadows.shadowOf;
41
import org.
robolectric
.RuntimeEnvironment;
42
import org.
robolectric
.annotation.Config;
43
import org.
robolectric
.shadows.ShadowAlertDialog;
44
import org.
robolectric
.shadows.ShadowDialog;
45
import org.
robolectric
.util.FragmentTestUtil;
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/bytecode/
CustomRobolectricTestRunnerTest.java
1
package com.xtremelabs.
robolectric
.bytecode;
4
import com.xtremelabs.
robolectric
.
Robolectric
;
5
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
32
assertNotNull(
Robolectric
.application);
33
assertEquals(CustomApplication.class,
Robolectric
.application.getClass());
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/util/
RobolectricBackgroundExecutorServiceTest.java
1
package com.xtremelabs.
robolectric
.util;
3
import com.xtremelabs.
robolectric
.
Robolectric
;
4
import com.xtremelabs.
robolectric
.WithTestDefaultsRunner;
26
Robolectric
.getBackgroundScheduler().pause();
41
Robolectric
.runBackgroundTasks();
52
Robolectric
.runBackgroundTasks();
71
Robolectric
.runBackgroundTasks();
Completed in 269 milliseconds
<<
11
12
13
14
15
16
17
18
19
20
>>