Home
last modified time | relevance | path

Searched refs:params (Results 1 – 25 of 63) sorted by relevance

123

/development/samples/browseable/JobScheduler/src/com.example.android.jobscheduler/service/
DMyJobService.java70 public boolean onStartJob(final JobParameters params) { in onStartJob() argument
74 sendMessage(MSG_COLOR_START, params.getJobId()); in onStartJob()
76 long duration = params.getExtras().getLong(WORK_DURATION_KEY); in onStartJob()
83 sendMessage(MSG_COLOR_STOP, params.getJobId()); in onStartJob()
84 jobFinished(params, false); in onStartJob()
87 Log.i(TAG, "on start job: " + params.getJobId()); in onStartJob()
94 public boolean onStopJob(JobParameters params) { in onStopJob() argument
96 sendMessage(MSG_COLOR_STOP, params.getJobId()); in onStopJob()
97 Log.i(TAG, "on stop job: " + params.getJobId()); in onStopJob()
103 private void sendMessage(int messageID, @Nullable Object params) { in sendMessage() argument
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
DMatrixTrackingGL.java236 public void glFogfv(int pname, float[] params, int offset) { in glFogfv() argument
237 mgl.glFogfv(pname, params, offset); in glFogfv()
240 public void glFogfv(int pname, FloatBuffer params) { in glFogfv() argument
241 mgl.glFogfv(pname, params); in glFogfv()
248 public void glFogxv(int pname, int[] params, int offset) { in glFogxv() argument
249 mgl.glFogxv(pname, params, offset); in glFogxv()
252 public void glFogxv(int pname, IntBuffer params) { in glFogxv() argument
253 mgl.glFogxv(pname, params); in glFogxv()
287 public void glGetIntegerv(int pname, int[] params, int offset) { in glGetIntegerv() argument
288 mgl.glGetIntegerv(pname, params, offset); in glGetIntegerv()
[all …]
/development/samples/devbytes/animation/CurvedMotion/src/com/example/android/curvedmotion/
DCurvedMotion.java96 LayoutParams params = (LayoutParams) mButton.getLayoutParams(); in moveButton() local
98 params.removeRule(RelativeLayout.ALIGN_PARENT_LEFT); in moveButton()
99 params.removeRule(RelativeLayout.ALIGN_PARENT_TOP); in moveButton()
100 params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); in moveButton()
101 params.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); in moveButton()
103 params.addRule(RelativeLayout.ALIGN_PARENT_LEFT); in moveButton()
104 params.addRule(RelativeLayout.ALIGN_PARENT_TOP); in moveButton()
105 params.removeRule(RelativeLayout.ALIGN_PARENT_RIGHT); in moveButton()
106 params.removeRule(RelativeLayout.ALIGN_PARENT_BOTTOM); in moveButton()
108 mButton.setLayoutParams(params); in moveButton()
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/
DSignatureSourcerTest.java74 ArrayList<SignatureSourcer> params = mSourcer.getParameters(); in testSimpleArg() local
75 Assert.assertNotNull(params); in testSimpleArg()
77 String[] array = toStringArray(params); in testSimpleArg()
127 ArrayList<SignatureSourcer> params = mSourcer.getParameters(); in testManyArgs() local
128 Assert.assertNotNull(params); in testManyArgs()
130 String[] array = toStringArray(params); in testManyArgs()
139 private String[] toStringArray(ArrayList<?> params) { in toStringArray() argument
140 String[] array = new String[params.size()]; in toStringArray()
141 for (int i = 0; i < params.size(); i++) { in toStringArray()
142 array[i] = params.get(i).toString(); in toStringArray()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DOverlayWindowActivity.java109 LayoutParams params = new LayoutParams(); in drawOverlay() local
111 params.type = (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) in drawOverlay()
114 params.flags = WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE in drawOverlay()
117 params.format = PixelFormat.TRANSPARENT; in drawOverlay()
119 params.width = LayoutParams.WRAP_CONTENT; in drawOverlay()
120 params.height = LayoutParams.WRAP_CONTENT; in drawOverlay()
122 params.gravity = Gravity.TOP | Gravity.RIGHT; in drawOverlay()
124 params.x = 10; in drawOverlay()
125 params.y = 10; in drawOverlay()
127 wm.addView(textView, params); in drawOverlay()
DInternalSelectionFocus.java52 LinearLayout.LayoutParams params = new LinearLayout.LayoutParams(0, in onCreate() local
56 leftColumn.setLayoutParams(params); in onCreate()
61 middleColumn.setLayoutParams(params); in onCreate()
66 rightColumn.setLayoutParams(params); in onCreate()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/client/
DNetworkUtilities.java28 import org.apache.http.conn.params.ConnManagerParams;
31 import org.apache.http.params.HttpConnectionParams;
32 import org.apache.http.params.HttpParams;
89 final HttpParams params = httpClient.getParams(); in getHttpClient() local
90 HttpConnectionParams.setConnectionTimeout(params, HTTP_REQUEST_TIMEOUT_MS); in getHttpClient()
91 HttpConnectionParams.setSoTimeout(params, HTTP_REQUEST_TIMEOUT_MS); in getHttpClient()
92 ConnManagerParams.setTimeout(params, HTTP_REQUEST_TIMEOUT_MS); in getHttpClient()
107 final ArrayList<NameValuePair> params = new ArrayList<NameValuePair>(); in authenticate() local
108 params.add(new BasicNameValuePair(PARAM_USERNAME, username)); in authenticate()
109 params.add(new BasicNameValuePair(PARAM_PASSWORD, password)); in authenticate()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/content/
DMediaContentJob.java81 public boolean onStartJob(JobParameters params) { in onStartJob() argument
83 mRunningParams = params; in onStartJob()
86 if (params.getTriggeredContentAuthorities() != null) { in onStartJob()
89 for (String auth : params.getTriggeredContentAuthorities()) { in onStartJob()
97 if (params.getTriggeredContentUris() != null) { in onStartJob()
98 for (Uri uri : params.getTriggeredContentUris()) { in onStartJob()
113 public boolean onStopJob(JobParameters params) { in onStopJob() argument
DPhotosContentJob.java116 public boolean onStartJob(JobParameters params) { in onStartJob() argument
118 mRunningParams = params; in onStartJob()
124 if (params.getTriggeredContentAuthorities() != null) { in onStartJob()
127 if (params.getTriggeredContentUris() != null) { in onStartJob()
132 for (Uri uri : params.getTriggeredContentUris()) { in onStartJob()
208 public boolean onStopJob(JobParameters params) { in onStopJob() argument
/development/samples/ApiDemos/src/com/example/android/apis/app/
DJobWorkService.java59 CommandProcessor(JobParameters params) { in CommandProcessor() argument
60 mParams = params; in CommandProcessor()
64 protected Void doInBackground(Void... params) { in doInBackground() argument
112 public boolean onStartJob(JobParameters params) { in onStartJob() argument
114 mCurProcessor = new CommandProcessor(params); in onStartJob()
122 public boolean onStopJob(JobParameters params) { in onStopJob() argument
/development/samples/ApiDemos/src/com/example/android/apis/animation/
DTransitions.java86 ViewGroup.LayoutParams params = view.getLayoutParams(); in setNewSize() local
87 params.width = width; in setNewSize()
88 params.height = height; in setNewSize()
89 view.setLayoutParams(params); in setNewSize()
/development/samples/IntentPlayground/src/com/example/android/intentplayground/
DShowcaseFragment.java73 ViewPager.LayoutParams params = new ViewPager.LayoutParams(); in onCreateView() local
74 params.width = ViewPager.LayoutParams.MATCH_PARENT; in onCreateView()
75 params.height = ViewPager.LayoutParams.MATCH_PARENT; in onCreateView()
76 mPager.setLayoutParams(params); in onCreateView()
77 backgroundLayout.setLayoutParams(params); in onCreateView()
78 params.height = ViewPager.LayoutParams.WRAP_CONTENT; in onCreateView()
79 params.isDecor = true; in onCreateView()
80 pagerTitleView.setLayoutParams(params); in onCreateView()
/development/samples/browseable/BasicTransition/src/com.example.android.basictransition/
DBasicTransitionFragment.java110 ViewGroup.LayoutParams params = square.getLayoutParams(); in onCheckedChanged() local
112 params.width = newSize; in onCheckedChanged()
113 params.height = newSize; in onCheckedChanged()
114 square.setLayoutParams(params); in onCheckedChanged()
/development/samples/HoneycombGallery/src/com/example/android/hcgallery/
DTitlesFragment.java218 FrameLayout.LayoutParams params = (LayoutParams) listView.getLayoutParams();
220 if (params.topMargin != barHeight) {
221 params.topMargin = barHeight;
222 listView.setLayoutParams(params);
226 params.topMargin = 0;
227 listView.setLayoutParams(params);
/development/samples/ApiDemos/src/com/example/android/apis/security/
DKeyStoreUsage.java262 protected Enumeration<String> doInBackground(Void... params) { in doInBackground() argument
302 protected Boolean doInBackground(String... params) { in doInBackground() argument
303 final String alias = params[0]; in doInBackground()
350 protected String doInBackground(String... params) { in doInBackground() argument
351 final String alias = params[0]; in doInBackground()
352 final String dataString = params[1]; in doInBackground()
412 protected Boolean doInBackground(String... params) { in doInBackground() argument
413 final String alias = params[0]; in doInBackground()
414 final String dataString = params[1]; in doInBackground()
415 final String signatureString = params[2]; in doInBackground()
[all …]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DPictureLayout.java59 public void addView(View child, LayoutParams params) { in addView() argument
64 super.addView(child, params); in addView()
68 public void addView(View child, int index, LayoutParams params) { in addView() argument
73 super.addView(child, index, params); in addView()
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DAsyncTask.java374 protected abstract Result doInBackground(Params... params); in doInBackground() argument
559 public final AsyncTask<Params, Progress, Result> execute(Params... params) { in execute() argument
560 return executeOnExecutor(sDefaultExecutor, params); in execute()
597 Params... params) { in executeOnExecutor() argument
614 mWorker.mParams = params; in executeOnExecutor()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DOverlayDisplayWindow.java124 WindowManager.LayoutParams params = new WindowManager.LayoutParams( in show() local
126 params.flags |= WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN in show()
131 params.alpha = WINDOW_ALPHA; in show()
132 params.gravity = Gravity.LEFT | Gravity.BOTTOM; in show()
133 params.setTitle(mName); in show()
142 params.width = width; in show()
143 params.height = height; in show()
145 mWindowManager.addView(mSurfaceView, params); in show()
/development/tools/mkstubs/src/com/android/mkstubs/
DMain.java107 public void debug(String msg, Object...params) { in debug() argument
109 System.out.println(String.format(msg, params)); in debug()
114 public void info(String msg, Object...params) { in info() argument
115 System.out.println(String.format(msg, params)); in info()
/development/samples/browseable/RepeatingAlarm/
D_index.jd9 in template-params.xml.
/development/samples/browseable/XYZTouristAttractions/Wearable/src/com.example.android.xyztouristattractions/ui/
DAttractionsGridPagerAdapter.java118 FrameLayout.LayoutParams params = in instantiateItem() local
120 params.bottomMargin = params.bottomMargin + mInsets.bottom; in instantiateItem()
121 params.leftMargin = mInsets.left; in instantiateItem()
122 params.rightMargin = mInsets.right; in instantiateItem()
123 textView.setLayoutParams(params); in instantiateItem()
DAttractionsActivity.java114 FrameLayout.LayoutParams params = in onCreate()
116 params.bottomMargin = mInsets.bottom; in onCreate()
117 mDotsPageIndicator.setLayoutParams(params); in onCreate()
187 protected ArrayList<Attraction> doInBackground(Uri... params) { in doInBackground() argument
204 Uri attractionsUri = params[0]; in doInBackground()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/
DAddVoicemailActivity.java192 protected Exception doInBackground(Pair<Voicemail, Uri>... params) { in doInBackground() argument
193 if (params.length > 0) { in doInBackground()
195 insertVoicemail(params[0].first, params[0].second); in doInBackground()
/development/samples/devbytes/animation/CardFlip/src/com/example/android/cardflip/
DCardView.java220 RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) getLayoutParams();
222 params.leftMargin = (int)(params.leftMargin + ((Math.abs(getRotationY()) % 360) / 180) *
228 setLayoutParams(params);
DCardFlip.java122 RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(mCardWidth, in addNewCard() local
124 params.topMargin = 0; in addNewCard()
125 params.leftMargin = (stack == RIGHT_STACK ? mCardWidth : 0); in addNewCard()
128 mLayout.addView(view, params); in addNewCard()

123