/frameworks/base/core/tests/coretests/src/android/widget/ |
TextViewActivityTest.java | 125 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); 127 onView(withId(R.id.textview)).check(matches(withText(helloWorld))); 132 onView(withId(R.id.textview)).perform(replaceText(helloWorld)); 133 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(helloWorld.indexOf("world"))); 136 onView(withId(R.id.textview)).perform(pressKey(KeyEvent.KEYCODE_FORWARD_DEL)); 137 onView(withId(R.id.textview)).check(matches(withText("Hello orld!"))); 145 onView(withId(R.id.textview)).perform(replaceText(text)); 147 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(0)); 148 onView(withId(R.id.textview)).check(hasInsertionPointerAtIndex(0)); 149 onView(withId(R.id.textview)).perform(clickOnTextAtIndex(1)) [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/ |
ANTLRBaseTree.h | 33 + (id<ANTLRBaseTree>) newANTLRBaseTree; 34 + (id<ANTLRBaseTree>) newANTLRBaseTree:(id<ANTLRBaseTree>)node; 36 - (id<ANTLRBaseTree>) init; 37 - (id<ANTLRBaseTree>) initWith:(id<ANTLRTree>)node; 39 - (id<ANTLRBaseTree>) getChild:(NSUInteger)i; 42 - (id<ANTLRBaseTree>)getFirstChildWithType:(NSInteger)type; 48 - (void) addChild:(id<ANTLRTree>) tree; 52 - (void) setChild:(NSInteger) i With:(id<ANTLRTree>)t [all...] |
ANTLRHashMap.h | 55 + (id)newANTLRHashMap; 56 + (id)newANTLRHashMapWithLen:(NSInteger)aBuffSize; 57 - (id)init; 58 - (id)initWithLen:(NSInteger)aBuffSize; 72 - (id)lookup:(NSString *)s Scope:(int)scope; 74 - (id)install:(ANTLRMapElement *)sym Scope:(int)scope; 92 - (void) insertObject:(id)aRule atIndex:(NSInteger)idx; 93 - (id) objectAtIndex:(NSInteger)idx; 94 - (void) setObject:(id)aRule atIndex:(NSInteger)idx; 95 - (void)addObject:(id)anObject [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/ |
ANTLRBaseTree.h | 33 + (id<ANTLRBaseTree>) newANTLRBaseTree; 34 + (id<ANTLRBaseTree>) newANTLRBaseTree:(id<ANTLRBaseTree>)node; 36 - (id<ANTLRBaseTree>) init; 37 - (id<ANTLRBaseTree>) initWith:(id<ANTLRTree>)node; 39 - (id<ANTLRBaseTree>) getChild:(NSUInteger)i; 42 - (id<ANTLRBaseTree>)getFirstChildWithType:(NSInteger)type; 48 - (void) addChild:(id<ANTLRTree>) tree; 52 - (void) setChild:(NSInteger) i With:(id<ANTLRTree>)t [all...] |
ANTLRHashMap.h | 55 + (id)newANTLRHashMap; 56 + (id)newANTLRHashMapWithLen:(NSInteger)aBuffSize; 57 - (id)init; 58 - (id)initWithLen:(NSInteger)aBuffSize; 72 - (id)lookup:(NSString *)s Scope:(int)scope; 74 - (id)install:(ANTLRMapElement *)sym Scope:(int)scope; 92 - (void) insertObject:(id)aRule atIndex:(NSInteger)idx; 93 - (id) objectAtIndex:(NSInteger)idx; 94 - (void) setObject:(id)aRule atIndex:(NSInteger)idx; 95 - (void)addObject:(id)anObject [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/ |
ANTLRBaseTree.h | 33 + (id<ANTLRBaseTree>) newANTLRBaseTree; 34 + (id<ANTLRBaseTree>) newANTLRBaseTree:(id<ANTLRBaseTree>)node; 36 - (id<ANTLRBaseTree>) init; 37 - (id<ANTLRBaseTree>) initWith:(id<ANTLRTree>)node; 39 - (id<ANTLRBaseTree>) getChild:(NSUInteger)i; 42 - (id<ANTLRBaseTree>)getFirstChildWithType:(NSInteger)type; 48 - (void) addChild:(id<ANTLRTree>) tree; 52 - (void) setChild:(NSInteger) i With:(id<ANTLRTree>)t [all...] |
ANTLRHashMap.h | 55 + (id)newANTLRHashMap; 56 + (id)newANTLRHashMapWithLen:(NSInteger)aBuffSize; 57 - (id)init; 58 - (id)initWithLen:(NSInteger)aBuffSize; 72 - (id)lookup:(NSString *)s Scope:(int)scope; 74 - (id)install:(ANTLRMapElement *)sym Scope:(int)scope; 92 - (void) insertObject:(id)aRule atIndex:(NSInteger)idx; 93 - (id) objectAtIndex:(NSInteger)idx; 94 - (void) setObject:(id)aRule atIndex:(NSInteger)idx; 95 - (void)addObject:(id)anObject [all...] |
/external/antlr/antlr-3.4/runtime/ObjC/Framework/ |
ANTLRBufferedTreeNodeStream.h | 52 + (id) newANTLRStreamIterator:(ANTLRBufferedTreeNodeStream *) theStream; 54 - (id) initWithStream:(ANTLRBufferedTreeNodeStream *) theStream; 57 - (id) next; 64 id up; 65 id down; 66 id eof; 70 id root; // root 72 id<ANTLRTokenStream> tokens; 81 id currentSymbol; 85 @property (retain, getter=getUp, setter=setUp:) id up [all...] |
/external/webrtc/webrtc/base/ |
diskcache.h | 28 // Streams are identified by a unique resource id. Multiple streams can be 29 // associated with each resource id, distinguished by an index. When old 45 bool LockResource(const std::string& id); 46 StreamInterface* WriteResource(const std::string& id, size_t index); 47 bool UnlockResource(const std::string& id); 49 StreamInterface* ReadResource(const std::string& id, size_t index) const; 51 bool HasResource(const std::string& id) const; 52 bool HasResourceStream(const std::string& id, size_t index) const; 53 bool DeleteResource(const std::string& id); 75 std::string IdToFilename(const std::string& id, size_t index) const [all...] |
win32windowpicker.cc | 65 WindowId id(hwnd); 66 WindowDescription desc(id, title); 78 DesktopId id(h_monitor, static_cast<int>(desktop_desc->size())); 80 DesktopDescription desc(id, ""); 123 bool Win32WindowPicker::GetDesktopDimensions(const DesktopId& id, 128 if (!GetMonitorInfo(id.id(), &monitor_info)) { 136 bool Win32WindowPicker::IsVisible(const WindowId& id) { 137 return (::IsWindow(id.id()) != FALSE && ::IsWindowVisible(id.id()) != FALSE) [all...] |
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
ActivityTransition.java | 34 private static final String KEY_ID = "ViewTransitionValues:id"; 50 R.id.ball, 51 R.id.block, 52 R.id.ducky, 53 R.id.jellies, 54 R.id.mug, 55 R.id.pencil, 56 R.id.scissors, 57 R.id.woot, 71 public static int getIdForKey(String id) { [all...] |
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/ |
ToolbarDisplayOptions.java | 46 Toolbar toolbar = findViewById(R.id.toolbar); 49 findViewById(R.id.toggle_home_as_up).setOnClickListener(this); 50 findViewById(R.id.toggle_show_home).setOnClickListener(this); 51 findViewById(R.id.toggle_use_logo).setOnClickListener(this); 52 findViewById(R.id.toggle_show_title).setOnClickListener(this); 53 findViewById(R.id.toggle_show_custom).setOnClickListener(this); 54 findViewById(R.id.cycle_custom_gravity).setOnClickListener(this); 55 findViewById(R.id.toggle_visibility).setOnClickListener(this); 80 case R.id.toggle_home_as_up: 83 case R.id.toggle_show_home [all...] |
/hardware/libhardware/modules/usbcamera/ |
CameraHAL.cpp | 76 int CameraHAL::getCameraInfo(int id, struct camera_info* info) { 78 ALOGV("%s: camera id %d: info=%p", __func__, id, info); 79 if (id < 0 || id >= static_cast<int>(mCameras.size())) { 80 ALOGE("%s: Invalid camera id %d", __func__, id); 84 return mCameras[id]->getInfo(info); 94 int id; local 100 ALOGE("%s: Invalid camera id name is NULL", __func__) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
Transitions.java | 44 mSceneRoot = (ViewGroup) findViewById(R.id.sceneRoot); 62 case R.id.scene1: 65 case R.id.scene2: 68 case R.id.scene3: 71 case R.id.scene4: 76 setNewSize(R.id.view1, 150, 25); 77 setNewSize(R.id.view2, 150, 25); 78 setNewSize(R.id.view3, 150, 25); 79 setNewSize(R.id.view4, 150, 25); 84 private void setNewSize(int id, int width, int height) [all...] |
/external/compiler-rt/lib/tsan/rtl/ |
tsan_mutexset.cc | 25 void MutexSet::Add(u64 id, bool write, u64 epoch) { 26 // Look up existing mutex with the same id. 28 if (descs_[i].id == id) { 48 descs_[size_].id = id; 55 void MutexSet::Del(u64 id, bool write) { 57 if (descs_[i].id == id) { 65 void MutexSet::Remove(u64 id) { [all...] |
/external/ltp/lib/newlib_tests/ |
test15.c | 50 intptr_t id; member in struct:block 66 int id = (intptr_t)aid, i; local 69 i != id; 73 (m + (*seq_n))->id = id; 107 intptr_t i, id; local 130 id = (m + i)->id; 131 if (id != i) 132 tst_res(TFAIL, "%d\t\t%d", (int)i, (int)id); [all...] |
/external/ltp/testcases/kernel/containers/sysvipc/ |
sem_nstest.c | 50 int id; local 58 id = semget(MY_KEY, 1, 0); 59 if (id == -1) 63 tst_resm(TINFO, "PID %d: Fetched existing semaphore..id = %d", 64 getpid(), id); 77 int ret, use_clone = T_NONE, id; local 108 id = semget(MY_KEY, 1, IPC_CREAT | IPC_EXCL | 0666); 109 if (id == -1) { 115 id = semget(MY_KEY, 1, 0); 116 if (id == -1) [all...] |
/external/strace/tests/ |
ipc_sem.c | 47 static int id = -1; variable 52 semctl(id, 0, IPC_RMID, 0); 54 id); 55 id = -1; 86 id = semget(private_key, 1, 0600); 87 if (id < 0) 89 printf("semget\\(IPC_PRIVATE, 1, 0600\\) += %d\n", id); 100 if (semctl(id, 0, IPC_STAT, un)) 103 id, &ds); 111 rc = semctl(id, 0, SEM_STAT, un) [all...] |
/external/strace/tests-m32/ |
ipc_sem.c | 47 static int id = -1; variable 52 semctl(id, 0, IPC_RMID, 0); 54 id); 55 id = -1; 86 id = semget(private_key, 1, 0600); 87 if (id < 0) 89 printf("semget\\(IPC_PRIVATE, 1, 0600\\) += %d\n", id); 100 if (semctl(id, 0, IPC_STAT, un)) 103 id, &ds); 111 rc = semctl(id, 0, SEM_STAT, un) [all...] |
/external/strace/tests-mx32/ |
ipc_sem.c | 47 static int id = -1; variable 52 semctl(id, 0, IPC_RMID, 0); 54 id); 55 id = -1; 86 id = semget(private_key, 1, 0600); 87 if (id < 0) 89 printf("semget\\(IPC_PRIVATE, 1, 0600\\) += %d\n", id); 100 if (semctl(id, 0, IPC_STAT, un)) 103 id, &ds); 111 rc = semctl(id, 0, SEM_STAT, un) [all...] |
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ |
SuggestionFeatureProvider.java | 63 public void markSuggestionDismissed(Context context, String id) { 66 .putBoolean(getDismissKey(id), true) 69 SuggestionEventStore.get(context).writeEvent(id, SuggestionEventStore.EVENT_DISMISSED); 75 public void markSuggestionNotDismissed(Context context, String id) { 78 .putBoolean(getDismissKey(id), false) 82 public void markSuggestionLaunched(Context context, String id) { 83 SuggestionEventStore.get(context).writeEvent(id, SuggestionEventStore.EVENT_CLICKED); 89 public boolean isSuggestionDismissed(Context context, String id) { 91 .getBoolean(getDismissKey(id), false); 105 private static String getDismissKey(String id) { [all...] |
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
DownloadJobService.java | 58 final int id = params.getJobId(); local 61 final DownloadInfo info = DownloadInfo.queryDownloadInfo(this, id); 63 Log.w(TAG, "Odd, no details found for download " + id); 69 if (mActiveThreads.indexOfKey(id) >= 0) { 70 Log.w(TAG, "Odd, already running download " + id); 74 mActiveThreads.put(id, thread); 83 final int id = params.getJobId(); local 87 thread = mActiveThreads.removeReturnOld(id); 94 Helpers.scheduleJob(this, DownloadInfo.queryDownloadInfo(this, id)); 100 final int id = params.getJobId() local [all...] |
/developers/build/prebuilts/gradle/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/ |
SimpleGeofenceStore.java | 50 * Returns a stored geofence by its id, or returns null if it's not found. 51 * @param id The ID of a stored geofence. 52 * @return A SimpleGeofence defined by its center and radius, or null if the ID is invalid. 54 public SimpleGeofence getGeofence(String id) { 55 // Get the latitude for the geofence identified by id, or INVALID_FLOAT_VALUE if it doesn't 57 double lat = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LATITUDE), 59 double lng = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), 61 float radius = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_RADIUS), 64 mPrefs.getLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION) [all...] |
/developers/samples/android/wearable/wear/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/ |
SimpleGeofenceStore.java | 50 * Returns a stored geofence by its id, or returns null if it's not found. 51 * @param id The ID of a stored geofence. 52 * @return A SimpleGeofence defined by its center and radius, or null if the ID is invalid. 54 public SimpleGeofence getGeofence(String id) { 55 // Get the latitude for the geofence identified by id, or INVALID_FLOAT_VALUE if it doesn't 57 double lat = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LATITUDE), 59 double lng = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), 61 float radius = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_RADIUS), 64 mPrefs.getLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION) [all...] |
/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/ |
SimpleGeofenceStore.java | 50 * Returns a stored geofence by its id, or returns null if it's not found. 51 * @param id The ID of a stored geofence. 52 * @return A SimpleGeofence defined by its center and radius, or null if the ID is invalid. 54 public SimpleGeofence getGeofence(String id) { 55 // Get the latitude for the geofence identified by id, or INVALID_FLOAT_VALUE if it doesn't 57 double lat = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LATITUDE), 59 double lng = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), 61 float radius = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_RADIUS), 64 mPrefs.getLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION) [all...] |