auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
private void updateHoverRegion ( int x , int y ) { x = imageXCoordinate ( x ) ; y = imageYCoordinate ( y ) ; com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo verticalUpdateRegion = findVerticalPatch ( x , y ) ; com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo horizontalUpdateRegion = findHorizontalPatch ( x , y ) ; computeHighlightRegions ( verticalUpdateRegion , horizontalUpdateRegion ) ; java.awt.Cursor c = getCursor ( x , y , verticalUpdateRegion , horizontalUpdateRegion ) ; setCursor ( c ) ; }

Target:
private void setCursorForRegion ( int x , int y , com.android.draw9patch.ui.ImageViewer.UpdateRegionInfo region ) { if ( region != null ) { java.awt.Cursor c = getCursor ( x , y , region ) ; setCursor ( c ) ; } else { setCursor ( java.awt.Cursor.getDefaultCursor ( ) ) ; } }
Source:
public boolean hasResources ( com.android.resources.ResourceType type ) { java.util.List < com.android.resources.ResourceFolderType > folderTypes = com.android.resources.FolderTypeRelationship.getRelatedFolders ( type ) ; boolean valid = false ; for ( com.android.resources.ResourceFolderType rft : folderTypes ) { if ( rft == ( mType ) ) { valid = true ; break ; } } if ( valid ) { if ( ( mFiles ) != null ) { for ( com.android.ide.eclipse.adt.internal.resources.manager.ResourceFile f : mFiles ) { if ( f.hasResources ( type ) ) { return true ; } } } } return false ; }

Target:
public boolean hasResources ( com.android.resources.ResourceType type ) { java.util.List < com.android.resources.ResourceFolderType > folderTypes = com.android.resources.FolderTypeRelationship.getRelatedFolders ( type ) ; boolean valid = false ; for ( com.android.resources.ResourceFolderType rft : folderTypes ) { if ( rft == ( mType ) ) { valid = true ; break ; } } if ( valid ) { if ( ( mFiles ) != null ) { for ( com.android.ide.common.resources.ResourceFile f : mFiles ) { if ( f.hasResources ( type ) ) { return true ; } } } } return false ; }
Source:
public void test_setMinimumIntegerDigitsI ( ) { java.text.DecimalFormat df = new java.text.DecimalFormat ( "###0.##" , new java.text.DecimalFormatSymbols ( java.util.Locale.US ) ) ; df.setMinimumIntegerDigits ( 3 ) ; assertEquals ( "Not set" , 3 , df.getMinimumIntegerDigits ( ) ) ; assertEquals ( "Wrong minimum" , "012" , df.format ( 12 ) ) ; df.setMaximumIntegerDigits ( 2 ) ; assertEquals ( "Not changed" , 2 , df.getMinimumIntegerDigits ( ) ) ; assertEquals ( "Incorrect integer" , "00.7" , df.format ( 0.7 ) ) ; }

Target:
public void test_formatLong_minimumIntegerDigits ( ) { java.text.DecimalFormat df = new java.text.DecimalFormat ( "###0.##" , new java.text.DecimalFormatSymbols ( java.util.Locale.US ) ) ; df.setMinimumIntegerDigits ( 3 ) ; assertEquals ( 3 , df.getMinimumIntegerDigits ( ) ) ; assertEquals ( "012" , df.format ( 12 ) ) ; df.setMaximumIntegerDigits ( 2 ) ; assertEquals ( 2 , df.getMinimumIntegerDigits ( ) ) ; assertEquals ( "00.7" , df.format ( 0.7 ) ) ; }
Source:
public void testOnKeyShortcut ( ) throws java.lang.Throwable { final android.view.cts.MockView view = ( ( android.view.cts.MockView ) ( mActivity.findViewById ( R.id.mock_view ) ) ) ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { view.setFocusable ( true ) ; } } ) ; android.view.KeyEvent event = new android.view.KeyEvent ( android.view.KeyEvent.ACTION_DOWN , android.view.KeyEvent.KEYCODE_MENU ) ; getInstrumentation ( ) . sendKeySync ( event ) ; event = new android.view.KeyEvent ( android.view.KeyEvent.ACTION_DOWN , android.view.KeyEvent.KEYCODE_0 ) ; getInstrumentation ( ) . sendKeySync ( event ) ; assertTrue ( view.hasCalledOnKeyShortcut ( ) ) ; }

Target:
public void testOnKeyMultiple ( ) throws java.lang.Throwable { final android.view.cts.MockView view = ( ( android.view.cts.MockView ) ( mActivity.findViewById ( R.id.mock_view ) ) ) ; runTestOnUiThread ( new java.lang.Runnable ( ) { public void run ( ) { view.setFocusable ( true ) ; } } ) ; assertFalse ( view.hasCalledOnKeyMultiple ( ) ) ; view.dispatchKeyEvent ( new android.view.KeyEvent ( android.view.KeyEvent.ACTION_MULTIPLE , android.view.KeyEvent.KEYCODE_ENTER ) ) ; assertTrue ( view.hasCalledOnKeyMultiple ( ) ) ; }
Source:
private void addCommonOptionsForMultiDex ( @ javax.annotation.Nonnull com.android.jack.test.toolchain.JackApiToolchain toolchain , @ javax.annotation.Nonnull java.io.File configFile ) { toolchain.addProperty ( MultiDexLegacy.MULTIDEX_LEGACY.getName ( ) , "true" ) ; toolchain.addProperty ( PreProcessor.ENABLE.getName ( ) , "true" ) ; toolchain.addProperty ( PreProcessor.FILE.getName ( ) , configFile.getAbsolutePath ( ) ) ; }

Target:
private void addCommonOptionsForMultiDex ( @ javax.annotation.Nonnull com.android.jack.test.toolchain.JackBasedToolchain toolchain , @ javax.annotation.Nonnull java.io.File configFile ) { toolchain.addProperty ( MultiDexLegacy.MULTIDEX_LEGACY.getName ( ) , "true" ) ; toolchain.addProperty ( PreProcessor.ENABLE.getName ( ) , "true" ) ; toolchain.addProperty ( PreProcessor.FILE.getName ( ) , configFile.getAbsolutePath ( ) ) ; }
Source:
public void testFiveCount_c ( ) throws java.lang.Exception { assertEquals ( "Thu" , formatDate ( java.util.Locale.ENGLISH , "c" ) ) ; assertEquals ( "Thu" , formatDate ( java.util.Locale.ENGLISH , "cc" ) ) ; assertEquals ( "Thu" , formatDate ( java.util.Locale.ENGLISH , "ccc" ) ) ; assertEquals ( "Thursday" , formatDate ( java.util.Locale.ENGLISH , "cccc" ) ) ; assertEquals ( "T" , formatDate ( java.util.Locale.ENGLISH , "ccccc" ) ) ; }

