Home
last modified time | relevance | path

Searched refs:getPackageName (Results 1 – 25 of 65) sorted by relevance

123

/development/samples/browseable/AppUsageStatistics/src/com.example.android.appusagestatistics/
DUsageListAdapter.java59 public TextView getPackageName() { in getPackageName() method in UsageListAdapter.ViewHolder
80 viewHolder.getPackageName().setText( in onBindViewHolder()
81 mCustomUsageStatsList.get(position).usageStats.getPackageName()); in onBindViewHolder()
DAppUsageStatisticsFragment.java175 .getApplicationIcon(customUsageStats.usageStats.getPackageName()); in updateAppsList()
179 customUsageStats.usageStats.getPackageName())); in updateAppsList()
/development/samples/browseable/WearDrawers/src/com.example.android.wearable.wear.weardrawers/
DMainActivity.java72 "drawable", getPackageName()); in onCreate()
119 getResources().getIdentifier(planet, "array", getPackageName()); in initializeSolarSystem()
192 getResources().getIdentifier(selectedPlanetImage, "drawable", getPackageName()); in onItemSelected()
206 getResources().getIdentifier(navigationIcon, "drawable", getPackageName()); in getItemDrawable()
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/
DUtils.java49 return context.getPackageName().equals(Telephony.Sms.getDefaultSmsPackage(context)); in isDefaultSmsApp()
64 intent.putExtra(Intents.EXTRA_PACKAGE_NAME, context.getPackageName()); in setDefaultSmsApp()
/development/samples/SoftKeyboard/src/com/android/inputmethodcommon/
DInputMethodSettingsImpl.java92 if (imis.get(i).getPackageName().equals(context.getPackageName())) { in getMyImi()
110 sb.append(subtype.getDisplayName(context, imi.getPackageName(), in getEnabledSubtypesLabel()
/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DAppListFragment.java41 mQuery.setPackage(ai.getComponentName().getPackageName()); in onBindAction2()
68 ai.getComponentName().getPackageName(), in onAction2()
/development/samples/browseable/CustomNotifications/src/com.example.android.customnotifications/
DMainActivity.java76 RemoteViews contentView = new RemoteViews(getPackageName(), R.layout.notification); in createNotification()
97 new RemoteViews(getPackageName(), R.layout.notification_expanded); in createNotification()
/development/samples/Wiktionary/src/com/example/android/wiktionary/
DWordWidget.java106 views = new RemoteViews(context.getPackageName(), R.layout.widget_word); in buildUpdate()
123 views = new RemoteViews(context.getPackageName(), R.layout.widget_message); in buildUpdate()
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/
DWordWidget.java97 updateViews = new RemoteViews(context.getPackageName(), R.layout.widget_word); in buildUpdate()
114 updateViews = new RemoteViews(context.getPackageName(), R.layout.widget_message); in buildUpdate()
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/
DMainActivity.java33 if (manager.isProfileOwnerApp(getApplicationContext().getPackageName())) { in onCreate()
DSetupProfileFragment.java77 activity.getApplicationContext().getPackageName()); in provisionManagedProfile()
/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/utils/
DResourceHelper.java38 String packageName = context.getPackageName(); in getThemeColor()
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/
DMainActivity.java37 if (manager.isDeviceOwnerApp(getApplicationContext().getPackageName())) { in onCreate()
/development/samples/browseable/DirectShare/src/com.example.android.directshare/
DSampleChooserTargetService.java37 ComponentName componentName = new ComponentName(getPackageName(), in onGetChooserTargets()
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
DCubeWallpaper2.java117 int pid = getResources().getIdentifier(prefix + "points", "array", getPackageName()); in readModel()
118 int lid = getResources().getIdentifier(prefix + "lines", "array", getPackageName()); in readModel()
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DMainActivity.java37 if (!devicePolicyManager.isProfileOwnerApp(getApplicationContext().getPackageName())) { in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/media/
DVideoViewDemo.java40 initPlayer(Uri.parse("android.resource://" + getPackageName() + in onCreate()
/development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/
DMainActivity.java94 getApplicationContext().getPackageName(), in onCreate()
95 getApplicationContext().getPackageName() in onCreate()
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/
DWeatherWidgetProvider.java160 rv = new RemoteViews(context.getPackageName(), R.layout.widget_layout); in buildLayout()
188 rv = new RemoteViews(context.getPackageName(), R.layout.widget_layout_small); in buildLayout()
DWeatherWidgetService.java86 RemoteViews rv = new RemoteViews(mContext.getPackageName(), itemId); in getViewAt()
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DAMControl.java40 cmd.append(target.getPackageName()).append("/").append(target.getShortClassName()); in launchInBackground()
/development/samples/StackWidget/src/com/example/android/stackwidget/
DStackWidgetService.java81 RemoteViews rv = new RemoteViews(mContext.getPackageName(), R.layout.widget_item); in getViewAt()
/development/apps/BuildWidget/src/com/android/buildwidget/
DBuildWidget.java65 context.getPackageName(), R.layout.widget); in buildUpdate()
/development/samples/browseable/FindMyPhone/Application/src/com.example.android.wearable.findphone/
DSoundAlarmListenerService.java68 Log.d(TAG, "onDataChanged: " + dataEvents + " for " + getPackageName()); in onDataChanged()
/development/samples/ApiDemos/src/com/example/android/apis/appwidget/
DExampleAppWidgetProvider.java114 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.appwidget_provider); in updateAppWidget()

123