Home | History | Annotate | Download | only in practices

Lines Matching full:references

12   <li><a href="#local_and_global_references">Local and Global References</a></li>
118 <p>The class references, field IDs, and method IDs are guaranteed valid until the class is unloaded. Classes
145 <h2>Local and Global References</h2>
156 <p>The only way to get non-local references is via the functions
170 <p>All JNI methods accept both local and global references as arguments.
171 It's possible for references to the same object to have different values.
174 <strong>To see if two references refer to the same object,
176 references with <code>==</code> in native code.</p>
179 <strong>must not assume object references are constant or unique</strong>
185 <p>Programmers are required to "not excessively allocate" local references. In practical terms this means
186 that if you're creating large numbers of local references, perhaps while running through an array of
190 16 local references, so if you need more than that you should either delete as you go or use
194 types, not object references, and should not be passed to
202 never automatically free local references until the thread detaches. Any local
203 references you create will have to be deleted manually. In general, any native
204 code that creates local references in a loop probably needs to do some manual
226 are C-style pointers to primitive data rather than local references. They
415 <li>References: using <code>DeleteGlobalRef</code>/<code>DeleteLocalRef</code> on the wrong kind of reference.</li>
500 object references.</p>
539 <li><b>Weak global references</b>
540 <p>Until Android 2.2 (Froyo), weak global references were not implemented.
543 <p>Until Android 4.0 (Ice Cream Sandwich), weak global references could only
546 programmers to create hard references to weak globals before doing
548 <p>From Android 4.0 (Ice Cream Sandwich) on, weak global references can be
549 used like any other JNI references.</li>
550 <li><b>Local references</b>
551 <p>Until Android 4.0 (Ice Cream Sandwich), local references were
667 <code>JNI_OnLoad</code>, and cache the class references for later