Target:
public void testFiveCount_c ( ) throws java.lang.Exception { assertEquals ( "Thu" , formatDateUtc ( java.util.Locale.ENGLISH , "c" ) ) ; assertEquals ( "Thu" , formatDateUtc ( java.util.Locale.ENGLISH , "cc" ) ) ; assertEquals ( "Thu" , formatDateUtc ( java.util.Locale.ENGLISH , "ccc" ) ) ; assertEquals ( "Thursday" , formatDateUtc ( java.util.Locale.ENGLISH , "cccc" ) ) ; assertEquals ( "T" , formatDateUtc ( java.util.Locale.ENGLISH , "ccccc" ) ) ; }
Source:
void abort ( com.android.server.telecom.Call call ) { final java.lang.String callId = mCallIdMapper.getCallId ( call ) ; if ( ( callId != null ) && ( isServiceValid ( "abort" ) ) ) { try { logOutgoing ( "abort %s" , callId ) ; mServiceInterface.abort ( callId ) ; } catch ( android.os.RemoteException e ) { } } removeCall ( call , new android.telecom.DisconnectCause ( android.telecom.DisconnectCause.LOCAL ) ) ; }

Target:
private void removeConnectionServiceAdapter ( com.android.internal.telecom.IConnectionServiceAdapter adapter ) { if ( isServiceValid ( "removeConnectionServiceAdapter" ) ) { try { logOutgoing ( "removeConnectionServiceAdapter %s" , adapter ) ; mServiceInterface.removeConnectionServiceAdapter ( adapter , android.telecom.Log.getExternalSession ( ) ) ; } catch ( android.os.RemoteException e ) { } } }
Source:
public void onServiceDisconnected ( android.content.ComponentName componentName ) { try { android.telecom.Log.startSession ( "SBC.oSD" ) ; synchronized ( mLock ) { logServiceDisconnected ( "onServiceDisconnected" ) ; mServiceConnection = null ; clearAbort ( ) ; handleServiceDisconnected ( ) ; } } finally { android.telecom.Log.endSession ( ) ; } }

