/developers/samples/android/connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/ |
D | AdvertiserFragment.java | 139 private static Intent getServiceIntent(Context c) { in getServiceIntent() argument 140 return new Intent(c, AdvertiserService.class); in getServiceIntent() 162 Context c = getActivity(); in startAdvertising() local 163 c.startService(getServiceIntent(c)); in startAdvertising() 170 Context c = getActivity(); in stopAdvertising() local 171 c.stopService(getServiceIntent(c)); in stopAdvertising()
|
/developers/samples/android/connectivity/nfc/CardEmulation/Application/src/main/java/com/example/android/cardemulation/ |
D | AccountStorage.java | 39 public static void SetAccount(Context c, String s) { in SetAccount() argument 42 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(c); in SetAccount() 48 public static String GetAccount(Context c) { in GetAccount() argument 51 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(c); in GetAccount()
|
/developers/samples/android/sensors/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/ |
D | BatchStepSensorFragment.java | 488 Card c = new Card.Builder(this, CARD_INTRO) in showIntroCard() local 492 getCardStream().addCard(c, true); in showIntroCard() 521 Card c = new Card.Builder(this, CARD_COUNTING) in initialiseCards() local 526 getCardStream().addCard(c); in initialiseCards() 529 c = new Card.Builder(this, CARD_REGISTER_DETECTOR) in initialiseCards() 539 getCardStream().addCard(c); in initialiseCards() 542 c = new Card.Builder(this, CARD_REGISTER_COUNTER) in initialiseCards() 552 getCardStream().addCard(c); in initialiseCards() 556 c = new Card.Builder(this, CARD_BATCHING_DESCRIPTION) in initialiseCards() 562 getCardStream().addCard(c); in initialiseCards() [all …]
|
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/ |
D | SyncAdapter.java | 223 Cursor c = contentResolver.query(uri, PROJECTION, null, null, null); in updateLocalFeedData() local 224 assert c != null; in updateLocalFeedData() 225 Log.i(TAG, "Found " + c.getCount() + " local entries. Computing merge solution..."); in updateLocalFeedData() 233 while (c.moveToNext()) { in updateLocalFeedData() 235 id = c.getInt(COLUMN_ID); in updateLocalFeedData() 236 entryId = c.getString(COLUMN_ENTRY_ID); in updateLocalFeedData() 237 title = c.getString(COLUMN_TITLE); in updateLocalFeedData() 238 link = c.getString(COLUMN_LINK); in updateLocalFeedData() 239 published = c.getLong(COLUMN_PUBLISHED); in updateLocalFeedData() 270 c.close(); in updateLocalFeedData()
|
D | EntryListFragment.java | 279 Cursor c = (Cursor) mAdapter.getItem(position); in onListItemClick() local 281 String articleUrlString = c.getString(COLUMN_URL_STRING); in onListItemClick()
|
/developers/samples/android/system/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/camera/ |
D | CameraPreviewActivity.kt | 80 var c: Camera? = null in getCameraInstance() variable 82 c = Camera.open(cameraId) // attempt to get a Camera instance in getCameraInstance() 88 return c // returns null if camera is unavailable in getCameraInstance()
|
/developers/samples/android/input/autofill/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/view/autofillable/ |
D | CreditCardExpirationDatePickerView.java | 90 Calendar c = getCalendar(); in getAutofillValue() local 91 AutofillValue value = AutofillValue.forDate(c.getTimeInMillis()); in getAutofillValue() 147 Calendar c = mParent.getCalendar(); in onCreateDialog() local 148 datePicker.setMinDate(c.getTimeInMillis()); in onCreateDialog() 149 c.set(Calendar.YEAR, mParent.mYear + CC_EXP_YEARS_COUNT - 1); in onCreateDialog() 150 datePicker.setMaxDate(c.getTimeInMillis()); in onCreateDialog()
|
/developers/samples/android/system/RuntimePermissionsBasic/Application/src/main/java/com/example/android/basicpermissions/camera/ |
D | CameraPreviewActivity.java | 86 Camera c = null; in getCameraInstance() local 88 c = Camera.open(cameraId); // attempt to get a Camera instance in getCameraInstance() 93 return c; // returns null if camera is unavailable in getCameraInstance()
|
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/ |
D | WeatherDataProvider.java | 89 final MatrixCursor c = new MatrixCursor( in query() local 93 c.addRow(new Object[]{ new Integer(i), data.day, new Integer(data.degrees) }); in query() 95 return c; in query() 123 final MatrixCursor c = new MatrixCursor( in update() local
|
D | WeatherWidgetProvider.java | 116 final Cursor c = r.query(WeatherDataProvider.CONTENT_URI, null, null, null, in onReceive() 118 final int count = c.getCount(); in onReceive() 191 Cursor c = context.getContentResolver().query(WeatherDataProvider.CONTENT_URI, null, in buildLayout() local 193 if (c.moveToPosition(0)) { in buildLayout() 194 int tempColIndex = c.getColumnIndex(WeatherDataProvider.Columns.TEMPERATURE); in buildLayout() 195 int temp = c.getInt(tempColIndex); in buildLayout() 201 c.close(); in buildLayout()
|
/developers/samples/android/system/RuntimePermissions/Application/src/main/java/com/example/android/system/runtimepermissions/camera/ |
D | CameraPreviewFragment.java | 62 Camera c = null; in getCameraInstance() local 64 c = Camera.open(cameraId); // attempt to get a Camera instance in getCameraInstance() 69 return c; // returns null if camera is unavailable in getCameraInstance()
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/ |
D | DividerItemDecoration.java | 35 public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDraw() argument 48 mDrawable.draw(c); in onDraw()
|
/developers/samples/android/deprecated/wearable/wear/SkeletonWearableApp/Wearable/src/main/java/com/example/android/google/wearable/app/ |
D | GridExampleActivity.java | 88 Canvas c = new Canvas(bm); in getBackgroundForPage() local 91 c.drawRect(0, 0, 200, 200, p); in getBackgroundForPage() 97 c.drawText(column+ "-" + row, 100, 100, p); in getBackgroundForPage()
|
/developers/samples/android/connectivity/nfc/CardEmulation/Application/tests/src/com/example/android/cardemulation/tests/ |
D | SampleTests.java | 135 final byte[] c = {(byte) 0x05, (byte) 0x06}; in testArrayConcat() 138 final byte[] result = CardService.ConcatArrays(a, b, c); in testArrayConcat()
|
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/ |
D | CardStreamFragment.java.ftl | 230 for (Card c : state.hiddenCards) { 231 Card card = new Card.Builder(callback,c).build(getActivity()); 239 for (Card c : state.visibleCards) { 240 Card card = new Card.Builder(callback,c).build(getActivity()); 267 for (Card c : cards) { 268 cardArray[i++] = c.createShallowClone();
|
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/ |
D | MockDatabase.java | 103 for (Chat c : chats) { in findChat() 104 if (c.getId().equals(chatId)) { in findChat() 105 return c; in findChat()
|
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/provider/ |
D | FeedProvider.java | 106 Cursor c = builder.query(db, projection, sortOrder); in query() local 111 c.setNotificationUri(ctx.getContentResolver(), uri); in query() 112 return c; in query()
|
/developers/samples/android/sensors/AccelerometerPlay/app/src/main/java/com/example/android/accelerometerplay/ |
D | AccelerometerPlayActivity.java | 284 final float c = (0.5f * (sBallDiameter - d)) / d; in update() local 285 final float effectX = dx * c; in update() 286 final float effectY = dy * c; in update()
|
/developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/ |
D | AlarmAdapter.java | 175 public void onDrawOver(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDrawOver() argument 185 mDivider.draw(c); in onDrawOver()
|
/developers/samples/android/ui/graphics/DisplayingBitmaps/Application/src/main/java/com/example/android/displayingbitmaps/util/ |
D | DiskLruCache.java | 220 int c = in.read(); in readAsciiLine() local 221 if (c == -1) { in readAsciiLine() 223 } else if (c == '\n') { in readAsciiLine() 227 result.append((char) c); in readAsciiLine()
|
/developers/samples/android/ui/graphics/PdfRendererBasic/kotlinApp/ |
D | LICENSE | 102 (c) You must retain, in the Source form of any Derivative Works 298 c. BY-NC-SA Compatible License means a license listed at 411 c. No downstream restrictions. You may not offer or impose 480 c. indicate the Licensed Material is licensed under this 530 c. You must comply with the conditions in Section 3(a) if You Share 561 c. The disclaimer of warranties and limitation of liability provided 587 c. For the avoidance of doubt, the Licensor may also offer the 620 c. No term or condition of this Public License will be waived and no
|
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/ |
D | LICENSE | 102 (c) You must retain, in the Source form of any Derivative Works 298 c. BY-NC-SA Compatible License means a license listed at 411 c. No downstream restrictions. You may not offer or impose 480 c. indicate the Licensed Material is licensed under this 530 c. You must comply with the conditions in Section 3(a) if You Share 561 c. The disclaimer of warranties and limitation of liability provided 587 c. For the avoidance of doubt, the Licensor may also offer the 620 c. No term or condition of this Public License will be waived and no
|
/developers/samples/android/media/PictureInPicture/kotlinApp/ |
D | LICENSE | 102 (c) You must retain, in the Source form of any Derivative Works 298 c. BY-NC-SA Compatible License means a license listed at 411 c. No downstream restrictions. You may not offer or impose 480 c. indicate the Licensed Material is licensed under this 530 c. You must comply with the conditions in Section 3(a) if You Share 561 c. The disclaimer of warranties and limitation of liability provided 587 c. For the avoidance of doubt, the Licensor may also offer the 620 c. No term or condition of this Public License will be waived and no
|
/developers/samples/android/notification/NotificationChannels/kotlinApp/ |
D | LICENSE | 102 (c) You must retain, in the Source form of any Derivative Works 298 c. BY-NC-SA Compatible License means a license listed at 411 c. No downstream restrictions. You may not offer or impose 480 c. indicate the Licensed Material is licensed under this 530 c. You must comply with the conditions in Section 3(a) if You Share 561 c. The disclaimer of warranties and limitation of liability provided 587 c. For the avoidance of doubt, the Licensor may also offer the 620 c. No term or condition of this Public License will be waived and no
|
/developers/samples/android/content/documentsUi/ContentProviderPaging/kotlinApp/ |
D | LICENSE | 102 (c) You must retain, in the Source form of any Derivative Works 298 c. BY-NC-SA Compatible License means a license listed at 411 c. No downstream restrictions. You may not offer or impose 480 c. indicate the Licensed Material is licensed under this 530 c. You must comply with the conditions in Section 3(a) if You Share 561 c. The disclaimer of warranties and limitation of liability provided 587 c. For the avoidance of doubt, the Licensor may also offer the 620 c. No term or condition of this Public License will be waived and no
|