Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 741) sorted by relevance

12345678910>>...30

/development/tools/findunused/
Dfind_unused_resources.rb96 findAllOccurrences(re, line).each { |id|
97 @@globalJavaIdUses[id] = FilePosition.new(filename, file.lineno)
115 findAllOccurrences(@@stringIdPattern, line).each {|id|
116 strings[id] = FilePosition.new(filename, file.lineno)
118 findAllOccurrences(@@layoutIdPattern, line).each {|id|
119 layouts[id] = FilePosition.new(filename, file.lineno)
122 findAllOccurrences(re, line).each {|id|
123 xmlIdUses[id] = FilePosition.new(filename, file.lineno)
135 findAllOccurrences(re, line).each {|id|
136 xmlIdUses[id] = FilePosition.new(filename, file.lineno)
[all …]
/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/
DSimpleGeofenceStore.java54 public SimpleGeofence getGeofence(String id) { in getGeofence() argument
57 double lat = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LATITUDE), in getGeofence()
59 double lng = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), in getGeofence()
61 float radius = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_RADIUS), in getGeofence()
64 mPrefs.getLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION), in getGeofence()
66 int transitionType = mPrefs.getInt(getGeofenceFieldKey(id, KEY_TRANSITION_TYPE), in getGeofence()
74 return new SimpleGeofence(id, lat, lng, radius, expirationDuration, transitionType); in getGeofence()
84 public void setGeofence(String id, SimpleGeofence geofence) { in setGeofence() argument
89 prefs.putFloat(getGeofenceFieldKey(id, KEY_LATITUDE), (float) geofence.getLatitude()); in setGeofence()
90 prefs.putFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), (float) geofence.getLongitude()); in setGeofence()
[all …]
/development/tools/repo_diff/service/repodiff/repositories/
Dsource_test.go39 id, err := sourceRepo.getOrCreateURLBranchID(url, branch)
41 assert.True(t, id > 0, "ID should be non-zero")
44 assert.Equal(t, id, idSecondFetch, "Retrieved ID values should be identical")
54 id, _ := sourceRepo.getOrCreateURLBranchID(url, branch)
55 assert.Equal(t, int16(1), id, "ID should be 1 since it's first row")
60 id, _ = sourceRepo.getOrCreateURLBranchID(nextURL, nextBranch)
61 assert.Equal(t, int16(1), id, "ID should be 1 since it's first row")
63 id, _ = sourceRepo.getOrCreateURLBranchID(url, branch)
64 assert.Equal(t, int16(1), id, "ID should be 1 since it hit the cache")
73 id, _ := sourceRepo.getOrCreateURLBranchID(url, branch)
[all …]
Dsource.go24 id, ok := cacheSingleton.Get(cacheKey(url, branch))
26 return id.(int16), nil
37 id, err := s.getIDByURLBranch(url, branch)
39 return id, nil
62 var id *int16
66 id = new(int16)
67 row.Scan(id)
73 if id == nil {
76 return *id, nil
79 func (s source) GetURLBranchByID(id int16) (string, string, error) {
[all …]
/development/samples/HelloEffects/src/com/example/android/mediafx/
DHelloEffects.java63 mEffectView = (GLSurfaceView) findViewById(R.id.effectsview); in onCreate()
67 mCurrentEffect = R.id.none; in onCreate()
99 case R.id.none: in initEffect()
102 case R.id.autofix: in initEffect()
108 case R.id.bw: in initEffect()
115 case R.id.brightness: in initEffect()
121 case R.id.contrast: in initEffect()
127 case R.id.crossprocess: in initEffect()
132 case R.id.documentary: in initEffect()
137 case R.id.duotone: in initEffect()
[all …]
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DTracking.java65 int id = activity.getTaskId(); in onResume() local
66 Task task = getOrCreateTask(mTaskOverView, id); in onResume()
96 mTaskOverView.remove(task.id); in onDestroy()
116 if (activity.getTaskId() != task.id) { in checkForMovedActivities()
130 int id = activity.getTaskId(); in moveActivitiesInOrder() local
131 if (id != task.id) { in moveActivitiesInOrder()
132 Task target = mTaskOverView.get(id); in moveActivitiesInOrder()
135 Task newTask = Task.newTask(id); in moveActivitiesInOrder()
136 mTaskOverView.put(id, newTask); in moveActivitiesInOrder()
183 private static Task getOrCreateTask(Map<Integer, Task> map, int id) { in getOrCreateTask() argument
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DActivityTransition.java55 R.id.ball,
56 R.id.block,
57 R.id.ducky,
58 R.id.jellies,
59 R.id.mug,
60 R.id.pencil,
61 R.id.scissors,
62 R.id.woot,
76 public static int getIdForKey(String id) { in getIdForKey() argument
77 return IDS[getIndexForKey(id)]; in getIdForKey()
[all …]
DTransitions.java44 mSceneRoot = (ViewGroup) findViewById(R.id.sceneRoot); in onCreate()
62 case R.id.scene1: in selectScene()
65 case R.id.scene2: in selectScene()
68 case R.id.scene3: in selectScene()
71 case R.id.scene4: in selectScene()
76 setNewSize(R.id.view1, 150, 25); in selectScene()
77 setNewSize(R.id.view2, 150, 25); in selectScene()
78 setNewSize(R.id.view3, 150, 25); in selectScene()
79 setNewSize(R.id.view4, 150, 25); in selectScene()
84 private void setNewSize(int id, int width, int height) { in setNewSize() argument
[all …]
/development/samples/browseable/MediaEffects/src/com.example.android.mediaeffects/
DMediaEffectsFragment.java69 mEffectView = (GLSurfaceView) view.findViewById(R.id.effectsview); in onViewCreated()
76 setCurrentEffect(R.id.none); in onViewCreated()
118 if (mCurrentEffect != R.id.none) { in onDrawFrame()
156 case R.id.none: in initEffect()
159 case R.id.autofix: in initEffect()
164 case R.id.bw: in initEffect()
170 case R.id.brightness: in initEffect()
175 case R.id.contrast: in initEffect()
180 case R.id.crossprocess: in initEffect()
184 case R.id.documentary: in initEffect()
[all …]
/development/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/
DNfcProvisioningFragment.java76 mEditPackageName = (EditText) view.findViewById(R.id.package_name); in onViewCreated()
77 mEditLocale = (EditText) view.findViewById(R.id.locale); in onViewCreated()
78 mEditTimezone = (EditText) view.findViewById(R.id.timezone); in onViewCreated()
79 mEditWifiSsid = (EditText) view.findViewById(R.id.wifi_ssid); in onViewCreated()
80 mEditWifiSecurityType = (EditText) view.findViewById(R.id.wifi_security_type); in onViewCreated()
81 mEditWifiPassword = (EditText) view.findViewById(R.id.wifi_password); in onViewCreated()
83 mEditPackageName.addTextChangedListener(new TextWatcherWrapper(R.id.package_name, this)); in onViewCreated()
84 mEditLocale.addTextChangedListener(new TextWatcherWrapper(R.id.locale, this)); in onViewCreated()
85 mEditTimezone.addTextChangedListener(new TextWatcherWrapper(R.id.timezone, this)); in onViewCreated()
86 mEditWifiSsid.addTextChangedListener(new TextWatcherWrapper(R.id.wifi_ssid, this)); in onViewCreated()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/app/
DActionBarDisplayOptions.java46 findViewById(R.id.toggle_home_as_up).setOnClickListener(this); in onCreate()
47 findViewById(R.id.toggle_show_home).setOnClickListener(this); in onCreate()
48 findViewById(R.id.toggle_use_logo).setOnClickListener(this); in onCreate()
49 findViewById(R.id.toggle_show_title).setOnClickListener(this); in onCreate()
50 findViewById(R.id.toggle_show_custom).setOnClickListener(this); in onCreate()
51 findViewById(R.id.cycle_custom_gravity).setOnClickListener(this); in onCreate()
52 findViewById(R.id.toggle_visibility).setOnClickListener(this); in onCreate()
53 findViewById(R.id.toggle_system_ui).setOnClickListener(this); in onCreate()
55 ((Spinner) findViewById(R.id.toggle_navigation)).setOnItemSelectedListener(this); in onCreate()
86 case R.id.toggle_home_as_up: in onClick()
[all …]
DFragmentHideShow.java46 Fragment fragment1 = fm.findFragmentById(R.id.fragment1); in onCreate()
47 addShowHideListener(R.id.frag1hide, fragment1); in onCreate()
48 final Button button1 = (Button)findViewById(R.id.frag1hide); in onCreate()
50 Fragment fragment2 = fm.findFragmentById(R.id.fragment2); in onCreate()
51 addShowHideListener(R.id.frag2hide, fragment2); in onCreate()
52 final Button button2 = (Button)findViewById(R.id.frag2hide); in onCreate()
82 View tv = v.findViewById(R.id.msg); in onCreateView()
86 mTextView = (TextView)v.findViewById(R.id.saved); in onCreateView()
108 View tv = v.findViewById(R.id.msg); in onCreateView()
115 ((TextView)v.findViewById(R.id.saved)).setSaveEnabled(true); in onCreateView()
DCustomTitle.java67 final TextView leftText = (TextView) findViewById(R.id.left_text); in onCreate()
68 final TextView rightText = (TextView) findViewById(R.id.right_text); in onCreate()
69 final EditText leftTextEdit = (EditText) findViewById(R.id.left_text_edit); in onCreate()
70 final EditText rightTextEdit = (EditText) findViewById(R.id.right_text_edit); in onCreate()
71 Button leftButton = (Button) findViewById(R.id.left_text_button); in onCreate()
72 Button rightButton = (Button) findViewById(R.id.right_text_button); in onCreate()
/development/samples/ControllerSample/src/com/example/inputmanagercompat/
DInputManagerV9.java68 int id = imv.mDevices.keyAt(i); in handleMessage() local
69 if (null == InputDevice.getDevice(id)) { in handleMessage()
71 imv.notifyListeners(ON_DEVICE_REMOVED, id); in handleMessage()
72 imv.mDevices.remove(id); in handleMessage()
98 public InputDevice getInputDevice(int id) { in getInputDevice() argument
99 return InputDevice.getDevice(id); in getInputDevice()
108 for ( int id : activeDevices ) { in getInputDeviceIds()
109 long[] lastContact = mDevices.get(id); in getInputDeviceIds()
112 mDevices.put(id, new long[] { time }); in getInputDeviceIds()
154 static DeviceEvent getDeviceEvent(int messageType, int id, in getDeviceEvent() argument
[all …]
/development/samples/training/InteractiveChart/src/com/example/android/interactivechart/
DMainActivity.java30 mGraphView = (InteractiveLineGraphView) findViewById(R.id.chart); in onCreate()
43 case R.id.action_zoom_in: in onOptionsItemSelected()
47 case R.id.action_zoom_out: in onOptionsItemSelected()
51 case R.id.action_pan_left: in onOptionsItemSelected()
55 case R.id.action_pan_right: in onOptionsItemSelected()
59 case R.id.action_pan_up: in onOptionsItemSelected()
63 case R.id.action_pan_down: in onOptionsItemSelected()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DSecureViewOverlay.java53 spoofLayout(findViewById(R.id.secure_view_overlay_description), in onLayout()
54 mActivity.findViewById(R.id.secure_view_description)); in onLayout()
55 spoofLayout(findViewById(R.id.secure_view_overlay_button1), in onLayout()
56 mActivity.findViewById(R.id.secure_view_unsecure_button)); in onLayout()
57 spoofLayout(findViewById(R.id.secure_view_overlay_button2), in onLayout()
58 mActivity.findViewById(R.id.secure_view_builtin_secure_button)); in onLayout()
59 spoofLayout(findViewById(R.id.secure_view_overlay_button3), in onLayout()
60 mActivity.findViewById(R.id.secure_view_custom_secure_button)); in onLayout()
/development/samples/MultiWindow/src/com/example/android/multiwindow/
DLaunchingAdjacentActivity.java36 findViewById(R.id.launch_settings_adjacent).setOnClickListener(this); in onCreate()
37 findViewById(R.id.launch_new_task_single).setOnClickListener(this); in onCreate()
38 findViewById(R.id.launch_new_task_multiple).setOnClickListener(this); in onCreate()
39 findViewById(R.id.launch_new_task_adjacent).setOnClickListener(this); in onCreate()
45 ((TextView) findViewById(R.id.instance_number)) in onCreate()
52 case R.id.launch_settings_adjacent: { in onClick()
59 case R.id.launch_new_task_single: { in onClick()
65 case R.id.launch_new_task_multiple: { in onClick()
71 case R.id.launch_new_task_adjacent: { in onClick()
/development/apps/Development/src/com/android/development/
DConnectivity.java398 addRequestableNetwork(NET_CAPABILITY_MMS, R.id.request_mms, R.id.release_mms, in Connectivity()
399 R.id.mms_progress); in Connectivity()
400 addRequestableNetwork(NET_CAPABILITY_SUPL, R.id.request_supl, R.id.release_supl, in Connectivity()
401 R.id.supl_progress); in Connectivity()
402 addRequestableNetwork(NET_CAPABILITY_INTERNET, R.id.request_cell, R.id.release_cell, in Connectivity()
403 R.id.cell_progress); in Connectivity()
412 R.id.request_wifi, R.id.release_wifi, R.id.wifi_progress)); in Connectivity()
431 findViewById(R.id.enableWifi).setOnClickListener(mClickListener); in onCreate()
432 findViewById(R.id.disableWifi).setOnClickListener(mClickListener); in onCreate()
433 findViewById(R.id.acquireWifiMulticastLock).setOnClickListener(mClickListener); in onCreate()
[all …]
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
DAlarm.java32 public int id; field in Alarm
43 public Alarm(int id, int month, int date, int hour, int minute) { in Alarm() argument
44 this.id = id; in Alarm()
62 jsonObject.put("id", id); in toJson()
84 alarm.id = jsonObject.getInt("id"); in fromJson()
99 "id=" + id + in toString()
116 return id == alarm.id && in equals()
125 return Objects.hash(id, month, date, hour, minute); in hashCode()
/development/samples/SampleSyncAdapter/samplesyncadapter_server/
Ddashboard.py102 id = int(self.request.get('id'))
103 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
104 self.send_form('Edit Contact', '/edit_contact', id, contact.handle,
108 id = int(self.request.get('id'))
109 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
119 self.send_form('Edit Contact', '/edit_contact', id, contact.handle, data)
125 id = int(self.request.get('id'))
126 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
142 id = int(self.request.get('id'))
143 contact = datastore.Contact.get(db.Key.from_path('Contact', id))
[all …]
/development/samples/browseable/BasicMultitouch/src/com.example.android.basicmultitouch/
DTouchDisplayView.java152 int id = event.getPointerId(0); in onTouchEvent() local
163 mTouches.put(id, data); in onTouchEvent()
182 int id = event.getPointerId(index); in onTouchEvent() local
186 data.label = "id: " + id; in onTouchEvent()
194 mTouches.put(id, data); in onTouchEvent()
210 int id = event.getPointerId(0); in onTouchEvent() local
211 TouchHistory data = mTouches.get(id); in onTouchEvent()
212 mTouches.remove(id); in onTouchEvent()
232 int id = event.getPointerId(index); in onTouchEvent() local
234 TouchHistory data = mTouches.get(id); in onTouchEvent()
[all …]
/development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/
DMainActivity.java69 final Button getAllRequestingApps = (Button) findViewById(R.id.getallrequestingapps); in onCreate()
70 final TextView getAllRequesting3pUids = (TextView) findViewById(R.id.requestingapps); in onCreate()
72 final RadioGroup accountChooser = (RadioGroup) findViewById(R.id.accountGroup); in onCreate()
73 final RadioGroup optionChooser = (RadioGroup) findViewById(R.id.optionsGroup); in onCreate()
74 final RadioGroup packagesChooser = (RadioGroup) findViewById(R.id.packagesChooser); in onCreate()
75 final Button selectOption = (Button) findViewById(R.id.selectoptionbutton); in onCreate()
76 final TextView authStatus = (TextView) findViewById(R.id.authenticatorstatus); in onCreate()
150 if (checkedAccount == R.id.terrabutton) { in onCreate()
152 } else if (checkedAccount == R.id.aquabutton) { in onCreate()
154 } else if (checkedAccount == R.id.ventusbutton) { in onCreate()
[all …]
/development/samples/browseable/BasicTransition/src/com.example.android.basictransition/
DBasicTransitionFragment.java55 RadioGroup radioGroup = (RadioGroup) view.findViewById(R.id.select_scene); in onCreateView()
57 mSceneRoot = (ViewGroup) view.findViewById(R.id.scene_root); in onCreateView()
61 mScene1 = new Scene(mSceneRoot, (ViewGroup) mSceneRoot.findViewById(R.id.container)); in onCreateView()
85 case R.id.select_scene_1: { in onCheckedChanged()
92 case R.id.select_scene_2: { in onCheckedChanged()
96 case R.id.select_scene_3: { in onCheckedChanged()
103 case R.id.select_scene_4: { in onCheckedChanged()
109 View square = mSceneRoot.findViewById(R.id.transition_square); in onCheckedChanged()
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/
DLayoutChangesActivity.java50 mContainerView = (ViewGroup) findViewById(R.id.container); in onCreate()
63 case android.R.id.home: in onOptionsItemSelected()
69 case R.id.action_add_item: in onOptionsItemSelected()
71 findViewById(android.R.id.empty).setVisibility(View.GONE); in onOptionsItemSelected()
85 ((TextView) newView.findViewById(android.R.id.text1)).setText( in addItem()
89 newView.findViewById(R.id.delete_button).setOnClickListener(new View.OnClickListener() { in addItem()
99 findViewById(android.R.id.empty).setVisibility(View.VISIBLE); in addItem()
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
DRecipeActivity.java62 mTitleTextView = (TextView) findViewById(R.id.recipeTextTitle); in onCreate()
63 mSummaryTextView = (TextView) findViewById(R.id.recipeTextSummary); in onCreate()
64 mImageView = (ImageView) findViewById(R.id.recipeImageView); in onCreate()
65 mIngredientsTextView = (TextView) findViewById(R.id.textIngredients); in onCreate()
66 mStepsLayout = (LinearLayout) findViewById(R.id.layoutSteps); in onCreate()
79 case R.id.action_cook: in onOptionsItemSelected()
108 findViewById(R.id.ingredientsHeader).setAnimation(fadeIn); in displayRecipe()
109 findViewById(R.id.ingredientsHeader).setVisibility(View.VISIBLE); in displayRecipe()
110 findViewById(R.id.stepsHeader).setAnimation(fadeIn); in displayRecipe()
112 findViewById(R.id.stepsHeader).setVisibility(View.VISIBLE); in displayRecipe()
[all …]

12345678910>>...30