Target:
private void handleDisconnect ( ) { mServiceConnection = null ; clearAbort ( ) ; handleServiceDisconnected ( ) ; }
Source:
public void testWarningWhenAddJavascriptInterfaceCalledOnWebView ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/AddJavascriptInterfaceTest.java:16: Warning: WebView.addJavascriptInterface should not be called [AddJavascriptInterface]\n" + ( ( " webView.addJavascriptInterface(object, string);\n" + " ~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 1 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/AddJavascriptInterfaceTest.java.txt=>src/test/pkg/AddJavascriptInterfaceTest.java" , "bytecode/AddJavascriptInterfaceTest.class.data=>bin/classes/test/pkg/AddJavascriptInterfaceTest.class" , ( "bytecode/AddJavascriptInterfaceTest$CallAddJavascriptInterfaceOnWebView.class.data=>" + "bin/classes/test/pkg/AddJavascriptInterfaceTest$CallAddJavascriptInterfaceOnWebView.class" ) ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "src/test/pkg/AddJavascriptInterfaceTest.java:16: Warning: WebView.addJavascriptInterface should not be called [AddJavascriptInterface]\n" + ( ( ( ( ( " webView.addJavascriptInterface(object, string);\n" + " ~~~~~~~~~~~~~~~~~~~~~~\n" ) + "src/test/pkg/AddJavascriptInterfaceTest.java:23: Warning: WebView.addJavascriptInterface should not be called [AddJavascriptInterface]\n" ) + " webView.addJavascriptInterface(object, string);\n" ) + " ~~~~~~~~~~~~~~~~~~~~~~\n" ) + "0 errors, 2 warnings\n" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "bytecode/AndroidManifest.xml=>AndroidManifest.xml" , "bytecode/AddJavascriptInterfaceTest.java.txt=>src/test/pkg/AddJavascriptInterfaceTest.java" , "bytecode/AddJavascriptInterfaceTest.class.data=>bin/classes/test/pkg/AddJavascriptInterfaceTest.class" , ( "bytecode/AddJavascriptInterfaceTest$CallAddJavascriptInterfaceOnWebView.class.data=>" + "bin/classes/test/pkg/AddJavascriptInterfaceTest$CallAddJavascriptInterfaceOnWebView.class" ) , ( "bytecode/AddJavascriptInterfaceTest$WebViewChild.class.data=>" + "bin/classes/test/pkg/AddJavascriptInterfaceTest$WebViewChild.class" ) , ( "bytecode/AddJavascriptInterfaceTest$CallAddJavascriptInterfaceOnWebViewChild.class.data=>" + "bin/classes/test/pkg/AddJavascriptInterfaceTest$CallAddJavascriptInterfaceOnWebViewChild.class" ) , ( "bytecode/AddJavascriptInterfaceTest$NonWebView.class.data=>" + "bin/classes/test/pkg/AddJavascriptInterfaceTest$NonWebView.class" ) , ( "bytecode/AddJavascriptInterfaceTest$CallAddJavascriptInterfaceOnNonWebView.class.data=>" + "bin/classes/test/pkg/AddJavascriptInterfaceTest$CallAddJavascriptInterfaceOnNonWebView.class" ) ) ) ; }
Source:
public android.drm.DrmConvertedStatus closeConvertSession ( int convertId ) { if ( ( getState ( ) ) == ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _closeConvertSession ( mUniqueId , convertId ) ; }

Target:
public android.content.ContentValues getConstraints ( java.lang.String path , int action ) { if ( ( ( null == path ) || ( path.equals ( "" ) ) ) || ( ! ( DrmStore.Action.isValid ( action ) ) ) ) { throw new java.lang.IllegalArgumentException ( "Given usage or path is invalid/null" ) ; } else if ( ( android.drm.DrmManagerClient.STATE_UNINITIALIZED ) == ( getState ( ) ) ) { throw new java.lang.IllegalStateException ( "Not Initialized yet" ) ; } return _getConstraints ( mUniqueId , path , action ) ; }
Source:
public void onClick ( android.view.View v ) { if ( ( v != null ) && ( ( R.id.text_layout ) == ( v.getId ( ) ) ) ) { android.content.Context context = getContext ( ) ; if ( context != null ) { int pos = java.lang.Integer.parseInt ( getKey ( ) ) ; android.net.Uri url = android.content.ContentUris.withAppendedId ( Telephony.Carriers.CONTENT_URI , pos ) ; context.startActivity ( new android.content.Intent ( android.content.Intent.ACTION_EDIT , url ) ) ; } } }

Target:
public void onClick ( android.view.View v ) { if ( ( v != null ) && ( ( R.id.text_layout ) == ( v.getId ( ) ) ) ) { android.content.Context context = getContext ( ) ; if ( context != null ) { int pos = java.lang.Integer.parseInt ( getKey ( ) ) ; android.net.Uri url = android.content.ContentUris.withAppendedId ( Telephony.Carriers.CONTENT_URI , pos ) ; android.content.Intent editIntent = new android.content.Intent ( android.content.Intent.ACTION_EDIT , url ) ; editIntent.putExtra ( ApnSettings.SUB_ID , mSubId ) ; context.startActivity ( editIntent ) ; } } }
Source:
private void toggleRecentApps ( ) { mPreloadedRecentApps = false ; sendCloseSystemWindows ( com.android.internal.policy.impl.PhoneWindowManager.SYSTEM_DIALOG_REASON_RECENT_APPS ) ; try { com.android.internal.statusbar.IStatusBarService statusbar = getStatusBarService ( ) ; if ( statusbar != null ) { statusbar.toggleRecentApps ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Slog.e ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "RemoteException when showing recent apps" , e ) ; mStatusBarService = null ; } }

Target:
private void showRecentApps ( boolean triggeredFromAltTab ) { mPreloadedRecentApps = false ; try { com.android.internal.statusbar.IStatusBarService statusbar = getStatusBarService ( ) ; if ( statusbar != null ) { statusbar.showRecentApps ( triggeredFromAltTab ) ; } } catch ( android.os.RemoteException e ) { android.util.Slog.e ( com.android.internal.policy.impl.PhoneWindowManager.TAG , "RemoteException when showing recent apps" , e ) ; mStatusBarService = null ; } }
Source:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; java.util.List < com.android.jack.ir.ast.JExpression > arguments = popCallArgs ( info , x.arguments , x.binding ) ; pushNewExpression ( info , x , x.enclosingInstance ( ) , arguments , scope ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }

Target:
public void endVisit ( org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression x , org.eclipse.jdt.internal.compiler.lookup.BlockScope scope ) { try { com.android.jack.ir.sourceinfo.SourceInfo info = makeSourceInfo ( x ) ; java.util.List < com.android.jack.ir.ast.JExpression > arguments = popCallArgs ( info , x.arguments , x.binding ) ; pushNewExpression ( info , x , x.enclosingInstance ( ) , arguments , scope ) ; } catch ( com.android.jack.ir.ast.JTypeLookupException e ) { throw translateException ( x , e ) ; } catch ( java.lang.RuntimeException e ) { throw translateException ( x , e ) ; } }
Source:
private void onGetReport ( byte [ ] address , byte [ ] report , int rptSize ) { if ( com.android.bluetooth.hid.HidService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidService.TAG , "onGetReport()" ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidService.MESSAGE_ON_GET_REPORT ) ; msg.obj = address ; android.os.Bundle data = new android.os.Bundle ( ) ; data.putByteArray ( BluetoothHidHost.EXTRA_REPORT , report ) ; data.putInt ( BluetoothHidHost.EXTRA_REPORT_BUFFER_SIZE , rptSize ) ; msg.setData ( data ) ; mHandler.sendMessage ( msg ) ; }

Target:
private void onGetReport ( byte [ ] address , byte [ ] report , int rptSize ) { if ( com.android.bluetooth.hid.HidHostService.DBG ) android.util.Log.d ( com.android.bluetooth.hid.HidHostService.TAG , "onGetReport()" ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.hid.HidHostService.MESSAGE_ON_GET_REPORT ) ; msg.obj = address ; android.os.Bundle data = new android.os.Bundle ( ) ; data.putByteArray ( BluetoothHidHost.EXTRA_REPORT , report ) ; data.putInt ( BluetoothHidHost.EXTRA_REPORT_BUFFER_SIZE , rptSize ) ; msg.setData ( data ) ; mHandler.sendMessage ( msg ) ; }
Source:
public void aggregateContact ( android.database.sqlite.SQLiteDatabase db , long rawContactId , java.lang.String accountType , java.lang.String accountName , long currentContactId ) { if ( ! ( mEnabled ) ) { return ; } com.android.providers.contacts.ContactAggregator.MatchCandidateList candidates = new com.android.providers.contacts.ContactAggregator.MatchCandidateList ( ) ; com.android.providers.contacts.ContactMatcher matcher = new com.android.providers.contacts.ContactMatcher ( ) ; android.content.ContentValues values = new android.content.ContentValues ( ) ; aggregateContact ( db , rawContactId , accountType , accountName , currentContactId , candidates , matcher , values ) ; }

Target:
public long insertContact ( android.database.sqlite.SQLiteDatabase db , long rawContactId ) { mSelectionArgs1 [ 0 ] = java.lang.String.valueOf ( rawContactId ) ; computeAggregateData ( db , mRawContactsQueryByRawContactId , mSelectionArgs1 , mContactInsert ) ; return mContactInsert.executeInsert ( ) ; }
Source:
public static void genRandomBytes ( long seed , int min , int max , byte [ ] array ) { java.util.Random r = new java.util.Random ( seed ) ; for ( int i = 0 ; i < ( array.length ) ; i ++ ) { array [ i ] = ( ( byte ) ( min + ( r.nextInt ( ( ( max - min ) + 1 ) ) ) ) ) ; } }

Target:
public static void genRandomDoubles ( long seed , double min , double max , double [ ] array ) { java.util.Random r = new java.util.Random ( seed ) ; for ( int i = 0 ; i < ( array.length ) ; i ++ ) { array [ i ] = min + ( ( r.nextDouble ( ) ) * ( max - min ) ) ; } }
Source:
public static com.google.devtools.common.options.OptionValueDescription createOptionValueDescription ( com.google.devtools.common.options.OptionDefinition option ) { if ( option.allowsMultiple ( ) ) { return new com.google.devtools.common.options.OptionValueDescription.RepeatableOptionValueDescription ( option ) ; } else if ( option.isExpansionOption ( ) ) { return new com.google.devtools.common.options.OptionValueDescription.ExpansionOptionValueDescription ( option ) ; } else if ( ( option.getImplicitRequirements ( ) . length ) > 0 ) { return new com.google.devtools.common.options.OptionValueDescription.OptionWithImplicitRequirementsValueDescription ( option ) ; } else if ( option.isWrapperOption ( ) ) { return new com.google.devtools.common.options.OptionValueDescription.WrapperOptionValueDescription ( option ) ; } else { return new com.google.devtools.common.options.OptionValueDescription.SingleOptionValueDescription ( option ) ; } }

Target:
public static com.google.devtools.common.options.OptionValueDescription createOptionValueDescription ( com.google.devtools.common.options.OptionDefinition option ) { if ( option.allowsMultiple ( ) ) { return new com.google.devtools.common.options.OptionValueDescription.RepeatableOptionValueDescription ( option ) ; } else if ( option.isExpansionOption ( ) ) { return new com.google.devtools.common.options.OptionValueDescription.ExpansionOptionValueDescription ( option ) ; } else if ( option.hasImplicitRequirements ( ) ) { return new com.google.devtools.common.options.OptionValueDescription.OptionWithImplicitRequirementsValueDescription ( option ) ; } else if ( option.isWrapperOption ( ) ) { return new com.google.devtools.common.options.OptionValueDescription.WrapperOptionValueDescription ( option ) ; } else { return new com.google.devtools.common.options.OptionValueDescription.SingleOptionValueDescription ( option ) ; } }
Source:
public static void notify ( java.lang.Object thisReference , int uniqueId , int infoType , java.lang.String message ) { android.drm.DrmManagerClient instance = ( ( android.drm.DrmManagerClient ) ( ( ( java.lang.ref.WeakReference ) ( thisReference ) ) . get ( ) ) ) ; if ( ( null != instance ) && ( null != ( instance.mEventHandler ) ) ) { android.os.Message m = instance.mEventHandler.obtainMessage ( android.drm.DrmManagerClient.EventHandler.INFO_EVENT_TYPE , uniqueId , infoType , message ) ; instance.mEventHandler.sendMessage ( m ) ; } }

Target:
public static void notify ( java.lang.Object thisReference , int uniqueId , int infoType , java.lang.String message ) { android.drm.DrmManagerClient instance = ( ( android.drm.DrmManagerClient ) ( ( ( java.lang.ref.WeakReference ) ( thisReference ) ) . get ( ) ) ) ; if ( ( null != instance ) && ( null != ( instance.mInfoHandler ) ) ) { android.os.Message m = instance.mInfoHandler.obtainMessage ( android.drm.DrmManagerClient.InfoHandler.INFO_EVENT_TYPE , uniqueId , infoType , message ) ; instance.mInfoHandler.sendMessage ( m ) ; } }
Source:
public com.android.sdklib.internal.avd.AvdManager.AvdInfo [ ] getBrokenAvds ( ) { synchronized ( mAllAvdList ) { if ( ( mBrokenAvdList ) == null ) { java.util.ArrayList < com.android.sdklib.internal.avd.AvdManager.AvdInfo > list = new java.util.ArrayList < com.android.sdklib.internal.avd.AvdManager.AvdInfo > ( ) ; for ( com.android.sdklib.internal.avd.AvdManager.AvdInfo avd : mAllAvdList ) { if ( ( avd.getStatus ( ) ) != ( com.android.sdklib.internal.avd.AvdManager.AvdInfo.AvdStatus.OK ) ) { list.add ( avd ) ; } } mBrokenAvdList = list.toArray ( new com.android.sdklib.internal.avd.AvdManager.AvdInfo [ list.size ( ) ] ) ; } return mBrokenAvdList ; } }

Target:
public com.android.sdklib.internal.avd.AvdInfo [ ] getValidAvds ( ) { synchronized ( mAllAvdList ) { if ( ( mValidAvdList ) == null ) { java.util.ArrayList < com.android.sdklib.internal.avd.AvdInfo > list = new java.util.ArrayList < com.android.sdklib.internal.avd.AvdInfo > ( ) ; for ( com.android.sdklib.internal.avd.AvdInfo avd : mAllAvdList ) { if ( ( avd.getStatus ( ) ) == ( com.android.sdklib.internal.avd.AvdInfo.AvdStatus.OK ) ) { list.add ( avd ) ; } } mValidAvdList = list.toArray ( new com.android.sdklib.internal.avd.AvdInfo [ list.size ( ) ] ) ; } return mValidAvdList ; } }
Source:
protected boolean start ( ) { android.util.Log.i ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "Starting the AVRCP Target Service" ) ; com.android.bluetooth.avrcp.AvrcpTargetService.sInstance = this ; mCurrentData = new com.android.bluetooth.avrcp.MediaData ( null , null , null ) ; mNativeInterface = com.android.bluetooth.avrcp.AvrcpNativeInterface.getInterface ( ) ; mReceiver = new com.android.bluetooth.avrcp.AvrcpTargetService.AvrcpBroadcastReceiver ( ) ; android.content.IntentFilter filter = new android.content.IntentFilter ( ) ; filter.addAction ( BluetoothA2dp.ACTION_ACTIVE_DEVICE_CHANGED ) ; registerReceiver ( mReceiver , filter ) ; return true ; }

