PROVIDENCE, R.I. – A woman who says she was raped by an on-duty Providence police officer testified Monday that the man came into her hospital room grinning and in uniform after the alleged attack in 2007.

The 22-year-old woman said she recalled seeing officer Marcus Huffman in the hours after the alleged rape but told the jury that she could not remember how long he was there or anything else about the encounter.

“I thought it was him that I was with,” the Fall River, Mass., woman said. “I thought it was him I had got in the car with.”

Prosecutors allege that Huffman, who is charged with first-degree sexual assault in Providence Superior Court, raped the woman, who was then 19, in the bathroom of an empty police substation after offering her a ride outside a nightclub where she had been turned away for being too drunk.

Prosecutor Maureen Keough asked the woman if she had given any indication that she wanted to have sex with Huffman, and she said, “No.” She testified that she identifies herself as a lesbian.

The Associated Press generally does not identify people who say they were victims of sex crimes.

The woman wept as she saw a photograph of the bathroom where she says the rape happened in March 2007.

The jury also saw surveillance images that the woman said showed her entering the building with Huffman — and later walking away by herself — and pictures of the clothing that the woman said she had been wearing that night.

Huffman’s lawyer, Robert Caron, suggested there was no hint of coercion in the images as he tried to counter allegations that his client took advantage of a drunk and helpless woman.

“You’re walking on your own,” he told her. “He’s not even looking back at you. You’re following him.”

Huffman has been suspended without pay from the department. His accuser is due back on the stand this morning.

Another Providence police officer was indicted last month on charges that he beat a restrained man with a flashlight, and three other officers — including a narcotics detective — were arrested three weeks ago in a cocaine bust.