Home
last modified time | relevance | path

Searched refs:baseContext (Results 1 – 5 of 5) sorted by relevance

/external/icu/icu4c/source/common/
Duenum.c34 if (en->baseContext != NULL) { in _getBuffer()
35 if (((_UEnumBuffer*) en->baseContext)->len < capacity) { in _getBuffer()
37 en->baseContext = uprv_realloc(en->baseContext, in _getBuffer()
39 if (en->baseContext == NULL) { in _getBuffer()
42 ((_UEnumBuffer*) en->baseContext)->len = capacity; in _getBuffer()
46 en->baseContext = uprv_malloc(sizeof(int32_t) + capacity); in _getBuffer()
47 if (en->baseContext == NULL) { in _getBuffer()
50 ((_UEnumBuffer*) en->baseContext)->len = capacity; in _getBuffer()
53 return (void*) & ((_UEnumBuffer*) en->baseContext)->data; in _getBuffer()
61 if (en->baseContext) { in uenum_close()
[all …]
Duenumimp.h108 void *baseContext; member
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowContextWrapper.java34 protected Context baseContext; field in ShadowContextWrapper
42 public void __constructor__(Context baseContext) { in __constructor__() argument
43 this.baseContext = baseContext; in __constructor__()
48 return baseContext.getApplicationContext(); in getApplicationContext()
236 return baseContext; in getBaseContext()
241 baseContext = context; in attachBaseContext()
DShadowContextThemeWrapper.java10 public void __constructor__(Context baseContext, int themesres) { in __constructor__() argument
11 super.__constructor__(baseContext); in __constructor__()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DContextWrapperTest.java166 Activity baseContext = new Activity(); in shouldReturnAContext() local
167 shContextWrapper.attachBaseContext(baseContext); in shouldReturnAContext()
168 assertThat(contextWrapper.getBaseContext(), sameInstance((Context) baseContext)); in shouldReturnAContext()