Target:
private void init ( ) { if ( ( mMediaPlayerList ) != null ) { android.util.Log.wtfStack ( com.android.bluetooth.avrcp.AvrcpTargetService.TAG , "init: The service has already been initialized" ) ; return ; } mAudioManager = ( ( android.media.AudioManager ) ( getSystemService ( Context.AUDIO_SERVICE ) ) ) ; com.android.bluetooth.avrcp.AvrcpTargetService.sDeviceMaxVolume = mAudioManager.getStreamMaxVolume ( AudioManager.STREAM_MUSIC ) ; mMediaPlayerList = new com.android.bluetooth.avrcp.MediaPlayerList ( ) ; mMediaPlayerList.init ( android.os.Looper.myLooper ( ) , this , new com.android.bluetooth.avrcp.AvrcpTargetService.ListCallback ( ) ) ; mNativeInterface = com.android.bluetooth.avrcp.AvrcpNativeInterface.getInterface ( ) ; mNativeInterface.init ( this ) ; }
Source:
void copy2DRangeFromUnchecked ( int xoff , int yoff , int w , int h , float [ ] data ) { mRS.validate ( ) ; validate2DRange ( xoff , yoff , w , h ) ; mRS.nAllocationData2D ( getIDSafe ( ) , xoff , yoff , mSelectedLOD , mSelectedFace.mID , w , h , data , ( ( data.length ) * 4 ) ) ; }

Target:
private void copy3DRangeFromUnchecked ( int xoff , int yoff , int zoff , int w , int h , int d , java.lang.Object array , android.support.v8.renderscript.Element.DataType dt , int arrayLen ) { mRS.validate ( ) ; validate3DRange ( xoff , yoff , zoff , w , h , d ) ; mRS.nAllocationData3D ( getIDSafe ( ) , xoff , yoff , zoff , mSelectedLOD , w , h , d , array , ( arrayLen * ( dt.mSize ) ) , dt ) ; }
Source:
private java.lang.String [ ] splitSignature ( @ javax.annotation.Nonnull java.lang.String signature ) { assert com.android.jack.util.NamingTools.isClassDescriptor ( signature ) ; java.lang.String [ ] splitName = signature.substring ( 1 , ( ( signature.length ( ) ) - 1 ) ) . split ( java.lang.String.valueOf ( JLookup.PACKAGE_SEPARATOR ) ) ; return splitName ; }

Target:
public com.android.jack.ir.ast.JEnum getType ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JPackage pack , @ javax.annotation.Nonnull java.lang.String simpleName ) { return pack.getPhantomEnum ( simpleName ) ; }
Source:
public void waitForFlushComplete ( ) { java.util.concurrent.CountDownLatch latch = mFlushLatch ; try { if ( latch != null ) { java.lang.String message = android.hardware.cts.helpers.SensorCtsHelper.formatAssertionMessage ( mSensor , "WaitForFlush" ) ; junit.framework.Assert.assertTrue ( message , latch.await ( android.hardware.cts.helpers.TestSensorEventListener.FLUSH_TIMEOUT_US , java.util.concurrent.TimeUnit.MICROSECONDS ) ) ; } } catch ( java.lang.InterruptedException e ) { } }

