Searched refs:state (Results 1 - 25 of 1461) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/text/method/
H A DBackspaceTest.java58 // Sync the state to the TextView and call onKeyDown with KEYCODE_DEL key event.
59 // Then update the state to the result of TextView.
60 private void backspace(final EditorState state, int modifiers) { argument
61 mTextView.setText(state.mText, BufferType.EDITABLE);
63 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd);
69 state.mText = mTextView.getText();
70 state.mSelectionStart = mTextView.getSelectionStart();
71 state.mSelectionEnd = mTextView.getSelectionEnd();
76 EditorState state
[all...]
H A DForwardDeleteTest.java56 // Sync the state to the TextView and call onKeyDown with KEYCODE_FORWARD_DEL key event.
57 // Then update the state to the result of TextView.
58 private void forwardDelete(final EditorState state, int modifiers) { argument
59 mTextView.setText(state.mText, BufferType.EDITABLE);
61 mTextView.setSelection(state.mSelectionStart, state.mSelectionEnd);
67 state.mText = mTextView.getText();
68 state.mSelectionStart = mTextView.getSelectionStart();
69 state.mSelectionEnd = mTextView.getSelectionEnd();
74 EditorState state
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/common/src/
H A Dq_plsf.cpp74 * Purpose : Allocates memory and initializes state variables
78 Word16 Q_plsf_init(Q_plsfState **state) argument
82 if (state == (Q_plsfState **) NULL)
87 *state = NULL;
92 /* fprintf(stderr, "Q_plsf_init: can not malloc state structure\n"); */
97 *state = s;
106 * Purpose : Resets state memory
110 Word16 Q_plsf_reset(Q_plsfState *state) argument
114 if (state == (Q_plsfState *) NULL)
121 state
134 Q_plsf_exit(Q_plsfState **state) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DPackageVerificationStateTest.java32 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null);
35 state.isVerificationComplete());
37 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_ALLOW);
40 state.isVerificationComplete());
43 state.isInstallAllowed());
47 PackageVerificationState state = new PackageVerificationState(REQUIRED_UID, null);
50 state.isVerificationComplete());
52 state.setVerifierResponse(REQUIRED_UID, PackageManager.VERIFICATION_REJECT);
55 state.isVerificationComplete());
58 state
[all...]
/frameworks/base/cmds/incident_helper/tests/
H A DCpuFreqParser_test.cpp60 CpuFreqProto::Stats::TimeInState* state; local
64 state = cpu0->add_times();
65 state->set_state_khz(307200);
66 state->set_time_jiffy(23860761);
67 state = cpu0->add_times();
68 state->set_state_khz(384000);
69 state->set_time_jiffy(83124);
70 state = cpu0->add_times();
71 state->set_state_khz(768000);
72 state
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DCanvasStateTests.cpp49 CanvasState state(sNullClient);
50 state.initializeSaveStack(200, 200, 0, 0, 200, 200, Vector3());
52 ASSERT_EQ(state.getWidth(), 200);
53 ASSERT_EQ(state.getHeight(), 200);
57 state.setMatrix(simpleTranslate);
59 ASSERT_EQ(state.getRenderTargetClipBounds(), Rect(200, 200));
60 ASSERT_EQ(state.getLocalClipBounds(), Rect(-10, -20, 190, 180));
61 EXPECT_TRUE(approxEqual(*state.currentTransform(), simpleTranslate));
62 EXPECT_TRUE(state.clipIsSimple());
66 CanvasState state(sNullClien
[all...]
/frameworks/minikin/tests/perftests/
H A DFontLanguage.cpp22 static void BM_Locale_en_US(benchmark::State& state) { argument
23 while (state.KeepRunning()) {
29 static void BM_Locale_en_Latn_US(benchmark::State& state) { argument
30 while (state.KeepRunning()) {
36 static void BM_Locale_en_Latn_US_u_em_emoji(benchmark::State& state) { argument
37 while (state.KeepRunning()) {
/frameworks/base/media/java/android/media/
H A DIAudioServerStateDispatcher.aidl20 * AIDL for the AudioService to signal audio server state changes
26 void dispatchAudioServerStateChange(boolean state);
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
H A DBasicPipeline.java40 public void initBuffers(VrState state) { argument
45 public void setupTriangles(VrState state) { argument
46 Matrix m = state.mTransform.getMatrix(Transform.VOLUME_SPACE, Transform.SCREEN_SPACE);
47 state.mCubeVolume.transform(m, state.mCubeScreen);
51 public void rasterizeTriangles(VrState state) { argument
53 scriptC_rasterize = new ScriptC_rasterize(state.mRs);
55 scriptC_rasterize.set_index(state.mCubeScreen.mIndex);
56 scriptC_rasterize.set_vert(state.mCubeScreen.mVert);
58 scriptC_rasterize.invoke_setup_triangles(state
66 raycast(VrState state) argument
[all...]
H A DPipeline.java35 * @param state
37 public void initBuffers(VrState state); argument
41 * @param state
43 public void setupTriangles(VrState state); argument
47 * @param state
49 public void rasterizeTriangles(VrState state); argument
53 * @param state
55 public void raycast(VrState state); argument
H A DVrPipline1.java36 public void initBuffers(VrState state) { argument
37 super.initBuffers(state);
55 private void creatOpacityAllocation(VrState state) { argument
56 scriptC_vr.set_opacity(state.mMaterial.getOpacityAllocation(state.mRs));
59 private void creatColorMapAllocation(VrState state) { argument
60 scriptC_vr.set_color_map(state.mMaterial.getColorMapAllocation(state.mRs));
64 public void setupTriangles(VrState state) { argument
65 super.setupTriangles(state);
92 raycast(VrState state) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dd_plsf.cpp114 state = pointer to structure of type D_plsf_reset
117 fields of the structure pointed to by state is initialized to zero
131 Resets state memory
146 int D_plsf_reset (D_plsfState *state)
150 if (state == (D_plsfState *) NULL){
156 state->past_r_q[i] = 0; // Past quantized prediction error
160 Copy(mean_lsf, &state->past_lsf_q[0], M);
187 Word16 D_plsf_reset(D_plsfState *state) argument
191 if (state == (D_plsfState *) NULL)
199 state
[all...]
H A Dph_disp.cpp52 product of state->prevCbGain and ONFACTPLUS1 in the ph_disp
133 state = pointer to a structure of type ph_dispState
136 Structure pointed to by state is initialized to zeros
165 int ph_disp_reset (ph_dispState *state)
169 if (state == (ph_dispState *) NULL){
175 state->gainMem[i] = 0;
177 state->prevState = 0;
178 state->prevCbGain = 0;
179 state->lockFull = 0;
180 state
208 ph_disp_reset(ph_dispState *state) argument
299 ph_disp_lock(ph_dispState *state) argument
376 ph_disp_release(ph_dispState *state) argument
654 ph_disp( ph_dispState *state, enum Mode mode, Word16 x[], Word16 cbGain, Word16 ltpGain, Word16 inno[], Word16 pitch_fac, Word16 tmp_shift, Flag *pOverflow ) argument
[all...]
/frameworks/base/cmds/statsd/benchmark/
H A Dhello_world_benchmark.cpp18 static void BM_StringCreation(benchmark::State& state) { argument
19 while (state.KeepRunning()) std::string empty_string;
25 static void BM_StringCopy(benchmark::State& state) { argument
27 while (state.KeepRunning()) std::string copy(x);
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
H A DIControlsTethering.java36 public static String getStateString(int state) { argument
37 switch (state) {
43 return "UNKNOWN: " + state;
47 * Notify that |who| has changed its tethering state.
52 * @param state one of IControlsTethering.STATE_*
55 public void updateInterfaceState(TetherInterfaceStateMachine who, int state, int lastError) {} argument
/frameworks/base/services/core/java/com/android/server/display/
H A DDisplayBlanker.java20 * Interface used to update the actual display state.
23 void requestDisplayState(int state, int brightness); argument
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
H A DStateChangeListener.java20 void onStateChanged(int state); argument
/frameworks/rs/
H A DrsProgram.cpp32 mHal.state.inputElementsCount++;
35 mHal.state.constantsCount++;
38 mHal.state.texturesCount++;
42 mTextures = new ObjectBaseRef<Allocation>[mHal.state.texturesCount];
43 mSamplers = new ObjectBaseRef<Sampler>[mHal.state.texturesCount];
44 mInputElements = new ObjectBaseRef<Element>[mHal.state.inputElementsCount];
45 mConstantTypes = new ObjectBaseRef<Type>[mHal.state.constantsCount];
46 mConstants = new ObjectBaseRef<Allocation>[mHal.state.constantsCount];
48 mHal.state.textures = new Allocation*[mHal.state
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dpre_proc.cpp131 state = pointer to an array of pointer to structures of type
135 Structure pointed to by the pointer pointed to by state is
137 state points to the allocated memory
152 Allocates state memory and initializes state memory.
167 int Pre_Process_init (Pre_ProcessState **state)
171 if (state == (Pre_ProcessState **) NULL){
175 *state = NULL;
179 fprintf(stderr, "Pre_Process_init: can not malloc state structure\n");
184 *state
212 Pre_Process_init(Pre_ProcessState **state) argument
320 Pre_Process_reset(Pre_ProcessState *state) argument
416 Pre_Process_exit(Pre_ProcessState **state) argument
[all...]
H A Dsid_sync.cpp46 Description: Changed type definition of state pointer to 'void' for
107 state = pointer containing a pointer to the state structure used for
114 return_value = status of sid_sync_reset function; -1, if state is pointing
127 the pointer to state struct in *st. This pointer has to be passed to sid_sync
166 Word16 sid_sync_init(void **state) argument
170 if (state == NULL)
172 /* fprintf(stderr, "sid_sync_init:invalid state parameter\n"); */
176 *state = NULL;
184 "can not malloc state structur
260 sid_syncState *state = (sid_syncState *) st; local
335 sid_sync_exit(void **state) argument
495 sid_sync(void *state, enum Mode mode, enum TXFrameType *tx_frame_type) argument
[all...]
/frameworks/base/wifi/java/android/net/wifi/
H A DISoftApCallback.aidl27 * Service to manager callback providing current soft AP state. The possible
30 * @param state new AP state. One of WIFI_AP_STATE_DISABLED,
33 * @param failureReason reason when in failed state. One of
36 void onStateChanged(int state, int failureReason);
/frameworks/support/lifecycle/compiler/
H A Dreset_results.py41 state = 0 variable
46 if (state == 0 and line.startswith(expected)):
47 state = 1 variable
51 if state == 1 and line.startswith("Actual Source:"):
52 state = 2 variable
55 if state == 2:
58 if state == 2 and line.rstrip() == "}":
60 state = 0 variable
/frameworks/base/apct-tests/perftests/core/src/android/app/
H A DPendingIntentPerfTest.java59 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
60 while (state.keepRunning()) {
61 state.pauseTiming();
62 state.resumeTiming();
67 state.pauseTiming();
69 state.resumeTiming();
79 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
80 while (state.keepRunning()) {
81 state.pauseTiming();
84 state
[all...]
/frameworks/base/apct-tests/perftests/core/src/android/perftests/
H A DSystemPerfTest.java45 BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
46 while (state.keepRunning()) {
53 BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
54 while (state.keepRunning()) {}
64 BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
65 while (state.keepRunning()) {
66 state.pauseTiming();
68 state.resumeTiming();
74 BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
76 while (state
[all...]
/frameworks/base/apct-tests/perftests/core/src/android/os/
H A DParcelPerfTest.java57 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
58 while (state.keepRunning()) {
65 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
66 while (state.keepRunning()) {
73 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
74 while (state.keepRunning()) {
81 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
82 while (state.keepRunning()) {
89 final BenchmarkState state = mPerfStatusReporter.getBenchmarkState();
90 while (state
[all...]

Completed in 510 milliseconds

1234567891011>>