/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
ContactRecipientAdapter.java | 382 * the {@link BaseRecipientAdapter}. Please notice that we need to fix the position 387 public View getView(int position, View convertView, ViewGroup parent) { 389 if (isDirectoryEntry(position)) { 398 return super.getView(fixPosition(position), convertView, parent); 402 public RecipientEntry getItem(int position) { 403 if (isDirectoryEntry(position)) { 406 return super.getItem(fixPosition(position)); 415 public int getItemViewType(int position) { 416 if (isDirectoryEntry(position)) { 419 return super.getItemViewType(fixPosition(position)); [all...] |
/dalvik/dx/src/com/android/dx/rop/code/ |
Insn.java | 34 /** {@code non-null;} source position */ 35 private final SourcePosition position; field in class:Insn 47 * @param position {@code non-null;} source position 51 public Insn(Rop opcode, SourcePosition position, RegisterSpec result, 57 if (position == null) { 58 throw new NullPointerException("position == null"); 66 this.position = position; 129 * Gets the source position [all...] |
/developers/build/prebuilts/gradle/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/ |
ScanResultAdapter.java | 55 public Object getItem(int position) { 56 return mArrayList.get(position); 60 public long getItemId(int position) { 61 return mArrayList.get(position).getDevice().getAddress().hashCode(); 65 public View getView(int position, View view, ViewGroup parent) { 76 ScanResult scanResult = mArrayList.get(position); 93 int position = -1; local 96 position = i; 100 return position; 106 * Otherwise updates the existing position with the new ScanResult [all...] |
/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
RecipeListAdapter.java | 99 public Object getItem(int position) { 100 return mItems.get(position); 104 public long getItemId(int position) { 109 public int getItemViewType(int position) { 114 public View getView(int position, View convertView, ViewGroup parent) { 120 Item item = (Item) getItem(position); 166 public boolean isEnabled(int position) { 170 public String getItemName(int position) { 171 return mItems.get(position).name;
|
/developers/samples/android/connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/ |
ScanResultAdapter.java | 55 public Object getItem(int position) { 56 return mArrayList.get(position); 60 public long getItemId(int position) { 61 return mArrayList.get(position).getDevice().getAddress().hashCode(); 65 public View getView(int position, View view, ViewGroup parent) { 76 ScanResult scanResult = mArrayList.get(position); 93 int position = -1; local 96 position = i; 100 return position; 106 * Otherwise updates the existing position with the new ScanResult [all...] |
/developers/samples/android/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/ |
RecipeListAdapter.java | 99 public Object getItem(int position) { 100 return mItems.get(position); 104 public long getItemId(int position) { 109 public int getItemViewType(int position) { 114 public View getView(int position, View convertView, ViewGroup parent) { 120 Item item = (Item) getItem(position); 166 public boolean isEnabled(int position) { 170 public String getItemName(int position) { 171 return mItems.get(position).name;
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
Transition3d.java | 83 * @param position the item that was clicked to show a picture, or -1 to show the list 87 private void applyRotation(int position, float start, float end) { 99 rotation.setAnimationListener(new DisplayNextView(position)); 104 public void onItemClick(AdapterView<?> parent, View v, int position, long id) { 106 mImageView.setImageResource(PHOTOS_RESOURCES[position]); 107 applyRotation(position, 0, 90); 122 private DisplayNextView(int position) { 123 mPosition = position; 144 public SwapViews(int position) { 145 mPosition = position; [all...] |
/development/samples/browseable/BluetoothAdvertisements/src/com.example.android.bluetoothadvertisements/ |
ScanResultAdapter.java | 55 public Object getItem(int position) { 56 return mArrayList.get(position); 60 public long getItemId(int position) { 61 return mArrayList.get(position).getDevice().getAddress().hashCode(); 65 public View getView(int position, View view, ViewGroup parent) { 76 ScanResult scanResult = mArrayList.get(position); 93 int position = -1; local 96 position = i; 100 return position; 106 * Otherwise updates the existing position with the new ScanResult [all...] |
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/ |
RecipeListAdapter.java | 99 public Object getItem(int position) { 100 return mItems.get(position); 104 public long getItemId(int position) { 109 public int getItemViewType(int position) { 114 public View getView(int position, View convertView, ViewGroup parent) { 120 Item item = (Item) getItem(position); 166 public boolean isEnabled(int position) { 170 public String getItemName(int position) { 171 return mItems.get(position).name;
|
/device/google/accessory/demokit/app/src/com/google/android/DemoKit/ |
Slider.java | 43 public void setPosition(double position) { 44 if (mPosition != position) { 46 mPosition = position; 58 double position; 61 position = Math.max(0, (r.bottom - y) / r.height()); 64 position = Math.max(0, (x - r.left) / r.width()); 66 position = Math.min(1, position); 67 setPosition(position);
|
/external/dexmaker/src/dx/java/com/android/dx/rop/code/ |
Insn.java | 34 /** {@code non-null;} source position */ 35 private final SourcePosition position; field in class:Insn 47 * @param position {@code non-null;} source position 51 public Insn(Rop opcode, SourcePosition position, RegisterSpec result, 57 if (position == null) { 58 throw new NullPointerException("position == null"); 66 this.position = position; 129 * Gets the source position [all...] |
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/ |
jsilver.sablecc | 196 {->New command.comment(New position.cs_open(cs_open),comment)} 201 New position.cs_open(cs_open), 207 New position.cs_open(cs_open), 213 New position.cs_open(cs_open), 219 New position.cs_open(cs_open), 225 New position.cs_open(cs_open), 232 New position.cs_open(cs_open), 240 New position.cs_open(cs_open), 249 New position.cs_open(cs_open), 258 New position.cs_open(cs_open) [all...] |
/external/mockito/cglib-and-asm/src/org/mockito/asm/ |
Label.java | 33 * A label represents a position in the bytecode of a method. Labels are used
49 * Indicates if the position of this label is known.
129 * The position of this label in the code, if known.
131 int position;
field in class:Label 141 * position of the first byte of the bytecode instruction that contains the
142 * forward reference, while the second is the position of the first byte of
145 * gives the position of the bytecode instruction. This array is also used
216 * does not contain successive labels that denote the same bytecode position
262 throw new IllegalStateException("Label offset position has not been resolved yet");
264 return position;
[all...] |
/external/opencv3/samples/gpu/ |
generalized_hough.cpp | 39 "{ posThresh | 100 | position votes threshold }" 125 vector<Vec4f> position; local 139 d_position.download(position); 149 alg->detect(image, position); 154 cout << "Found : " << position.size() << " objects" << endl; 160 for (size_t i = 0; i < position.size(); ++i) 162 Point2f pos(position[i][0], position[i][1]); 163 float scale = position[i][2]; 164 float angle = position[i][3] [all...] |
/external/replicaisland/src/com/replica/replicaisland/ |
SphereCollisionVolume.java | 85 public boolean intersects(Vector2 position, FlipInfo flip, CollisionVolume other, 91 result = other.intersects(otherPosition, otherFlip, this, position, flip); 93 mWorkspaceVector.set(position); 159 private static void offsetByCenter(Vector2 position, Vector2 center, FlipInfo flip) { 162 position.x += flip.parentWidth - center.x; 164 position.x += center.x; 168 position.y += flip.parentHeight - center.y; 170 position.y += center.y; 173 position.add(center);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowListView.java | 60 public boolean performItemClick(View view, int position, long id) { 66 boolean newValue = !checkedItemPositions.get(position, false); 67 checkedItemPositions.put(position, newValue); 69 boolean newValue = !checkedItemPositions.get(position, false); 72 checkedItemPositions.put(position, true); 77 handled |= super.performItemClick(view, position, id); 185 public void setItemChecked(int position, boolean value) { 188 checkedItemPositions.put(position, value); 190 checkedItemPositions.put(position, value);
|
/frameworks/base/packages/Osu/src/com/android/anqp/ |
OSUProvider.java | 42 namesBuffer.limit(namesBuffer.position() + namesLength); 43 payload.position(payload.position() + namesLength); 64 iconsBuffer.limit(iconsBuffer.position() + iconsLength); 65 payload.position(payload.position() + iconsLength); 77 descriptionsBuffer.limit(descriptionsBuffer.position() + descriptionsLength); 78 payload.position(payload.position() + descriptionsLength);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/ |
OSUProvider.java | 39 namesBuffer.limit(namesBuffer.position() + namesLength); 40 payload.position(payload.position() + namesLength); 61 iconsBuffer.limit(iconsBuffer.position() + iconsLength); 62 payload.position(payload.position() + iconsLength); 74 descriptionsBuffer.limit(descriptionsBuffer.position() + descriptionsLength); 75 payload.position(payload.position() + descriptionsLength);
|
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/ |
GridActivity.java | 46 void onBind(RecyclerView.ViewHolder vh, int position); 64 * view types for each position. 120 public void onChildSelected(ViewGroup parent, View view, int position, long id) { 121 if (DEBUG) Log.d(TAG, "onChildSelected position=" + position + " id="+id); 205 int position = intent.getIntExtra("SELECT_POSITION", -1); local 206 if (position >= 0) { 207 mGridView.setSelectedPosition(position); 224 int position = vh.getAdapterPosition(); 225 updateSize(v, position); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
FileLockTest.java | 42 protected MockFileLock(FileChannel channel, long position, long size, 44 super(channel, position, size, shared); 110 * @tests java.nio.channels.FileLock#position() 114 assertEquals(20, fileLock1.position()); 116 final long position = ((long) Integer.MAX_VALUE + 1); local 117 FileLock fileLock2 = new MockFileLock(readWriteChannel, position, 100, 119 assertEquals(position, fileLock2.position()); 129 final long position = 0x0FFFFFFFFFFFFFFFL; local 131 FileLock fileLock2 = new MockFileLock(readWriteChannel, position, size [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/ |
streams.rb | 96 to a recognizer at look-ahead position specified by <tt>k</tt>. For 103 look-ahead position specified by <tt>k</tt>. While <tt>peek</tt> provides the 136 <tt>stream.seek(position)</tt> moves the stream cursor to an absolute position 139 position seeking. 178 # position specified by <tt>k</tt> (such as integer value of a character or an 184 # used to retreive the full object of interest at lookahead position specified 190 # saves the current position for the purposes of backtracking and 196 # returns the current position of the stream 201 # restores the stream position using the state information previously save [all...] |
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
CipherSpiTest.java | 134 bb1.position(0); 146 bb1.position(len); 150 bb1.position(0); 151 bb2.position(len - 2); 158 bb1.position(10); 159 bb2.position(0); 162 bb1.position(bb.length); 165 bb1.position(pos); 166 bb2.position(0); 198 bb1.position(bb1.limit()) [all...] |
/external/chromium-trace/catapult/third_party/flot/ |
jquery.flot.canvas.js | 96 for (var i = 0, position; position = positions[i]; i++) { 97 if (position.active) { 98 for (var j = 0, line; line = position.lines[j]; j++) { 193 .css("position", "absolute") 277 // for by adding half a line's height to the y position. 281 // Tweak the initial y-position to match vertical alignment 301 // Determine whether this text already exists at this position. 304 for (var i = 0, position; position = positions[i]; i++) [all...] |
jquery.flot.canvas.min.js | 7 (function($){var options={canvas:true};var render,getTextInfo,addText;var hasOwnProperty=Object.prototype.hasOwnProperty;function init(plot,classes){var Canvas=classes.Canvas;if(render==null){getTextInfo=Canvas.prototype.getTextInfo,addText=Canvas.prototype.addText,render=Canvas.prototype.render}Canvas.prototype.render=function(){if(!plot.getOptions().canvas){return render.call(this)}var context=this.context,cache=this._textCache;context.save();context.textBaseline="middle";for(var layerKey in cache){if(hasOwnProperty.call(cache,layerKey)){var layerCache=cache[layerKey];for(var styleKey in layerCache){if(hasOwnProperty.call(layerCache,styleKey)){var styleCache=layerCache[styleKey],updateStyles=true;for(var key in styleCache){if(hasOwnProperty.call(styleCache,key)){var info=styleCache[key],positions=info.positions,lines=info.lines;if(updateStyles){context.fillStyle=info.font.color;context.font=info.font.definition;updateStyles=false}for(var i=0,position;position=positions[i];i++){if(position.active){for(var j=0,line;line=position.lines[j];j++){context.fillText(lines[j].text,line[0],line[1])}}else{positions.splice(i--,1)}}if(positions.length==0){delete styleCache[key]}}}}}}}context.restore()};Canvas.prototype.getTextInfo=function(layer,text,font,angle,width){if(!plot.getOptions().canvas){return getTextInfo.call(this,layer,text,font,angle,width)}var textStyle,layerCache,styleCache,info;text=""+text;if(typeof font==="object"){textStyle=font.style+" "+font.variant+" "+font.weight+" "+font.size+"px "+font.family}else{textStyle=font}layerCache=this._textCache[layer];if(layerCache==null){layerCache=this._textCache[layer]={}}styleCache=layerCache[textStyle];if(styleCache==null){styleCache=layerCache[textStyle]={}}info=styleCache[text];if(info==null){var context=this.context;if(typeof font!=="object"){var element=$("<div> </div>").css("position","absolute").addClass(typeof font==="string"?font:null).appendTo(this.getTextLayer(layer));font={lineHeight:element.height(),style:element.css("font-style"),variant:element.css("font-variant"),weight:element.css("font-weight"),family:element.css("font-family"),color:element.css("color")};font.size=element.css("line-height",1).height();element.remove()}textStyle=font.style+" "+font.variant+" "+font.weight+" "+font.size+"px "+font.family;info=styleCache[text]={width:0,height:0,positions:[],lines:[],font:{definition:textStyle,color:font.color}};context.save();context.font=textStyle;var lines=(text+"").replace(/<br ?\/?>|\r\n|\r/g,"\n").split("\n");for(var i=0;i<lines.length;++i){var lineText=lines[i],measured=context.measureText(lineText);info.width=Math.max(measured.width,info.width);info.height+=font.lineHeight;info.lines.push({text:lineText,width:measured.width,height:font.lineHeight})}context.restore()}return info};Canvas.prototype.addText=function(layer,x,y,text,font,angle,width,halign,valign){if(!plot.getOptions().canvas){return addText.call(this,layer,x,y,text,font,angle,width,halign,valign)}var info=this.getTextInfo(layer,text,font,angle,width),positions=info.positions,lines=info.lines;y+=info.height/lines.length/2;if(valign=="middle"){y=Math.round(y-info.height/2)}else if(valign=="bottom"){y=Math.round(y-info.height)}else{y=Math.round(y)}if(!!(window.opera&&window.opera.version().split(".")[0]<12)){y-=2}for(var i=0,position;position=positions[i];i++){if(position.x==x&&position.y==y){position.active=true;return}}position={active:true,lines:[],x:x,y:y};positions.push(position);for(var i=0,l (…) [all...] |
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
NavigationView.java | 82 AdapterView<?> parent, View view, int position, long id) { 83 onBreadcrumbItemSelected(position); 98 private void onBreadcrumbItemSelected(int position) { 104 while (mState.stack.size() > position + 1) { 182 public DocumentInfo getItem(int position) { 183 return mState.stack.get(mState.stack.size() - position - 1); 187 public long getItemId(int position) { 188 return position; 192 public View getView(int position, View convertView, ViewGroup parent) { 199 final DocumentInfo doc = getItem(position); [all...] |