Target:
public void waitForFlushComplete ( ) { java.util.concurrent.CountDownLatch latch = mFlushLatch ; try { if ( latch != null ) { java.lang.String message = android.hardware.cts.helpers.SensorCtsHelper.formatAssertionMessage ( mSensor , "WaitForFlush" , mRateUs , mMaxBatchReportLatencyUs ) ; junit.framework.Assert.assertTrue ( message , latch.await ( android.hardware.cts.helpers.TestSensorEventListener.FLUSH_TIMEOUT_US , java.util.concurrent.TimeUnit.MICROSECONDS ) ) ; } } catch ( java.lang.InterruptedException e ) { } }
Source:
private void runAndVerify ( java.lang.String expectedCmd ) throws java.lang.Exception { mMockDevice.executeShellCommand ( expectedCmd , ( ( com.android.ddmlib.IShellOutputReceiver ) ( org.easymock.EasyMock.anyObject ( ) ) ) , org.easymock.EasyMock.eq ( 0 ) ) ; org.easymock.EasyMock.replay ( mMockDevice ) ; mRunner.run ( mMockListener ) ; org.easymock.EasyMock.verify ( mMockDevice ) ; }

Target:
private void runAndVerify ( java.lang.String expectedCmd ) throws java.lang.Exception { mMockDevice.executeShellCommand ( expectedCmd , ( ( com.android.ddmlib.IShellOutputReceiver ) ( org.easymock.EasyMock.anyObject ( ) ) ) , org.easymock.EasyMock.eq ( 0L ) , org.easymock.EasyMock.eq ( java.util.concurrent.TimeUnit.MILLISECONDS ) ) ; org.easymock.EasyMock.replay ( mMockDevice ) ; mRunner.run ( mMockListener ) ; org.easymock.EasyMock.verify ( mMockDevice ) ; }
Source:
public static void computeFma ( android.renderscript.cts.TestFma.ArgumentsFloatFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 1 , 1 , false ) ; android.renderscript.cts.Target.Floaty ab = t.multiply ( t.new32 ( args.inA ) , t.new32 ( args.inB ) ) ; args.out = t.add ( ab , t.new32 ( args.inC ) ) ; }

Target:
public static void computeFma ( android.renderscript.cts.TestFma.ArgumentsFloatFloatFloatFloat args , android.renderscript.cts.Target t ) { t.setPrecision ( 1 , 1 , false ) ; android.renderscript.cts.Target.Floaty ab = t.multiply ( t.new32 ( args.inMultiplicand1 ) , t.new32 ( args.inMultiplicand2 ) ) ; args.out = t.add ( ab , t.new32 ( args.inOffset ) ) ; }
Source:
public void getNeighboringCids ( android.os.Message response ) { if ( isPhoneTypeGsm ( ) ) { mCi.getNeighboringCids ( response ) ; } else { if ( response != null ) { com.android.internal.telephony.CommandException ce = new com.android.internal.telephony.CommandException ( CommandException.Error.REQUEST_NOT_SUPPORTED ) ; android.os.AsyncResult.forMessage ( response ) . exception = ce ; response.sendToTarget ( ) ; } } }

Target:
public void getNeighboringCids ( android.os.Message response , android.os.WorkSource workSource ) { if ( isPhoneTypeGsm ( ) ) { mCi.getNeighboringCids ( response , workSource ) ; } else { if ( response != null ) { com.android.internal.telephony.CommandException ce = new com.android.internal.telephony.CommandException ( CommandException.Error.REQUEST_NOT_SUPPORTED ) ; android.os.AsyncResult.forMessage ( response ) . exception = ce ; response.sendToTarget ( ) ; } } }
Source:
void createSizedHelper ( android.renderscript.Element e ) { for ( int i = 1 ; i <= 8 ; i ++ ) { android.renderscript.Allocation A = android.renderscript.Allocation.createSized ( mRS , e , i ) ; assertEquals ( A.getType ( ) . getElement ( ) , e ) ; assertEquals ( A.getType ( ) . getX ( ) , i ) ; } }

Target:
void createSizedHelper ( android.renderscript.Element e ) { for ( int i = 1 ; i <= 8 ; i ++ ) { android.renderscript.Allocation A = android.renderscript.Allocation.createSized ( mRS , e , i ) ; assertEquals ( A.getType ( ) . getElement ( ) , e ) ; assertEquals ( A.getType ( ) . getX ( ) , i ) ; A.destroy ( ) ; } }
Source:
public static void writeUint32 ( long i , java.io.OutputStream output ) throws java.io.IOException { output.write ( ( ( int ) ( i > > 24 ) ) ) ; output.write ( ( ( int ) ( i > > 16 ) ) ) ; output.write ( ( ( int ) ( i > > 8 ) ) ) ; output.write ( ( ( int ) ( i ) ) ) ; }

Target:
public static boolean isValidUint24 ( long i ) { return ( i & 16777215L ) == i ; }
Source:
public void startLceService ( int reportIntervalMs , boolean pullMode , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_START_LCE , response ) ; rr.mParcel.writeInt ( 2 ) ; rr.mParcel.writeInt ( reportIntervalMs ) ; rr.mParcel.writeInt ( ( pullMode ? 1 : 0 ) ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }

Target:
public void startLceService ( int reportIntervalMs , boolean pullMode , android.os.Message response ) { com.android.internal.telephony.RILRequest rr = com.android.internal.telephony.RILRequest.obtain ( com.android.internal.telephony.RIL_REQUEST_START_LCE , response , mRILDefaultWorkSource ) ; rr.mParcel.writeInt ( 2 ) ; rr.mParcel.writeInt ( reportIntervalMs ) ; rr.mParcel.writeInt ( ( pullMode ? 1 : 0 ) ) ; if ( com.android.internal.telephony.RIL.RILJ_LOGD ) { riljLog ( ( ( ( rr.serialString ( ) ) + "> " ) + ( com.android.internal.telephony.RIL.requestToString ( rr.mRequest ) ) ) ) ; } send ( rr ) ; }
Source:
private static void setMainTableEntry ( char char1 , char char2 , int entry ) { if ( ( ( ( char1 < 'A' ) || ( char1 > 'Z' ) ) || ( char2 < 'A' ) ) || ( char2 > 'Z' ) ) { throw new java.lang.IllegalArgumentException ( ) ; } java.util.Currency.mainTable [ ( ( ( char1 - 'A' ) * ( java.util.Currency.A_TO_Z ) ) + ( char2 - 'A' ) ) ] = entry ; }

