Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 448) sorted by relevance

12345678910>>...18

/development/samples/devbytes/animation/ListViewExpandingCells/src/com/example/android/expandingcells/
DExpandingListView.java188 View v = getChildAt(i);
189 v.setHasTransientState(true);
190 oldCoordinates.put(v, new int[] {v.getTop(), v.getBottom()});
233 View v = getChildAt(i);
234 int height = v.getBottom() - Math.max(0, v.getTop());
275 for (View v: oldCoordinates.keySet()) {
276 int[] old = oldCoordinates.get(v);
277 v.setTop(old[0]);
278 v.setBottom(old[1]);
279 if (v.getParent() == null) {
[all …]
/development/samples/devbytes/animation/ListViewRemovalAnimation/src/com/example/android/listviewremovalanimation/
DListViewRemovalAnimation.java76 public boolean onTouch(final View v, MotionEvent event) {
91 v.setAlpha(1);
92 v.setTranslationX(0);
97 float x = event.getX() + v.getTranslationX();
104 mBackgroundContainer.showBackground(v.getTop(), v.getHeight());
108 v.setTranslationX((x - mDownX));
109 v.setAlpha(1 - deltaXAbs / v.getWidth());
117 float x = event.getX() + v.getTranslationX();
124 if (deltaXAbs > v.getWidth() / 4) {
126 fractionCovered = deltaXAbs / v.getWidth();
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/app/
DAnimation.java77 public void onClick(View v) {
90 public void onClick(View v) {
104 public void onClick(View v) {
119 public void onClick(View v) {
134 public void onClick(View v) {
139 v, 0, 0, v.getWidth(), v.getHeight());
146 public void onClick(View v) {
152 v.setDrawingCacheEnabled(true);
153 v.setPressed(false);
154 v.refreshDrawableState();
[all …]
DFragmentHideShow.java59 public void onClick(View v) { in addShowHideListener()
81 View v = inflater.inflate(R.layout.labeled_text_edit, container, false); in onCreateView() local
82 View tv = v.findViewById(R.id.msg); in onCreateView()
86 mTextView = (TextView)v.findViewById(R.id.saved); in onCreateView()
90 return v; in onCreateView()
107 View v = inflater.inflate(R.layout.labeled_text_edit, container, false); in onCreateView() local
108 View tv = v.findViewById(R.id.msg); in onCreateView()
115 ((TextView)v.findViewById(R.id.saved)).setSaveEnabled(true); in onCreateView()
116 return v; in onCreateView()
DFragmentStackFragment.java50 View v = inflater.inflate(R.layout.fragment_stack, container, false); in onCreateView() local
53 Button button = (Button)v.findViewById(R.id.new_fragment); in onCreateView()
55 public void onClick(View v) { in onCreateView()
59 button = (Button)v.findViewById(R.id.delete_fragment); in onCreateView()
61 public void onClick(View v) { in onCreateView()
66 return v; in onCreateView()
DStatusBarNotifications.java55 public void onClick(View v) { in onCreate()
63 public void onClick(View v) { in onCreate()
71 public void onClick(View v) { in onCreate()
78 public void onClick(View v) { in onCreate()
86 public void onClick(View v) { in onCreate()
93 public void onClick(View v) { in onCreate()
100 public void onClick(View v) { in onCreate()
107 public void onClick(View v) { in onCreate()
114 public void onClick(View v) { in onCreate()
121 public void onClick(View v) { in onCreate()
[all …]
DFragmentMenuFragment.java42 public void onClick(View v) {
50 View v = inflater.inflate(R.layout.fragment_menu, container, false); in onCreateView() local
68 mCheckBox1 = (CheckBox)v.findViewById(R.id.menu1); in onCreateView()
70 mCheckBox2 = (CheckBox)v.findViewById(R.id.menu2); in onCreateView()
76 return v; in onCreateView()
/development/samples/browseable/RecyclerView/src/com.example.android.recyclerview/
DCustomAdapter.java42 public ViewHolder(View v) { in ViewHolder() argument
43 super(v); in ViewHolder()
45 v.setOnClickListener(new View.OnClickListener() { in ViewHolder()
47 public void onClick(View v) { in ViewHolder()
51 textView = (TextView) v.findViewById(R.id.textView); in ViewHolder()
74 View v = LayoutInflater.from(viewGroup.getContext()) in onCreateViewHolder() local
77 return new ViewHolder(v); in onCreateViewHolder()
/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/
DShortcutAdapter.java142 final View v = view.findViewById(getLaunchId()); in bindView() local
143 v.setVisibility(View.GONE); in bindView()
145 v.setOnClickListener(this); in bindView()
146 v.setVisibility(View.VISIBLE); in bindView()
150 final Button v = (Button) view.findViewById(getAction2Id()); in bindView() local
151 v.setVisibility(View.GONE); in bindView()
153 v.setOnClickListener(this); in bindView()
154 v.setVisibility(View.VISIBLE); in bindView()
155 v.setText(getAction2Text(si)); in bindView()
192 public void onClick(View v) { in onClick() argument
[all …]
/development/samples/browseable/AppUsageStatistics/src/com.example.android.appusagestatistics/
DUsageListAdapter.java48 public ViewHolder(View v) { in ViewHolder() argument
49 super(v); in ViewHolder()
50 mPackageName = (TextView) v.findViewById(R.id.textview_package_name); in ViewHolder()
51 mLastTimeUsed = (TextView) v.findViewById(R.id.textview_last_time_used); in ViewHolder()
52 mAppIcon = (ImageView) v.findViewById(R.id.app_icon); in ViewHolder()
73 View v = LayoutInflater.from(viewGroup.getContext()) in onCreateViewHolder() local
75 return new ViewHolder(v); in onCreateViewHolder()
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/
DDirectoryEntryAdapter.java44 public ViewHolder(View v) { in ViewHolder() argument
45 super(v); in ViewHolder()
46 mFileName = (TextView) v.findViewById(R.id.textview_filename); in ViewHolder()
47 mMimeType = (TextView) v.findViewById(R.id.textview_mimetype); in ViewHolder()
48 mImageView = (ImageView) v.findViewById(R.id.entry_image); in ViewHolder()
75 View v = LayoutInflater.from(viewGroup.getContext()) in onCreateViewHolder() local
77 return new ViewHolder(v); in onCreateViewHolder()
/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/
DDirectoryEntryAdapter.java31 View v = LayoutInflater.from(viewGroup.getContext()) in onCreateViewHolder() local
33 return new ViewHolder(v); in onCreateViewHolder()
67 public ViewHolder(View v) { in ViewHolder() argument
68 super(v); in ViewHolder()
69 fileName = (TextView) v.findViewById(R.id.textview_filename); in ViewHolder()
70 mimeType = (TextView) v.findViewById(R.id.textview_mimetype); in ViewHolder()
71 imageView = (ImageView) v.findViewById(R.id.imageview_entry); in ViewHolder()
/development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
DWiFiDirectServicesList.java46 public void onListItemClick(ListView l, View v, int position, long id) { in onListItemClick() argument
50 ((TextView) v.findViewById(android.R.id.text2)).setText("Connecting"); in onListItemClick()
66 View v = convertView; in getView() local
67 if (v == null) { in getView()
70 v = vi.inflate(android.R.layout.simple_list_item_2, null); in getView()
74 TextView nameText = (TextView) v in getView()
80 TextView statusText = (TextView) v in getView()
84 return v; in getView()
/development/samples/devbytes/animation/WindowAnimations/src/com/example/android/windowanimations/
DWindowAnimations.java51 public void onClick(View v) { in onCreate()
62 public void onClick(View v) { in onCreate()
79 public void onClick(View v) { in onCreate()
83 v, 0, 0, v.getWidth(), v.getHeight()).toBundle(); in onCreate()
93 public void onClick(View v) { in onCreate()
/development/samples/BackupRestore/src/com/example/android/backuprestore/
DBackupRestoreActivity.java164 Log.v(TAG, "datafile exists"); in populateUI()
168 Log.v(TAG, " mayo=" + addMayo in populateUI()
174 Log.v(TAG, "creating default datafile"); in populateUI()
201 Log.v(TAG, "New radio item selected: " + checkedId); in populateUI()
211 Log.v(TAG, "Checkbox toggled: " + buttonView); in populateUI()
229 Log.v(TAG, "NEW STATE: mayo=" + addMayo in writeDataToFileLocked()
259 public void onRestoreButtonClick(View v) { in onRestoreButtonClick() argument
260 Log.v(TAG, "Requesting restore of our most recent data"); in onRestoreButtonClick()
265 Log.v(TAG, "Restore finished, error = " + error); in onRestoreButtonClick()
/development/samples/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/
DFingerprintAuthenticationDialogFragment.java75 View v = inflater.inflate(R.layout.fingerprint_dialog_container, container, false); in onCreateView() local
76 mCancelButton = (Button) v.findViewById(R.id.cancel_button); in onCreateView()
84 mSecondDialogButton = (Button) v.findViewById(R.id.second_dialog_button); in onCreateView()
95 mFingerprintContent = v.findViewById(R.id.fingerprint_container); in onCreateView()
96 mBackupContent = v.findViewById(R.id.backup_container); in onCreateView()
97 mPassword = (EditText) v.findViewById(R.id.password); in onCreateView()
99 mPasswordDescriptionTextView = (TextView) v.findViewById(R.id.password_description); in onCreateView()
101 v.findViewById(R.id.use_fingerprint_in_future_check); in onCreateView()
103 v.findViewById(R.id.new_fingerprint_enrolled_description); in onCreateView()
106 (ImageView) v.findViewById(R.id.fingerprint_icon), in onCreateView()
[all …]
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DBaseActivityListFragment.java152 final View v = view.findViewById(R.id.launch); in bindView() local
154 v.setTag(ai); in bindView()
156 v.setOnClickListener(this); in bindView()
157 v.setVisibility(View.VISIBLE); in bindView()
160 final Button v = (Button) view.findViewById(R.id.action2); in bindView() local
161 v.setTag(ai); in bindView()
162 v.setVisibility(View.INVISIBLE); in bindView()
165 onBindAction2(v, ai, this); in bindView()
183 public void onClick(View v) { in onClick() argument
184 final LauncherActivityInfo ai = (LauncherActivityInfo) v.getTag(); in onClick()
[all …]
/development/samples/browseable/NavigationDrawer/src/com.example.android.navigationdrawer/
DPlanetAdapter.java47 public ViewHolder(TextView v) { in ViewHolder() argument
48 super(v); in ViewHolder()
49 mTextView = v; in ViewHolder()
61 View v = vi.inflate(R.layout.drawer_list_item, parent, false); in onCreateViewHolder() local
62 TextView tv = (TextView) v.findViewById(android.R.id.text1); in onCreateViewHolder()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DTitlesFragment.java115 public boolean onItemLongClick(AdapterView<?> av, View v, int pos, long id) { in onActivityCreated()
116 final String title = (String) ((TextView) v).getText(); in onActivityCreated()
121 v.startDrag(data, new MyDragShadowBuilder(v), null, 0); in onActivityCreated()
159 public void onListItemClick(ListView l, View v, int position, long id) { in onListItemClick() argument
188 public MyDragShadowBuilder(View v) { in MyDragShadowBuilder() argument
189 super(v); in MyDragShadowBuilder()
191 final TypedArray a = v.getContext().obtainStyledAttributes(R.styleable.AppTheme); in MyDragShadowBuilder()
193 mShadow.setCallback(v); in MyDragShadowBuilder()
194 mShadow.setBounds(0, 0, v.getWidth(), v.getHeight()); in MyDragShadowBuilder()
/development/tools/logblame/
Danalyze_logs.py201 for k,v in byTag.byCount():
202 WriteResult(totalCount, totalMemory, v, k)
211 for k,v in byTag.byMemory():
212 WriteResult(totalCount, totalMemory, v, k)
221 for k,v in byPid.byMemory():
222 WriteResult(totalCount, totalMemory, v,
232 for k,v in byText.byCount():
233 logLine = v.lines[0]
234 WriteResult(totalCount, totalMemory, v,
244 for k,v in byText.byCount():
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/view/
DChronometerDemo.java62 public void onClick(View v) {
68 public void onClick(View v) {
74 public void onClick(View v) {
80 public void onClick(View v) {
86 public void onClick(View v) {
/development/samples/browseable/DrawableTinting/src/com.example.android.drawabletinting/
DDrawableTintingFragment.java165 View v = inflater.inflate(R.layout.tinting_fragment, null); in onCreateView() local
168 mImage = (ImageView) v.findViewById(R.id.image); in onCreateView()
172 mAlphaBar = (SeekBar) v.findViewById(R.id.alphaSeek); in onCreateView()
173 mAlphaText = (TextView) v.findViewById(R.id.alphaText); in onCreateView()
174 mGreenBar = (SeekBar) v.findViewById(R.id.greenSeek); in onCreateView()
175 mGreenText = (TextView) v.findViewById(R.id.greenText); in onCreateView()
176 mRedBar = (SeekBar) v.findViewById(R.id.redSeek); in onCreateView()
177 mRedText = (TextView) v.findViewById(R.id.redText); in onCreateView()
178 mBlueText = (TextView) v.findViewById(R.id.blueText); in onCreateView()
179 mBlueBar = (SeekBar) v.findViewById(R.id.blueSeek); in onCreateView()
[all …]
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
DAuthenticator.java66 Log.v(TAG, "addAccount()"); in addAccount()
77 Log.v(TAG, "confirmCredentials()"); in confirmCredentials()
83 Log.v(TAG, "editProperties()"); in editProperties()
90 Log.v(TAG, "getAuthToken()"); in getAuthToken()
130 Log.v(TAG, "getAuthTokenLabel()"); in getAuthTokenLabel()
140 Log.v(TAG, "hasFeatures()"); in hasFeatures()
149 Log.v(TAG, "updateCredentials()"); in updateCredentials()
DAuthenticationService.java37 Log.v(TAG, "SampleSyncAdapter Authentication Service started."); in onCreate()
45 Log.v(TAG, "SampleSyncAdapter Authentication Service stopped."); in onDestroy()
52 Log.v(TAG, "getBinder()... returning the AccountAuthenticator binder for intent " in onBind()
/development/samples/browseable/AsymmetricFingerprintDialog/src/com.example.android.asymmetricfingerprintdialog/
DFingerprintAuthenticationDialogFragment.java100 View v = inflater.inflate(R.layout.fingerprint_dialog_container, container, false); in onCreateView() local
101 mCancelButton = (Button) v.findViewById(R.id.cancel_button); in onCreateView()
109 mSecondDialogButton = (Button) v.findViewById(R.id.second_dialog_button); in onCreateView()
120 mFingerprintContent = v.findViewById(R.id.fingerprint_container); in onCreateView()
121 mBackupContent = v.findViewById(R.id.backup_container); in onCreateView()
122 mPassword = (EditText) v.findViewById(R.id.password); in onCreateView()
124 mPasswordDescriptionTextView = (TextView) v.findViewById(R.id.password_description); in onCreateView()
126 v.findViewById(R.id.use_fingerprint_in_future_check); in onCreateView()
128 v.findViewById(R.id.new_fingerprint_enrolled_description); in onCreateView()
130 (ImageView) v.findViewById(R.id.fingerprint_icon), in onCreateView()
[all …]

12345678910>>...18