Target:
public int getDefaultFractionDigits ( ) { if ( icuCurrency.getCurrencyCode ( ) . equals ( "XXX" ) ) { return - 1 ; } return icuCurrency.getDefaultFractionDigits ( ) ; }
Source:
public void dump ( android.os.ParcelFileDescriptor fd ) { com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return ; service.dump ( fd.getFileDescriptor ( ) ) ; }

Target:
public boolean createBondOutOfBand ( android.bluetooth.BluetoothDevice device , int transport , android.bluetooth.OobData oobData ) { if ( ! ( com.android.bluetooth.Utils.checkCaller ( ) ) ) { android.util.Log.w ( com.android.bluetooth.btservice.AdapterService.TAG , "createBondOutOfBand() - Not allowed for non-active user" ) ; return false ; } com.android.bluetooth.btservice.AdapterService service = getService ( ) ; if ( service == null ) return false ; return service.createBond ( device , transport , oobData ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAssertStatement x ) { print ( com.android.jack.ir.impl.BaseGenerationVisitor.CHARS_ASSERT ) ; accept ( x.getTestExpr ( ) ) ; if ( ( x.getArg ( ) ) != null ) { print ( " : " ) ; accept ( x.getArg ( ) ) ; } return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JAssertStatement x ) { print ( com.android.jack.ir.impl.BaseGenerationVisitor.CHARS_ASSERT ) ; accept ( x.getTestExpr ( ) ) ; com.android.jack.ir.ast.JExpression arg = x.getArg ( ) ; if ( arg != null ) { print ( " : " ) ; accept ( arg ) ; } return false ; }
Source:
public void hangupConnectionByIndex ( com.android.internal.telephony.GsmCdmaCall call , int index ) throws com.android.internal.telephony.CallStateException { int count = call.mConnections.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { com.android.internal.telephony.GsmCdmaConnection cn = ( ( com.android.internal.telephony.GsmCdmaConnection ) ( call.mConnections.get ( i ) ) ) ; if ( ( cn.getGsmCdmaIndex ( ) ) == index ) { mCi.hangupConnection ( index , obtainCompleteMessage ( ) ) ; return ; } } throw new com.android.internal.telephony.CallStateException ( "no GsmCdma index found" ) ; }

Target:
public void hangupConnectionByIndex ( com.android.internal.telephony.GsmCdmaCall call , int index ) throws com.android.internal.telephony.CallStateException { int count = call.mConnections.size ( ) ; for ( int i = 0 ; i < count ; i ++ ) { com.android.internal.telephony.GsmCdmaConnection cn = ( ( com.android.internal.telephony.GsmCdmaConnection ) ( call.mConnections.get ( i ) ) ) ; if ( ( ! ( cn.mDisconnected ) ) && ( ( cn.getGsmCdmaIndex ( ) ) == index ) ) { mCi.hangupConnection ( index , obtainCompleteMessage ( ) ) ; return ; } } throw new com.android.internal.telephony.CallStateException ( "no GsmCdma index found" ) ; }
Source:
private void processSlcConnected ( ) { if ( ( mPhoneProxy ) != null ) { try { mPhoneProxy.queryPhoneState ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } } else { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "Handsfree phone proxy null for query phone state" ) ; } }

Target:
private void processSlcConnected ( ) { mSlcConnected = true ; if ( ( mPhoneProxy ) != null ) { try { mPhoneProxy.queryPhoneState ( ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , android.util.Log.getStackTraceString ( new java.lang.Throwable ( ) ) ) ; } } else { android.util.Log.e ( com.android.bluetooth.hfp.HeadsetStateMachine.TAG , "Handsfree phone proxy null for query phone state" ) ; } }
Source:
public void visitInnerClassesInfo ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.InnerClassesInfo innerClassesInfo ) { int innerClassIndex = innerClassesInfo.u2innerClassIndex ; int innerNameIndex = innerClassesInfo.u2innerNameIndex ; if ( ( innerClassIndex != 0 ) && ( innerNameIndex != 0 ) ) { java.lang.String newInnerName = clazz.getClassName ( innerClassIndex ) ; int index = newInnerName.lastIndexOf ( ClassConstants.INTERNAL_INNER_CLASS_SEPARATOR ) ; if ( index >= 0 ) { innerClassesInfo.u2innerNameIndex = new proguard.classfile.editor.ConstantPoolEditor ( ( ( proguard.classfile.editor.ProgramClass ) ( clazz ) ) ) . addUtf8Constant ( newInnerName.substring ( ( index + 1 ) ) ) ; } } }

Target:
public void visitInnerClassesInfo ( proguard.classfile.editor.Clazz clazz , proguard.classfile.editor.InnerClassesInfo innerClassesInfo ) { int innerClassIndex = innerClassesInfo.u2innerClassIndex ; int innerNameIndex = innerClassesInfo.u2innerNameIndex ; if ( ( innerClassIndex != 0 ) && ( innerNameIndex != 0 ) ) { java.lang.String newInnerName = clazz.getClassName ( innerClassIndex ) ; int index = newInnerName.lastIndexOf ( ClassConstants.INNER_CLASS_SEPARATOR ) ; if ( index >= 0 ) { innerClassesInfo.u2innerNameIndex = new proguard.classfile.editor.ConstantPoolEditor ( ( ( proguard.classfile.editor.ProgramClass ) ( clazz ) ) ) . addUtf8Constant ( newInnerName.substring ( ( index + 1 ) ) ) ; } } }
Source:
public void testNoDpi ( ) throws java.lang.Exception { assertEquals ( ( "res/drawable-mdpi/frame.png: Warning: The following images appear in both -nodpi and in a density folder: frame.png [IconNoDpi]\n" + ( ( ( ( ( "res/drawable-xlarge-nodpi-v11/frame.png: Warning: The frame.png icon has identical contents in the following configuration folders: drawable-mdpi, drawable-nodpi, drawable-xlarge-nodpi-v11 [IconDuplicatesConfig]\n" + " res/drawable-nodpi/frame.png: <No location-specific message\n" ) + " res/drawable-mdpi/frame.png: <No location-specific message\n" ) + "res: Warning: Missing density variation folders in res: drawable-hdpi, drawable-xhdpi [IconMissingDensityFolder]\n" ) + "0 errors, 3 warnings\n" ) + "" ) ) , lintProject ( "res/drawable-mdpi/frame.png" , "res/drawable-nodpi/frame.png" , "res/drawable-xlarge-nodpi-v11/frame.png" ) ) ; }

Target:
public void testNoDpi ( ) throws java.lang.Exception { mEnabled = com.android.tools.lint.checks.IconDetectorTest.ALL ; assertEquals ( ( "res/drawable-mdpi/frame.png: Warning: The following images appear in both -nodpi and in a density folder: frame.png [IconNoDpi]\n" + ( ( ( ( ( "res/drawable-xlarge-nodpi-v11/frame.png: Warning: The frame.png icon has identical contents in the following configuration folders: drawable-mdpi, drawable-nodpi, drawable-xlarge-nodpi-v11 [IconDuplicatesConfig]\n" + " res/drawable-nodpi/frame.png: <No location-specific message\n" ) + " res/drawable-mdpi/frame.png: <No location-specific message\n" ) + "res: Warning: Missing density variation folders in res: drawable-hdpi, drawable-xhdpi [IconMissingDensityFolder]\n" ) + "0 errors, 3 warnings\n" ) + "" ) ) , lintProject ( "res/drawable-mdpi/frame.png" , "res/drawable-nodpi/frame.png" , "res/drawable-xlarge-nodpi-v11/frame.png" ) ) ; }
Source:
public java.lang.Void call ( ) throws java.lang.Exception { org.apache.http.HttpResponse response = mServer.getResponse ( mRequest ) ; mConnection.sendResponseHeader ( response ) ; mConnection.sendResponseEntity ( response ) ; mConnection.close ( ) ; return null ; }

Target:
public void run ( ) { try { org.apache.http.HttpResponse response = mServer.getResponse ( mRequest ) ; mConnection.sendResponseHeader ( response ) ; mConnection.sendResponseEntity ( response ) ; mConnection.close ( ) ; } catch ( java.lang.Exception e ) { android.util.Log.e ( android.webkit.cts.CtsTestServer.TAG , "Error handling request:" , e ) ; } }
Source:
static void constantIndexing2 ( int [ ] array ) { array [ 1 ] = 1 ; array [ 2 ] = 1 ; array [ 3 ] = 1 ; array [ 4 ] = 1 ; array [ ( - 1 ) ] = 1 ; }

Target:
static void $opt$noinline$constantIndexing2 ( int [ ] array ) { array [ 1 ] = 1 ; array [ 2 ] = 1 ; array [ 3 ] = 1 ; array [ 4 ] = 1 ; array [ ( - 1 ) ] = 1 ; if ( ( array [ 1 ] ) == 1 ) { throw new java.lang.Error ( "" ) ; } }
Source:
public int getLeState ( ) { int state = android.bluetooth.BluetoothAdapter.STATE_OFF ; try { mServiceLock.readLock ( ) . lock ( ) ; if ( ( mService ) != null ) { state = mService.getState ( ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } finally { mServiceLock.readLock ( ) . unlock ( ) ; } if ( android.bluetooth.BluetoothAdapter.VDBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , ( "getLeState() returning " + state ) ) ; return state ; }

Target:
public boolean enable ( ) { if ( isEnabled ( ) ) { if ( android.bluetooth.BluetoothAdapter.DBG ) android.util.Log.d ( android.bluetooth.BluetoothAdapter.TAG , "enable(): BT already enabled!" ) ; return true ; } try { return mManagerService.enable ( android.app.ActivityThread.currentPackageName ( ) ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothAdapter.TAG , "" , e ) ; } return false ; }
Source:
public void setLockScreenShown ( boolean shown ) { if ( ( checkCallingPermission ( android.Manifest.permission.DEVICE_POWER ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( ( "Requires permission " + ( android.Manifest.permission.DEVICE_POWER ) ) ) ; } synchronized ( this ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { if ( com.android.server.am.ActivityManagerService.DEBUG_LOCKSCREEN ) logLockScreen ( ( " shown=" + shown ) ) ; mLockScreenShown = shown ; comeOutOfSleepIfNeededLocked ( ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }

Target:
public void setLockScreenShown ( boolean shown ) { if ( ( checkCallingPermission ( android.Manifest.permission.DEVICE_POWER ) ) != ( android.content.pm.PackageManager.PERMISSION_GRANTED ) ) { throw new java.lang.SecurityException ( ( "Requires permission " + ( android.Manifest.permission.DEVICE_POWER ) ) ) ; } synchronized ( this ) { long ident = android.os.Binder.clearCallingIdentity ( ) ; try { if ( com.android.server.am.ActivityManagerService.DEBUG_LOCKSCREEN ) logLockScreen ( ( " shown=" + shown ) ) ; mLockScreenShown = ( shown ) ? com.android.server.am.ActivityManagerService.LOCK_SCREEN_SHOWN : com.android.server.am.ActivityManagerService.LOCK_SCREEN_HIDDEN ; updateSleepIfNeededLocked ( ) ; } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } } }
Source:
public static void computeMax ( android.renderscript.cts.TestMax.ArgumentsUintUintUint args ) { args.ulf = 0 ; args.ulfRelaxed = 0 ; args.out = ( ( int ) ( java.lang.StrictMath.max ( ( ( long ) ( ( args.inV1 ) & 4294967295L ) ) , ( ( long ) ( ( args.inV2 ) & 4294967295L ) ) ) ) ) ; }

Target:
public static void computeMin ( android.renderscript.cts.TestMin.ArgumentsUshortUshortUshort args ) { args.out = android.renderscript.cts.CoreMathVerifier.minU16 ( args.inV1 , args.inV2 ) ; }
Source:
public void setRemoteFeatureMask ( int supportedFeatures ) { if ( com.android.bluetooth.map.BluetoothMapMasInstance.V ) android.util.Log.v ( TAG , ( "setRemoteFeatureMask : Curr: " + ( mRemoteFeatureMask ) ) ) ; mRemoteFeatureMask = supportedFeatures ; if ( ( mObserver ) != null ) { mObserver.setObserverRemoteFeatureMask ( mRemoteFeatureMask ) ; if ( com.android.bluetooth.map.BluetoothMapMasInstance.V ) android.util.Log.v ( TAG , ( "setRemoteFeatureMask : set: " + ( mRemoteFeatureMask ) ) ) ; } }

Target:
public void setRemoteFeatureMask ( int supportedFeatures ) { if ( com.android.bluetooth.map.BluetoothMapMasInstance.V ) android.util.Log.v ( TAG , ( "setRemoteFeatureMask : Curr: " + ( mRemoteFeatureMask ) ) ) ; mRemoteFeatureMask = supportedFeatures & ( com.android.bluetooth.map.BluetoothMapMasInstance.SDP_MAP_MAS_FEATURES ) ; if ( ( mObserver ) != null ) { mObserver.setObserverRemoteFeatureMask ( mRemoteFeatureMask ) ; if ( com.android.bluetooth.map.BluetoothMapMasInstance.V ) android.util.Log.v ( TAG , ( "setRemoteFeatureMask : set: " + ( mRemoteFeatureMask ) ) ) ; } }
Source:
public void junit ( ) throws java.lang.Exception { java.io.File junitJack = com.android.jack.TestTools.createTempFile ( "junit" , ".zip" ) ; com.android.jack.TestTools.compileSourceToJack ( new com.android.jack.Options ( ) , com.android.jack.ToolchainTest.JUNIT_SOURCELIST , ( ( ( com.android.jack.ToolchainTest.corePath.getAbsolutePath ( ) ) + ( java.io.File.pathSeparator ) ) + ( com.android.jack.TestTools.getFromAndroidTree ( "out/host/common/obj/JAVA_LIBRARIES/hamcrest-core-hostdex-jack_intermediates/classes.jar" ) ) ) , junitJack , true ) ; java.io.File junitOutFolder = com.android.jack.TestTools.createTempDir ( "junit" , "dex" ) ; com.android.jack.TestTools.compileJackToDex ( new com.android.jack.Options ( ) , junitJack , junitOutFolder , false ) ; }

Target:
public void junit ( ) throws java.lang.Exception { java.io.File junitJack = com.android.jack.TestTools.createTempFile ( "junit" , ".zip" ) ; com.android.jack.TestTools.compileSourceToJack ( new com.android.jack.Options ( ) , com.android.jack.ToolchainTest.JUNIT_SOURCELIST , ( ( ( com.android.jack.ToolchainTest.corePath.getAbsolutePath ( ) ) + ( java.io.File.pathSeparator ) ) + ( com.android.jack.TestTools.getFromAndroidTree ( "out/host/common/obj/JAVA_LIBRARIES/hamcrest-core-hostdex-jack_intermediates/classes.zip" ) ) ) , junitJack , true ) ; java.io.File junitOutFolder = com.android.jack.TestTools.createTempDir ( "junit" , "dex" ) ; com.android.jack.TestTools.compileJackToDex ( new com.android.jack.Options ( ) , junitJack , junitOutFolder , false ) ; }
Source:
public com.android.server.am.ContentProviderHolder getContentProviderExternal ( java.lang.String name , int userId , android.os.IBinder token ) { enforceCallingPermission ( android.Manifest.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY , "Do not have permission in call getContentProviderExternal()" ) ; userId = handleIncomingUser ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , userId , false , com.android.server.am.ActivityManagerService.ALLOW_FULL_ONLY , "getContentProvider" , null ) ; return getContentProviderExternalUnchecked ( name , token , userId ) ; }

Target:
public com.android.server.am.ContentProviderHolder getContentProviderExternal ( java.lang.String name , int userId , android.os.IBinder token ) { enforceCallingPermission ( android.Manifest.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY , "Do not have permission in call getContentProviderExternal()" ) ; userId = mUserController.handleIncomingUser ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , userId , false , com.android.server.am.ActivityManagerService.ALLOW_FULL_ONLY , "getContentProvider" , null ) ; return getContentProviderExternalUnchecked ( name , token , userId ) ; }
Source:
private java.lang.String quotedAttrValue ( java.lang.String attrValue ) { if ( ( attrValue.indexOf ( '"' ) ) == ( - 1 ) ) { return ( '"' + attrValue ) + '"' ; } if ( ( attrValue.indexOf ( '\'' ) ) == ( - 1 ) ) { return ( '\'' + attrValue ) + '\'' ; } attrValue = attrValue.replace ( "\"" , "&quot;" ) ; return ( '"' + attrValue ) + '"' ; }

Target:
private java.lang.String quotedAttrValue ( java.lang.String attrValue ) { if ( ( attrValue.indexOf ( '"' ) ) == ( - 1 ) ) { return ( '"' + attrValue ) + '"' ; } if ( ( attrValue.indexOf ( '\'' ) ) == ( - 1 ) ) { return ( '\'' + attrValue ) + '\'' ; } attrValue = attrValue.replace ( "\"" , com.android.util.XmlUtils.QUOT_ENTITY ) ; return ( '"' + attrValue ) + '"' ; }
Source:
public void logrb ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String bundleName , java.lang.String msg , java.lang.Object [ ] params ) { if ( ( ( level.intValue ( ) ) < ( levelValue ) ) || ( ( levelValue ) == ( java.util.logging.Logger.offValue ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setParameters ( params ) ; doLog ( lr , bundleName ) ; }

Target:
public void logp ( java.util.logging.Level level , java.lang.String sourceClass , java.lang.String sourceMethod , java.lang.String msg , java.lang.Throwable thrown ) { if ( ! ( isLoggable ( level ) ) ) { return ; } java.util.logging.LogRecord lr = new java.util.logging.LogRecord ( level , msg ) ; lr.setSourceClassName ( sourceClass ) ; lr.setSourceMethodName ( sourceMethod ) ; lr.setThrown ( thrown ) ; doLog ( lr ) ; }
Source:
private boolean doesNotHaveExtension ( @ android.support.annotation.NonNull java.util.Optional < com.google.i18n.phonenumbers.Phonenumber.PhoneNumber > parsedPhoneNumber ) { if ( ( parsedPhoneNumber.get ( ) . hasExtension ( ) ) && ( ! ( android.text.TextUtils.isEmpty ( parsedPhoneNumber.get ( ) . getExtension ( ) ) ) ) ) { com.android.dialer.common.LogUtil.i ( "Constraints.doesNotHaveExtension" , "phone number has an extension" ) ; return false ; } return true ; }

Target:
private boolean doesNotHaveExtension ( @ android.support.annotation.NonNull java.util.Optional < com.google.i18n.phonenumbers.Phonenumber.PhoneNumber > parsedPhoneNumber ) { if ( ( parsedPhoneNumber.get ( ) . hasExtension ( ) ) && ( ! ( android.text.TextUtils.isEmpty ( parsedPhoneNumber.get ( ) . getExtension ( ) ) ) ) ) { com.android.dialer.logging.Logger.get ( context ) . logImpression ( DialerImpression.Type.ASSISTED_DIALING_CONSTRAINT_NUMBER_HAS_EXTENSION ) ; com.android.dialer.common.LogUtil.i ( "Constraints.doesNotHaveExtension" , "phone number has an extension" ) ; return false ; } return true ; }
Source:
public void registerProductFlavorSourceProvider ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull com.android.build.gradle.internal.dsl.ProductFlavor productFlavor , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { if ( ( extraArtifactMap.get ( name ) ) == null ) { throw new java.lang.IllegalArgumentException ( "Artifact with name $name is not yet registered. Use registerArtifactType()" ) ; } extraProductFlavorSourceProviders.put ( productFlavor.getName ( ) , new com.android.build.gradle.internal.variant.DefaultSourceProviderContainer ( name , sourceProvider ) ) ; }

Target:
public void registerMultiFlavorSourceProvider ( @ com.android.annotations.NonNull java.lang.String name , @ com.android.annotations.NonNull java.lang.String flavorName , @ com.android.annotations.NonNull com.android.builder.model.SourceProvider sourceProvider ) { if ( ( extraArtifactMap.get ( name ) ) == null ) { throw new java.lang.IllegalArgumentException ( java.lang.String.format ( "Artifact with name %1$s is not yet registered. Use registerArtifactType()" , name ) ) ; } extraMultiFlavorSourceProviders.put ( flavorName , new com.android.build.gradle.internal.variant.DefaultSourceProviderContainer ( name , sourceProvider ) ) ; }